/* ========================================
   MATHEMEDIA - MAIN STYLES
   ======================================== */

:root {
    /* Core Colors */
    --color-primary: #0E2A47;
    --color-text: #3A3A3A;
    --color-text-light: #777777;
    --color-border: #E6E9EF;
    --color-background: #FFFFFF;
    --color-background-alt: #F7F9FC;
    --color-accent: #4DA3FF;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'IBM Plex Sans', var(--font-primary);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 64px 0;
     background: linear-gradient(
        to bottom,
        #F2F2F2 0%,
        #C1C1C1 50%,
        #8E8E8E 100%
    );
}

/* Navigation */
.primary-nav {
    position: sticky;
    top: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 2px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Typography */
.page-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-header {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.body-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 800px;
}

/* Hero */
.hero {
    padding: 80px 0 64px;
    background: linear-gradient(
        to bottom,
        #F2F2F2 0%,
        #C1C1C1 50%,
        #8E8E8E 100%
    );
}


.hero-content {
    max-width: 800px;
}

/* Video Components */
.video-card-large {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-background-alt);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.featured-video {
    max-width: 100%;
    margin-bottom: 0;
}

.video-info {
    padding: 24px;
}

.video-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.speaker-tag {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.duration-tag {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--color-background-alt);
}

.video-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.video-card .video-info {
    padding: 20px;
}

.video-card .video-title {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Short Takes */
.speaker-group {
    margin-bottom: 48px;
}

.speaker-group-header {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.short-takes-list {
    display: grid;
    gap: 16px;
}

.short-take {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition);
}

.short-take:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(77, 163, 255, 0.1);
}

.short-video-embed {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.short-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.short-take-info {
    flex: 1;
}

.short-take-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.topic-tag {
    display: inline-block;
    background: var(--color-background-alt);
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-top: 4px;
}

/* Footer */
/* .footer {
    background: var(--color-background-alt);
    padding: 48px 0;
    margin-top: 64px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
} */

/* ========================================
   MODERN STANDARD FOOTER
======================================== */

.footer {
    background: var(--color-background-alt);
    padding: 40px 0 20px;
    border-top: 1px solid var(--color-border);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 50px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-text-light);
    max-width: 250px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Contact Section */
.footer-contact p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.footer-contact a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text);
    margin-bottom: 8px;
}

.footer-contact a:hover {
    color: var(--color-primary);
}

/* Social */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social a {
    font-size: 13px;
    text-decoration: none;
    color: var(--color-text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--color-primary);
}

/* Bottom Line */
.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
}


/* Utilities */
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    background: var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #3A8EE6;
}

.modal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .body-text {
        font-size: 16px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .short-take {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .short-video-embed {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Hide old thumbnail styling */
.video-thumbnail {
    display: none;
}


.report-modal {
    background: #ffffff;
    max-width: 500px;
    padding: 40px;
    border-radius: 8px;
}

.report-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-form-wrapper input,
.report-form-wrapper select {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
}

#downloadBtn {
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#downloadBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
