/* Media Center Page Styles - Aligned with Glow Power Design System */

/* CSS Variables */
:root {
    --glow-black: #000000;
    --glow-yellow: #FAA747;
    --header-height: 80px;
    --header-height-lg: 96px;
    --top-bar-height: 32px;
    --transition-speed: 0.3s;
}

/* Font Imports */

/* Hero Section */
.media-hero {
    background: linear-gradient(to right, rgb(0, 0, 0) 0%, rgb(26, 26, 26) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    z-index: 10;
}

.media-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(250, 167, 71, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 167, 71, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.media-hero .container {
    position: relative;
    z-index: 10;
}

/* Container */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Hero Typography */
.hero-title {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
    font-size: 3rem; /* 48px */
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
}

.hero-divider {
    width: 5rem; /* 80px */
    height: 0.25rem; /* 4px */
    background-color: var(--glow-yellow);
    margin: 0 auto 1.5rem;
}

.hero-subtitle {
    font-family: 'JCBEuro Roman Regular', sans-serif;
    font-size: 1.25rem; /* 20px */
    color: #d1d5db; /* gray-300 */
    max-width: 48rem; /* max-w-3xl */
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: rgb(245, 245, 245);
    border-bottom: 1px solid rgb(224, 224, 224);
    padding: 15px 0;
    box-sizing: border-box;
}

.breadcrumb-text {
    font-family: 'JCBEuro Roman Regular', sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.breadcrumb-link {
    color: #4b5563; /* gray-600 */
    text-decoration: none;
    transition: color var(--transition-speed);
}

.breadcrumb-link:hover {
    color: var(--glow-yellow);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #9ca3af; /* gray-400 */
}

.breadcrumb-current {
    font-family: 'JCBEuro Bold Regular', sans-serif;
    color: #111827; /* gray-900 */
}

/* Category Navigation Section */
.category-navigation-section {
    background-color: rgb(255, 255, 255);
    border-bottom: 1px solid rgb(229, 231, 235);
    padding: 32px 0;
    box-sizing: border-box;
}

/* Category Navigation */
.category-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.category-tab {
    font-family: 'JCBEuro Bold Regular', sans-serif;
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
}

.category-tab:hover {
    border-color: #FAA747;
    color: #FAA747;
}

.category-tab.active {
    background: #000;
    color: #FAA747;
    border-color: #000;
}

/* Gallery Content Section */
.gallery-content-section {
    background-color: rgb(249, 250, 251);
    padding-top: 48px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Ensure 4 columns on larger screens */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.media-item {
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
}

.media-category {
    color: #FAA747;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

/* Video Items */
.video-item {
    position: relative;
}

/* Default video thumbnail styling */
.media-item img[src$=".svg"] {
    background: #f0f0f0;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(250, 167, 71, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-item:hover .play-icon {
    background: #FAA747;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon i {
    color: #000;
    font-size: 20px;
    margin-left: 3px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
}

.gallery-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #FAA747;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-icon {
    background: rgba(250, 167, 71, 0.9);
    color: #000;
}

.gallery-icon i {
    font-size: 16px;
}

.gallery-count {
    font-weight: 600;
    font-size: 14px;
}

/* Featured Media */
.featured-media {
    background: #f7f7f7;
    padding: 60px 0;
    margin-bottom: 60px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    color: #FAA747;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 20px;
    cursor: pointer;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 10px;
}

.lightbox-close:hover {
    color: #FAA747;
}


/* Mobile Category Selector - Dropdown for small screens */
.category-dropdown {
    display: none;
}

.category-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #000;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FAA747' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: #FAA747;
    box-shadow: 0 0 0 3px rgba(250, 167, 71, 0.1);
}

/* Buttons */
button {
    border-radius: 0;
}

/* Links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .media-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.25rem; /* 36px */
    }
    
    .hero-subtitle {
        font-size: 1.125rem; /* 18px */
        padding: 0 1rem;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .category-tabs {
        gap: 10px;
        padding: 15px 0;
        position: relative;
        top: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .media-item {
        aspect-ratio: 1;
    }
    
    .featured-media {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Mobile Category Selector - Dropdown for small screens */
@media (max-width: 480px) {
    .category-tabs-container {
        display: none;
    }
    
    .category-dropdown {
        display: block;
        margin-bottom: 0;
    }
}

/* Mobile Category Selector - Horizontal Scroll for tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .category-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }
    
    .category-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .category-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 2rem;
    }
    
    .category-tab {
        flex: 0 0 auto;
        padding: 12px 20px;
        font-size: 11px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: 2px solid #e0e0e0;
        font-weight: 600;
    }
    
    .category-tab.active {
        background: #FAA747;
        color: #000;
        border-color: #FAA747;
    }
    
    /* Scroll indicator */
    .category-tabs-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 10px;
        width: 40px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Loading State */
.media-item.loading {
    background: #f0f0f0;
    position: relative;
}

.media-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #FAA747;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .category-tabs,
    .lightbox,
    #header-placeholder,
    #footer-placeholder,
    .play-icon,
    button {
        display: none;
    }
    
    .media-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .media-overlay {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
    
    .media-title {
        color: #000;
    }
}