/* About Page Glass Morphism Styles - Preserving Card Flip Animations */

/* Override base body background */
body {
    background-color: #1a1a1a !important;
}

/* About Page Container */
.about-page {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    min-height: 100vh;
}

/* About Header - Glass Style */
.about-header {
    background: linear-gradient(135deg,
        rgba(123, 68, 193, 0.25) 0%,
        rgba(30, 150, 252, 0.20) 50%,
        rgba(123, 68, 193, 0.25) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        0 2px 16px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-header h1 {
    color: #EBEBEB;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.about-header h3 {
    color: rgba(235, 235, 235, 0.9);
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* Section Containers - Glass Style */
.why, .who, .when, .where {
    background: linear-gradient(135deg,
        rgba(50, 48, 49, 0.35) 0%,
        rgba(30, 30, 30, 0.25) 50%,
        rgba(45, 45, 45, 0.35) 100%
    );
    backdrop-filter: blur(15px) saturate(1.2);
    -webkit-backdrop-filter: blur(15px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 2px 16px 0 rgba(0, 0, 0, 0.2);
}

/* Alternate section styling for visual variety */
.who, .where {
    background: linear-gradient(135deg,
        rgba(30, 150, 252, 0.15) 0%,
        rgba(123, 68, 193, 0.10) 50%,
        rgba(30, 150, 252, 0.15) 100%
    );
}

/* Section Headers */
.why h2, .who h2, .when h2, .where h2 {
    color: #EBEBEB;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.why h4 {
    color: rgba(235, 235, 235, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Hero Card - Glass Enhancement (Preserving Flip) */
.hero-card {
    background: transparent;
    box-shadow: 
        0 8px 32px 0 rgba(123, 68, 193, 0.2),
        0 4px 16px 0 rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
    overflow: visible;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 40px 0 rgba(123, 68, 193, 0.3),
        0 6px 20px 0 rgba(0, 0, 0, 0.4);
}

.hero-card .card-front {
    background: linear-gradient(135deg,
        rgba(30, 150, 252, 0.9) 0%,
        rgba(123, 68, 193, 0.85) 100%
    );
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
}

.hero-card .card-back {
    background: linear-gradient(135deg,
        rgba(50, 48, 49, 0.95) 0%,
        rgba(30, 30, 30, 0.90) 50%,
        rgba(45, 45, 45, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    color: #EBEBEB;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-card .card-back::before {
    display: none; /* Remove old overlay */
}

.hero-card .card-back strong,
.hero-card .card-back em {
    color: #9AD5CA;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-card .card-back h2,
.hero-card .card-back h3 {
    border-bottom: 2px solid rgba(154, 213, 202, 0.5);
    border-top: none;
    color: #EBEBEB;
}

.hero-card .card-back h3 {
    border-top: 2px solid rgba(154, 213, 202, 0.5);
}

/* Flip Chevron Enhancement */
.hero-card .flip-chevron {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-card:hover .flip-chevron {
    background: rgba(154, 213, 202, 0.2);
    transform: translateX(-5px);
}

/* People Cards - Glass Style (Preserving Flip) */
.people-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(1.2);
    -webkit-backdrop-filter: blur(15px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 2px 16px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.people-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px 0 rgba(123, 68, 193, 0.25),
        0 4px 20px 0 rgba(0, 0, 0, 0.3);
    border-color: rgba(123, 68, 193, 0.3);
}

.people-card .card-inner .card-front {
    background: transparent;
}

.people-card .card-inner .card-back {
    background: linear-gradient(135deg,
        rgba(50, 48, 49, 0.95) 0%,
        rgba(30, 30, 30, 0.90) 50%,
        rgba(45, 45, 45, 0.95) 100%
    );
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.people-card .card-inner .card-back::before {
    display: none; /* Remove old overlay */
}

/* People Card Text Enhancement */
.people-card .card-inner h2,
.people-card .card-inner h3 {
    color: #EBEBEB;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.people-card .card-inner .card-back p {
    color: rgba(235, 235, 235, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Maintainer Description - Glass Style */
.maintainer-description {
    background: rgba(123, 68, 193, 0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(123, 68, 193, 0.3);
    padding: 1rem;
    margin: -1rem -1rem -1rem -1rem;
    border-radius: 0 0 1.25rem 1.25rem;
}

.maintainer-description h3 {
    color: #9AD5CA;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
}

/* Timeline & Map Embeds - Glass Frame */
.timeline, .community-map {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.timeline iframe,
.community-map iframe {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
}

/* Image Enhancements */
.people-card img,
.hero-card img {
    border-color: rgba(154, 213, 202, 0.5) !important;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .about-page {
        padding: 1rem;
        margin: 1rem;
    }
    
    .about-header {
        padding: 2rem 1.5rem;
    }
    
    .about-header h1 {
        font-size: 2rem;
    }
    
    .why, .who, .when, .where {
        padding: 1.5rem;
        backdrop-filter: blur(10px) saturate(1.1);
        -webkit-backdrop-filter: blur(10px) saturate(1.1);
    }
    
    .people-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(15px)) {
    .about-header {
        background: linear-gradient(135deg,
            rgba(123, 68, 193, 0.9) 0%,
            rgba(30, 150, 252, 0.85) 50%,
            rgba(123, 68, 193, 0.9) 100%
        );
    }
    
    .why, .when {
        background: rgba(50, 48, 49, 0.95);
    }
    
    .who, .where {
        background: rgba(30, 150, 252, 0.9);
    }
    
    .people-card {
        background: rgba(50, 48, 49, 0.9);
    }
    
    .hero-card .card-back,
    .people-card .card-inner .card-back {
        background: rgba(50, 48, 49, 0.98);
    }
}

/* Focus States for Accessibility */
.hero-card:focus,
.people-card:focus {
    outline: 2px solid #9AD5CA;
    outline-offset: 4px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Embeds */
.timeline:empty::before,
.community-map:empty::before {
    content: "Loading...";
    display: block;
    text-align: center;
    color: rgba(235, 235, 235, 0.6);
    padding: 3rem;
    font-style: italic;
}