/* Media Page Styles */

/* Override body overflow to allow scrolling */
body {
    overflow-y: auto;
}

/* Override fixed footer for scrollable pages */
.footer {
    position: relative;
    margin-top: 2rem;
}

.media-container {
    position: relative;
    z-index: 3;
    min-height: calc(100vh - 150px);
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.media-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeSlideIn 1s ease-out;
}

.media-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.media-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #d1d1d1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2rem;
    position: relative;
    z-index: 4;
}

.media-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    animation: fadeSlideIn 1s ease-out;
    animation-fill-mode: both;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 4;
}

.media-item:nth-child(1) { animation-delay: 0.1s; }
.media-item:nth-child(2) { animation-delay: 0.2s; }
.media-item:nth-child(3) { animation-delay: 0.3s; }
.media-item:nth-child(4) { animation-delay: 0.4s; }
.media-item:nth-child(5) { animation-delay: 0.5s; }
.media-item:nth-child(6) { animation-delay: 0.6s; }

.media-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

/* Media Labels */
.media-label {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Video Wrapper for Responsive 16:9 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Spotify Embeds */
.media-spotify iframe {
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* Twitter Embeds */
.media-twitter blockquote {
    margin: 0 !important;
}

.media-twitter .twitter-tweet {
    margin: 0 auto !important;
}

/* Instagram Embeds */
.media-instagram blockquote {
    margin: 0 auto !important;
}

/* Media Captions */
.media-caption {
    color: #d1d1d1;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    }
}

@media (max-width: 768px) {
    .media-container {
        padding: 100px 1.5rem 100px;
    }

    .media-header {
        margin-bottom: 2.5rem;
    }

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

    .media-item {
        padding: 1rem;
    }
}

/* Animation for fade slide in (reuse from main style) */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
