/**
 * Landing Page Styles
 * Styles for the public landing page (Home/Index.cshtml)
 */

/* ==========================================================================
   Landing Page Container Override
   ========================================================================== */

/* Light mode - ensure body/container are white */
body {
    background-color: var(--bg-primary);
}

.container {
    background-color: transparent;
}

/* Dark mode - body should be dark, but not interfere with hero */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .container {
    background-color: transparent;
}

/* Auto mode with system dark preference */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body {
        background-color: var(--bg-primary);
    }

    html:not([data-theme="light"]) .container {
        background-color: transparent;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: var(--brand-gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin: -1rem -0.75rem 3rem -0.75rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.2rem;
    margin: 0 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
}

.btn-primary-hero {
    background: white;
    color: var(--brand-primary);
    border: none;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--bg-secondary);
    color: var(--brand-primary);
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Fix container background for landing page */
.hero-section + .features-section,
.hero-section ~ * {
    position: relative;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    margin: 0 -0.75rem 3rem -0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-xxl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--card-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Example Events Section
   ========================================================================== */

.example-events-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
    text-decoration: none;
}

.event-card-header {
    background: var(--brand-gradient);
    color: white;
    padding: 20px;
    text-align: center;
}

.event-artist {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.event-venue {
    font-size: 1rem;
    opacity: 0.9;
}

.event-card-body {
    padding: 20px;
    background-color: var(--card-bg);
}

.event-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-notes {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.event-user {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */

.stats-section {
    text-align: center;
    padding: 40px 0;
    background: var(--brand-gradient);
    color: white;
    border-radius: var(--radius-xxl);
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================================================
   No Events Message
   ========================================================================== */

.no-events-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-events-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn-hero {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dark Theme Support - Feature-Specific Overrides Only
   Note: Base dark mode rules are in site.css
   ========================================================================== */

/* Manual dark mode (user toggled) */
[data-theme="dark"] .features-section {
    background: var(--bg-primary);
}

/* Auto mode with system dark preference */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .features-section {
        background: var(--bg-primary);
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .event-card,
    .btn-hero {
        transition: none;
    }
    
    .feature-card:hover,
    .event-card:hover,
    .btn-primary-hero:hover,
    .btn-secondary-hero:hover {
        transform: none;
    }
}
