/* ============================================
   TV SPOR REHBERİ - ÖZEL STİLLER
   Formanı Yaptır | tv-spor-rehberi.php
   ============================================ */

/* ===== ANA KART ===== */
.tv-rehberi-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #0f172a;
    margin-bottom: 25px;
}

/* ===== BAŞLIK ALANI ===== */
.tv-baslik-alani {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 22px;
}

.tv-baslik-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.3);
}

.tv-baslik-icon i {
    font-size: 1.8rem;
    color: #0f172a;
}

.tv-baslik-icerik {
    flex: 1;
    min-width: 0;
}

.tv-baslik {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.tv-alt-baslik {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 500;
}

.tv-alt-baslik i {
    color: #f59e0b;
}

.tv-mac-sayisi-badge {
    background: #0f172a;
    color: #fbbf24;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== ÖZET AÇIKLAMA ===== */
.tv-ozet {
    background: #f8fafc;
    border-left: 4px solid #fbbf24;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.7;
}

.tv-ozet p {
    margin-bottom: 12px;
}

.tv-ozet p:last-child {
    margin-bottom: 0;
}

.tv-ozet strong {
    color: #0f172a;
}

/* ===== TAB MENÜ ===== */
.tv-tabs-wrapper {
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f1f5f9;
}

.tv-tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}

.tv-tabs-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.tv-tabs-wrapper::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 10px;
}

.tv-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.tv-tab-item {
    flex-shrink: 0;
}

.tv-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.tv-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.tv-tab-btn.active {
    color: #0f172a;
    border-bottom-color: #fbbf24;
    background: #fffbeb;
}

.tv-tab-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.tv-tab-text {
    font-size: 0.9rem;
}

/* ===== TAB İÇERİKLERİ ===== */
.tv-tab-content-wrapper {
    padding-top: 22px;
}

.tv-tab-pane {
    display: none;
    animation: tvFadeIn 0.3s ease;
}

.tv-tab-pane.active {
    display: block;
}

@keyframes tvFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== LİSTE BAŞLIĞI ===== */
.tv-liste-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #cbd5e1;
}

