/* Media Page Specific Styles */

/* Media Hero */
.media-hero {
    background: linear-gradient(135deg, var(--dark-grey) 0%, #3a4f56 100%);
    color: var(--cream);
    padding: 120px 0 60px;
    text-align: center;
}

.media-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.media-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Active nav link */
.nav-links a.active {
    color: var(--pastel-green);
}

/* Filter Tabs */
.media-filters {
    background-color: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--dark-grey);
    color: var(--dark-grey);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-tab:hover {
    background-color: var(--dark-grey);
    color: var(--cream);
}

.filter-tab.active {
    background-color: var(--pastel-green);
    border-color: var(--pastel-green);
    color: var(--dark-grey);
}

/* Video Gallery */
.video-gallery {
    background-color: var(--cream);
    padding: 60px 0;
}

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

/* Video Card */
.video-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-card.featured {
    grid-column: span 2;
}

.video-card.hidden {
    display: none;
}

/* Stagger animation */
.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.4s;
}

.video-card:nth-child(5) {
    animation-delay: 0.5s;
}

.video-card:nth-child(6) {
    animation-delay: 0.6s;
}

.video-card:nth-child(7) {
    animation-delay: 0.7s;
}

.video-card:nth-child(8) {
    animation-delay: 0.8s;
}

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

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

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Placeholder Thumbnail for Vice Interview */
.placeholder-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.placeholder-text h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-text p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
    z-index: 2;
}

.video-thumbnail:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Badge */
.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-gold);
    color: var(--dark-grey);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    z-index: 3;
}

/* Video Info */
.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

.video-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.video-source {
    color: var(--pastel-blue);
    font-weight: 600;
}

.video-duration {
    color: var(--text-light);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .video-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .media-hero h1 {
        font-size: 2rem;
    }

    .media-hero p {
        font-size: 1rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .placeholder-icon {
        font-size: 3rem;
    }

    .placeholder-text h4 {
        font-size: 1.25rem;
    }

    .modal-content {
        width: 95%;
    }

    .close-modal {
        top: -30px;
        font-size: 2rem;
    }
}