/**
 * Medya Sayfası - Prestij Vitrini Teması
 * Prof. Dr. Mustafa Gerek
 */

/* ================================================
   1. MAIN LAYOUT
================================================ */
.medya-main {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fdfbf7 0%, #fff 100%);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #800000;
    font-size: 1.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   2. VIDEO SECTION
================================================ */
.video-section {
    margin-bottom: 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 100%;
}

a.video-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Fallback for missing thumbnails */
.video-thumbnail img {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Lite Embed - Thumbnail Cover */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(128, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
    color: #fff;
    font-size: 24px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #800000;
}

/* Video playing state */
.video-card.playing .video-thumbnail {
    display: none;
}

.video-card.playing .video-iframe {
    display: block;
}

.video-iframe {
    display: none;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #800000 0%, #5c0000 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.video-info h3 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Channel CTA */
.channel-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-channel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #FF0000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-channel:hover {
    background: #CC0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.btn-channel i {
    font-size: 1.3rem;
}

/* ================================================
   3. PRESS SECTION
================================================ */
.press-section {
    margin-bottom: 40px;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

/* Press Card */
.press-card {
    background: #f9f7f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    break-inside: avoid;
    transition: all 0.3s ease;
    border: 1px solid #d4c9b5;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.press-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8e0d0 0%, #f5f0e5 100%);
    border-bottom: 2px solid #d4c9b5;
}

.press-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.press-card:hover .press-logo {
    filter: grayscale(0%);
}

.press-date {
    font-size: 0.85rem;
    color: #800000;
    font-weight: 600;
    background: rgba(128, 0, 0, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
}

.press-card-body {
    padding: 20px;
}

.press-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 12px;
}

.press-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.press-card-footer {
    padding: 16px 20px;
    border-top: 2px solid #d4c9b5;
    background: #f0ebe0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #800000;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #5c0000;
    gap: 12px;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* ================================================
   4. RESPONSIVE
================================================ */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .video-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .medya-main {
        padding: 40px 0 60px;
    }

    .masonry-grid {
        column-count: 1;
    }

    .press-card {
        margin-bottom: 20px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h3 {
        font-size: 1.05rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }

    .section-header h2 i {
        font-size: 1.8rem;
    }

    .press-title {
        font-size: 1rem;
    }

    .press-summary {
        font-size: 0.9rem;
    }
}