.tv-liste-baslik h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tv-liste-sayisi {
    background: #f1f5f9;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

/* ===== MAÇ LİSTESİ ===== */
.tv-mac-listesi {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

/* Satır düzeni - her satır farklı arka plan (zebra) */
.tv-mac-satiri {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.tv-mac-satiri:last-child {
    border-bottom: none;
}

/* Zebra desen: tek satırlar açık, çift satırlar biraz daha koyu gri */
.tv-mac-satiri.satir-tek {
    background: #ffffff;
}

.tv-mac-satiri.satir-cift {
    background: #f8fafc;
}

.tv-mac-satiri:hover {
    background: #fffbeb;
}

/* Saat */
.tv-mac-saat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
    white-space: nowrap;
}

.tv-mac-saat i {
    color: #f59e0b;
    font-size: 0.85rem;
}

/* Maç (karşılaşan takımlar) */
.tv-mac-karsilasma {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Kanal */
.tv-mac-kanal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tv-mac-kanal i {
    color: #f59e0b;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== BOŞ MESAJ ===== */
.tv-bos-mesaj {
    text-align: center;
    padding: 45px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.tv-bos-mesaj i {
    font-size: 2.2rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.tv-bos-mesaj p {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.tv-bos-mesaj small {
    color: #94a3b8;
    font-size: 0.8rem;
    display: block;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== SON GÜNCELLEME ===== */
.tv-son-guncelleme {
    text-align: right;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tv-son-guncelleme small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.tv-son-guncelleme i {
    color: #f59e0b;
    margin-right: 4px;
}

/* ============================================
   SEO MAKALE ALANI
   ============================================ */
.tv-seo-makale {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #0f172a;
    color: #334155;
    line-height: 1.75;
    font-size: 0.95rem;
}

.tv-seo-makale h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #fbbf24;
}

.tv-seo-makale h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 26px;
    margin-bottom: 12px;
}

.tv-seo-makale p {
    margin-bottom: 14px;
    color: #334155;
}

.tv-seo-makale strong {
    color: #0f172a;
    font-weight: 700;
}

.tv-seo-makale ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.tv-seo-makale ul li {
    margin-bottom: 8px;
    color: #334155;
}

.tv-seo-makale ul li strong {
    color: #0f172a;
}

.tv-seo-not {
    background: #fffbeb;
    border-left: 4px solid #fbbf24;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
}

.tv-seo-not i {
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   RESPONSIVE (TABLET)
   ============================================ */
@media (max-width: 991.98px) {
    .tv-rehberi-card {
        padding: 22px 18px;
    }

    .tv-seo-makale {
        padding: 22px 20px;
    }

    .tv-mac-satiri {
        grid-template-columns: 85px 1fr 160px;
        gap: 12px;
        padding: 12px 14px;
    }

    .tv-baslik {
        font-size: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE (MOBİL)
   ============================================ */
@media (max-width: 767.98px) {
    .tv-rehberi-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .tv-baslik-alani {
        gap: 12px;
        padding-bottom: 15px;
        margin-bottom: 18px;
    }

    .tv-baslik-icon {
        width: 46px;
        height: 46px;
        border-radius: 11px;
    }

    .tv-baslik-icon i {
        font-size: 1.35rem;
    }

    .tv-baslik {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .tv-alt-baslik {
        font-size: 0.72rem;
        gap: 6px;
    }

    .tv-mac-sayisi-badge {
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .tv-ozet {
        padding: 14px 16px;
        font-size: 0.82rem;
        line-height: 1.65;
    }

    /* TAB MENÜ - Mobilde kaydırılabilir */
    .tv-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .tv-tab-emoji {
        font-size: 1rem;
    }

    .tv-tab-text {
        font-size: 0.8rem;
    }

    .tv-liste-baslik h2 {
        font-size: 0.92rem;
    }

    .tv-liste-sayisi {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    /* Mobilde maç satırı: 2 kolon düzeni
       Satır 1: saat + kanal
       Satır 2: maç (tam genişlik) */
    .tv-mac-satiri {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "saat kanal"
            "mac  mac";
        gap: 6px 10px;
        padding: 12px 14px;
    }

    .tv-mac-saat {
        grid-area: saat;
        font-size: 0.88rem;
    }

    .tv-mac-kanal {
        grid-area: kanal;
        justify-content: flex-end;
        font-size: 0.78rem;
        text-align: right;
    }

    .tv-mac-karsilasma {
        grid-area: mac;
        font-size: 0.85rem;
        padding-top: 4px;
        border-top: 1px dashed #e2e8f0;
        margin-top: 4px;
    }

    .tv-son-guncelleme {
        text-align: center;
    }

    /* SEO makale mobil */
    .tv-seo-makale {
        padding: 18px 16px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .tv-seo-makale h2 {
        font-size: 1.05rem;
    }

    .tv-seo-makale h3 {
        font-size: 0.95rem;
        margin-top: 20px;
    }

    .tv-seo-not {
        padding: 12px 14px;
        font-size: 0.78rem;
    }
}

/* Çok küçük ekranlar için ekstra koruma */
@media (max-width: 380px) {
    .tv-baslik {
        font-size: 0.95rem;
    }

    .tv-tab-btn {
        padding: 9px 12px;
    }

    .tv-tab-text {
        font-size: 0.75rem;
    }

    .tv-mac-saat {
        font-size: 0.8rem;
    }

    .tv-mac-karsilasma {
        font-size: 0.78rem;
    }

    .tv-mac-kanal {
        font-size: 0.7rem;
    }
}

/* ============================================
   ÖZET ALANI - DEVAMINI OKU ÖZELLİĞİ
   ============================================ */

.tv-ozet-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.tv-ozet {
    /* Varsayılan (masaüstü) max-height */
    max-height: 150px; /* ← İÇERİĞİN NE KADARI GÖRÜNSÜN - MASAÜSTÜ */
    overflow: hidden;
    transition: max-height 0.45s ease;
    position: relative;
}

/* Butona tıklandığında tam yükseklik */
.tv-ozet-wrapper.expanded .tv-ozet {
    max-height: 3000px; /* İçerik ne kadar uzun olursa olsun açılır */
}

/* Alt fade-out efekti (içerik kırpıldığında yumuşak geçiş) */
.tv-ozet-fade {
    position: absolute;
    bottom: 42px; /* Butonun yüksekliği kadar yukarıda biter */
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 1) 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

/* Açıldığında fade kaybolur */
.tv-ozet-wrapper.expanded .tv-ozet-fade {
    opacity: 0;
    visibility: hidden;
}

/* Devamını Oku butonu */
.tv-ozet-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 9px 22px;
    background: #0f172a;
    color: #fbbf24;
    border: 2px solid #fbbf24;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    z-index: 2;
}

.tv-ozet-toggle:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.tv-ozet-toggle:active {
    transform: translateY(0);
}

.tv-ozet-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.35s ease;
}

/* Açıldığında ok simgesi döner */
.tv-ozet-wrapper.expanded .tv-ozet-toggle-icon {
    transform: rotate(180deg);
}

/* Buton gizli mi? (kısa içerikte gösterilmez) */
.tv-ozet-toggle.hidden {
    display: none;
}

/* ===== MOBİL İÇİN AYRI YÜKSEKLİK ===== */
@media (max-width: 767.98px) {
    .tv-ozet {
        /* MOBİLDE İÇERİĞİN NE KADARI GÖRÜNSÜN */
        max-height: 150px; /* ← MOBİL İÇİN ← İÇERİĞİN NE KADARI GÖRÜNSÜN */
        font-size: 0.82rem;
        line-height: 1.6;
        padding: 14px 16px;
    }

    .tv-ozet-fade {
        bottom: 40px;
        height: 45px;
    }

    .tv-ozet-toggle {
        font-size: 0.75rem;
        padding: 8px 18px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 380px) {
    .tv-ozet {
        max-height: 120px; /* ← ÇOK KÜÇÜK EKRANLAR İÇİN */
    }
}

/* ============================================
   SEO MAKALE - DEVAMINI OKU ÖZELLİĞİ
   ============================================ */

.tv-seo-icerik {
    position: relative;
    /* MASAÜSTÜ: Makale içeriğinin ne kadarı görünsün */
    max-height: 250px; /* ← İÇERİĞİN NE KADARI GÖRÜNSÜN - MASAÜSTÜ */
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.tv-seo-makale.expanded .tv-seo-icerik {
    max-height: 5000px; /* İçerik ne kadar uzun olursa olsun açılır */
}

/* Fade efekti (kırpılan içeriğin altındaki gradient) */
.tv-seo-fade {
    position: relative;
    height: 60px;
    margin-top: -60px; /* İçeriğin üstüne biner */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.tv-seo-makale.expanded .tv-seo-fade {
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    height: 0;
}

/* Butonu ortala */
.tv-seo-toggle {
    margin: 15px auto 20px;
    display: flex;
}

/* Buton gizleme */
.tv-seo-toggle.hidden {
    display: none;
}

/* ===== MOBİL İÇİN AYRI YÜKSEKLİK ===== */
@media (max-width: 767.98px) {
    .tv-seo-icerik {
        /* MOBİLDE MAKALE İÇERİĞİNİN NE KADARI GÖRÜNSÜN */
        max-height: 250px; /* ← MOBİL İÇİN YÜKSEKLİK - İSTEDİĞİN GİBİ DEĞİŞTİR */
    }

    .tv-seo-fade {
        height: 45px;
        margin-top: -45px;
    }
}

@media (max-width: 380px) {
    .tv-seo-icerik {
        max-height: 200px; /* ← ÇOK KÜÇÜK EKRANLAR */
    }
}