/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 486px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1605810230434-7631ac76ec81?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 10rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-search-container {
    display: none;
}

/* Popular Events Section */
.popular-events-section {
    background-color: var(--bg-primary);
    padding: 5rem 0;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Search Controls */
.search-controls { display: none; }

.search-control-input {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-control-input .search-icon {
    left: 0.75rem;
    font-size: 0.875rem;
}

.search-control-input .form-control-custom {
    padding-left: 2.25rem;
    height: 2.5rem;
    font-size: 0.75rem;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(379px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.event-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-primary);
    transition: all var(--transition-normal);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.event-image {
    height: 188px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active .material-icons {
    color: #dc3545;
}

.event-content {
    display: flex;
    flex: 1;
    height: calc(100% - 188px);
}

.event-date {
    background-color: var(--gold-primary);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    color: #000000;
    border-bottom-left-radius: 12px;
}

.event-date .material-icons {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.event-date .month {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.event-date .days {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1.25rem;
    color: #5a5a5a;
}

.event-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.event-info-item .material-icons {
    color: var(--gold-primary);
    font-size: 1rem;
    width: 16px;
}

.event-venue {
    color: var(--text-light);
    font-weight: 600;
}

.event-time {
    color: var(--text-secondary);
    font-weight: 500;
}

.event-tables {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-family: var(--font-accent);
    font-weight: 500;
    color: var(--text-primary);
}

.event-tables .material-icons {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.event-description {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: auto;
}

/* No Events State */
.no-events-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--text-secondary);
}

.no-events-state .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-events-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Trending Events Header */
.trending-header { display: none; }

.trending-header .material-icons {
    font-size: 1rem;
}

/* Search Suggestions Enhancement */
.suggestion-content {
    flex: 1;
}

.suggestion-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.suggestion-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.suggestion-icon {
    color: var(--gold-primary);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Enhanced Hero Search */
.hero-search-wrapper {
    background-color: var(--bg-surface);
    border-radius: 7.5px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
    position: relative;
}

.hero-search-wrapper:focus-within {
    box-shadow: 0 0 0 2px var(--gold-primary);
    background-color: #404040;
}

.hero-search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding-left: 2.5rem;
    width: 100%;
    outline: none;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5a5a5a;
    transition: color var(--transition-normal);
}

.hero-search-wrapper:focus-within .hero-search-icon {
    color: var(--gold-primary);
}

/* Responsive Design for Home Page */
@media (max-width: 1199px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
    
    .events-container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-control-input {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-search-wrapper {
        padding: 0.5rem 0.75rem;
    }
    
    .hero-search-input {
        font-size: 0.875rem;
        padding-left: 2rem;
    }
    
    .hero-search-icon {
        left: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        margin-bottom: 1.5rem;
    }
    
    .events-container {
        padding: 0 1rem;
    }
}

@media (max-width: 575px) {
    .hero-search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .btn-dark {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation for Event Cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: slideInUp 0.6s ease-out;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Focus States for Accessibility */
.event-card:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.favorite-btn:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .event-card {
        border: 2px solid var(--border-primary);
    }
    
    .hero-search-wrapper {
        border: 2px solid var(--border-primary);
    }
}

/* Sponsor Showcase Styles */
.sponsor-showcase-section {
    background-color: #1a1b15;
}

.sponsor-carousel {
    position: relative;
    margin: 0 3rem;
}

.sponsor-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.sponsor-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 1rem;
}

.sponsor-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    cursor: pointer;
}

.sponsor-card:hover {
    background-color: #3a3a3a;
    border-color: rgba(218, 171, 45, 0.3);
    transform: scale(1.05);
}

.sponsor-logo {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0%);
}

.sponsor-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.sponsor-card:hover .sponsor-name {
    color: #daab2d;
}

.carousel-nav {
    background-color: #363636;
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: #daab2d;
    color: #000000;
    transform: scale(1.1);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555555;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background-color: #daab2d;
    transform: scale(1.1);
}

.carousel-dot:hover {
    background-color: #777777;
}

/* Photo/Video Spotlight Styles */
.photo-video-spotlight {
    background-color: #0e0f0a;
}

.spotlight-main {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.spotlight-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.spotlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.spotlight-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.spotlight-control {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.spotlight-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.spotlight-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.spotlight-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.spotlight-nav.prev { left: 1rem; }
.spotlight-nav.next { right: 1rem; }

.spotlight-badge {
    background-color: #daab2d;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.spotlight-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.spotlight-description {
    color: #cccccc;
    font-size: 1rem;
    max-width: 600px;
}

.spotlight-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.spotlight-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-thumbnail.active {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #daab2d;
}

.spotlight-thumbnail:hover { transform: scale(1.05); opacity: 1; }
.spotlight-thumbnail:not(.active) { opacity: 0.7; }

.spotlight-progress-bar {
    height: 4px;
    border-radius: 2px;
    background-color: #555555;
    transition: all 0.2s ease;
}

.spotlight-progress-bar.active { background-color: #daab2d; width: 32px; }
.spotlight-progress-bar:not(.active) { width: 8px; }

/* Responsive adjustments for new sections */
@media (max-width: 991px) {
    .sponsor-carousel { margin: 0 2rem; }
    .sponsor-slide { flex: 0 0 50%; }
    .spotlight-main { aspect-ratio: 4/3; }
}

@media (max-width: 767px) {
    .sponsor-carousel { margin: 0 1rem; }
    .sponsor-slide { flex: 0 0 100%; }
    .sponsor-card { height: 150px; padding: 1.5rem; }
    .sponsor-logo { width: 100px; height: 60px; }
    .spotlight-main { aspect-ratio: 1/1; }
    .spotlight-overlay { padding: 1rem; }
    .spotlight-title { font-size: 1.25rem; }
    .spotlight-thumbnail { width: 80px; height: 60px; }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .hero-search-wrapper,
    .favorite-btn,
    .sponsor-card,
    .spotlight-thumbnail,
    .carousel-nav,
    .spotlight-control,
    .spotlight-nav {
        transition: none;
    }
    
    .event-card { animation: none; }
    
    .event-card:hover,
    .sponsor-card:hover,
    .carousel-nav:hover {
        transform: none;
    }
}