/* ========================================
   iKalinga Website Stylesheet
   Kalinga Tribe Cultural Heritage Website
   ======================================== */

/* ========================================
   TABLE OF CONTENTS
   ========================================
   1. CSS RESET & BASE STYLES
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   3. GLOBAL STYLES
   4. LAYOUT CONTAINERS
   5. TYPOGRAPHY
   6. NAVIGATION
   7. HERO SECTION
   8. BUTTONS
   9. SECTION STYLES
   10. FEATURES SECTION
   11. VIDEO SECTIONS
   12. CTA SECTION
   13. FOOTER
   14. PAGE HEADERS
   15. CONTENT SECTIONS
   16. CULTURE SECTION
   17. VIDEO PAGE
   18. GALLERY
   19. UTILITY CLASSES
   20. RESPONSIVE DESIGN
   21. PRINT STYLES
   ======================================== */

/* ========================================
   1. CSS RESET & BASE STYLES
   ======================================== */

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

/* ========================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
    /* Brand Colors */
    --primary-color: #8B4513;        /* Saddle Brown */
    --secondary-color: #D2691E;      /* Chocolate */
    --accent-color: #CD853F;         /* Peru */
    --dark-color: #2C1810;           /* Dark Brown */
    --light-color: #F5E6D3;          /* Beige */

    /* Neutral Colors */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #dee2e6;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* ========================================
   3. GLOBAL STYLES
   ======================================== */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ========================================
   4. LAYOUT CONTAINERS
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   5. TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

strong,
b {
    font-weight: 600;
}

em,
i {
    font-style: italic;
}

ul,
ol {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
}

code {
    padding: 0.2rem 0.4rem;
    background-color: var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ========================================
   6. NAVIGATION
   ======================================== */

.navbar {
    background-color: var(--dark-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-base);
}

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

/* Logo */
.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: rgba(205, 133, 63, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--accent-color);
    background-color: rgba(205, 133, 63, 0.15);
}

.nav-menu a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    border-radius: 2px;
    transition: transform var(--transition-base),
                opacity var(--transition-base);
}

.hamburger:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   7. HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 600px;
    height: 100vh;
    max-height: 800px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* ========================================
   8. BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    font-family: inherit;
    line-height: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* ========================================
   9. SECTION STYLES
   ======================================== */

/* Intro Section */
.intro {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background-color: var(--light-color);
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.8;
}

/* ========================================
   10. FEATURES SECTION
   ======================================== */

.features {
    padding: var(--spacing-lg) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   11. VIDEO SECTIONS
   ======================================== */

.video-preview {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-color);
    text-align: center;
}

.video-preview h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.video-preview > .container > p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: var(--black);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: var(--spacing-sm);
}

.video-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.9;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-color);
    font-size: 1.1rem;
}

/* ========================================
   12. CTA SECTION
   ======================================== */

.cta {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    text-align: center;
    color: var(--white);
}

.cta h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    opacity: 0.95;
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ========================================
   13. FOOTER
   ======================================== */

footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-base);
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ========================================
   14. PAGE HEADERS
   ======================================== */

.page-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

/* ========================================
   15. CONTENT SECTIONS
   ======================================== */

.content-section {
    padding: var(--spacing-lg) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: var(--spacing-md);
}

.content-main h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

.sidebar .info-box {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.sidebar .info-box h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.fact-list {
    list-style: none;
    padding: 0;
}

.fact-list li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.fact-list li:last-child {
    border-bottom: none;
}

/* ========================================
   16. CULTURE SECTION
   ======================================== */

.culture-section {
    padding: var(--spacing-lg) 0;
}

.culture-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--light-color);
}

.culture-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.culture-item h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.culture-item h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.culture-content ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.culture-content li {
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   17. VIDEO PAGE
   ======================================== */

.video-filters {
    background-color: var(--light-color);
    padding: var(--spacing-md) 0;
}

.filter-controls {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

#search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color var(--transition-base);
}

#search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.videos-section {
    padding: var(--spacing-lg) 0;
}

.video-topics {
    padding: var(--spacing-md) 0 var(--spacing-lg);
    background-color: var(--light-color);
}

.video-topics h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.topic-tag {
    padding: 0.6rem 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
}

.topic-tag:hover,
.topic-tag.active {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.topic-tag:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   18. GALLERY
   ======================================== */

.gallery-section {
    padding: var(--spacing-lg) 0;
}

.gallery-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
}

.gallery-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.gallery-placeholder ul {
    list-style-position: inside;
    max-width: 400px;
    margin: var(--spacing-sm) auto;
    text-align: left;
}

/* ========================================
   19. UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   20. RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: var(--spacing-sm);
        border-radius: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: 500px;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .feature-grid,
    .video-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    #search-input {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ========================================
   21. VIDEO MODAL
   ======================================== */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn var(--transition-base);
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background-color: var(--dark-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-base);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--white);
}

.video-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding-right: var(--spacing-sm);
    flex: 1;
}

.video-modal-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    line-height: 1;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.video-modal-close:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.video-modal-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: var(--black);
}

.video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--dark-color);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.video-modal-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.video-modal-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: var(--spacing-sm);
    }

    .video-modal-header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .video-modal-title {
        font-size: 1rem;
    }

    .video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .video-modal-footer {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ========================================
   22. PRINT STYLES
   ======================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    .navbar,
    .hamburger,
    .btn-primary,
    .btn-secondary,
    footer,
    .video-filters,
    .video-topics,
    .video-modal {
        display: none;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
}
