/* ========================================
   CULTURE MAIN PAGE STYLES
   Kenya Cultural Heritage Showcase
   ======================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   HERO SECTION
   ======================================== */
.culture-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.culture-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/culture/pattern-bg.png') repeat;
    opacity: 0.1;
    animation: slidePattern 60s linear infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    letter-spacing: 2px;
}

.hero-content h1 span {
    color: #ffd700;
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 300;
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.filter-toggles {
    display: flex;
    gap: 15px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 50px;
}

.filter-toggle {
    padding: 10px 25px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle i {
    font-size: 1.1rem;
}

.filter-toggle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:hover,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.search-group {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-search:hover {
    opacity: 0.9;
}

/* ========================================
   FEATURED COMMUNITIES
   ======================================== */
.featured-communities {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
}

.featured-communities h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.featured-communities h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.community-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.community-circle {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.community-circle:hover {
    transform: translateY(-15px);
}

.community-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.community-circle:hover::before {
    opacity: 1;
}

.community-circle img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.community-circle:hover img {
    border-color: #ffd700;
}

.community-circle span {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.community-circle:hover span {
    color: #667eea;
}

/* ========================================
   CULTURE GRID SECTION
   ======================================== */
.culture-grid-section {
    padding: 60px 0;
    background: white;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* List View */
.culture-grid.list-view {
    grid-template-columns: 1fr;
}

.culture-grid.list-view .culture-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: none;
}

.culture-grid.list-view .card-image {
    height: 100%;
    min-height: 250px;
}

/* Culture Card */
.culture-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.culture-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.culture-card:hover .card-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.featured-badge i {
    margin-right: 5px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: #667eea;
}

.community,
.county {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.community i,
.county i {
    color: #667eea;
    width: 18px;
}

.description {
    color: #777;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.95rem;
}

.culture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag i {
    font-size: 0.8rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn-explore {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-save {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-save.saved {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* ========================================
   EXPERIENCE TYPES SECTION
   ======================================== */
.experience-types {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.experience-types h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
}

.experience-types h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.type-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
    border: 1px solid rgba(255,255,255,0.2);
}

.type-card:hover {
    background: white;
    color: #333;
    transform: translateY(-10px);
}

.type-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.type-card:hover i {
    color: #667eea;
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.type-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* ========================================
   CULTURAL CALENDAR PREVIEW
   ======================================== */
.cultural-calendar-preview {
    padding: 60px 0;
    background: white;
}

.cultural-calendar-preview h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 3rem;
}

.preview-events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.event-preview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.event-preview-card:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    color: #667eea;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.event-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-details h4 a {
    color: #333;
    text-decoration: none;
}

.event-details h4 a:hover {
    color: #667eea;
}

.event-details p {
    color: #666;
    font-size: 0.9rem;
}

.event-details p i {
    color: #667eea;
    margin-right: 5px;
}

/* ========================================
   NO RESULTS / PAGINATION
   ======================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 20px;
    grid-column: 1 / -1;
}

.no-results i {
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: white;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slidePattern {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item:not(:last-child)::after {
        right: -20px;
        height: 40px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-grid.list-view .culture-card {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-events {
        grid-template-columns: 1fr;
    }
    
    .community-circle img {
        width: 100px;
        height: 100px;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h1 span::after {
        bottom: -5px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .filter-toggles {
        width: 100%;
    }
    
    .filter-toggle {
        flex: 1;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}