/* ===== MULTIMEDIA PAGE STYLES ===== */

/* Hero Section */
.multimedia-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.multimedia-hero .hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.multimedia-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.multimedia-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(45, 27, 105, 0.75) 100%);
}

.multimedia-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.multimedia-hero .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.multimedia-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.multimedia-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .multimedia-hero {
        height: 300px;
    }

    .multimedia-hero .hero-title {
        font-size: 2.25rem;
    }

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

/* Multimedia Section */
.multimedia-section {
    padding: 4rem 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-header>div:first-child {
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.filter-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.filter-btn svg {
    width: 18px;
    height: 18px;
}

.filter-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn-active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.filter-btn-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.filter-btn .count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-btn-active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Gallery Grid */
.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.multimedia-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multimedia-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
}

.multimedia-thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.multimedia-item:hover .multimedia-thumb {
    transform: scale(1.05);
}

.multimedia-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.multimedia-type {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.multimedia-caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.multimedia-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.multimedia-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.multimedia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
    gap: 1rem;
}

.multimedia-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.multimedia-category {
    display: inline-block;
    background: #e0e7ff;
    color: #6366f1;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Play Icon for Videos */
.multimedia-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.multimedia-item:hover .multimedia-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #9ca3af;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Lightbox */
.multimedia-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.3s ease;
}

.multimedia-lightbox.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 5;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content iframe,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    z-index: 3;
    border-radius: 0 0 8px 8px;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.lightbox-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
    .multimedia-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .multimedia-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .multimedia-thumb {
        height: 200px;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .filter-controls {
        gap: 0.5rem;
    }

    .lightbox-nav {
        padding: 1rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .multimedia-grid {
        grid-template-columns: 1fr;
    }

    .multimedia-thumb {
        height: 240px;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .filter-btn svg {
        width: 16px;
        height: 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 70vh;
    }

    .lightbox-info {
        padding: 2rem 1rem 1rem;
    }

    .lightbox-title {
        font-size: 1.1rem;
    }

    .lightbox-meta {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.85rem;
    }
}

/* Pagination Styles */
#pagination-controls {
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.6rem 0.9rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-number {
    min-width: 36px;
    padding: 0;
}

.pagination-active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pagination-dots {
    color: #9ca3af;
    font-weight: 600;
    margin: 0 0.25rem;
}

.pagination-nav {
    padding: 0.6rem 1rem;
    gap: 0.4rem;
    display: flex;
    align-items: center;
}

.pagination-info {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        gap: 0.3rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
        min-width: 32px;
        height: 32px;
    }

    .pagination-nav {
        padding: 0.5rem 0.75rem;
    }

    .pagination-info {
        margin-left: 0.5rem;
        font-size: 0.8rem;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}