/* ============================================
   TV PROGRAMI ÖZEL CSS
   Masaüstü: Tablo (Saat | Maç | Kanal)
   Mobil: Kart Tasarımı
   ============================================ */

/* ============================================
   TAB SİSTEMİ (Futbol / Basketbol)
   ============================================ */
#tv-programi .tv-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

#tv-programi .tv-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: #1a237e;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
    position: relative;
    bottom: -2px;
}

#tv-programi .tv-tab:hover {
    background: #e8eaf0;
    color: #1a237e;
}

#tv-programi .tv-tab.aktif {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

/* ============================================
   MASAÜSTÜ - TABLO GÖRÜNÜMÜ
   ============================================ */

#tv-programi .mac-tablosu-container {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

/* TV Programı Tablosu */
#tv-programi .mac-tablosu {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    table-layout: fixed;
}

#tv-programi .mac-tablosu thead {
    background: #1a237e;
}

#tv-programi .mac-tablosu th {
    background: #1a237e;
    color: #fff;
    padding: 12px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

/* Sütun genişlikleri */
#tv-programi .mac-tablosu th:nth-child(1) {
    width: 110px;
    text-align: center;
}

#tv-programi .mac-tablosu th:nth-child(2) {
    width: 45%;
    text-align: left;
}

#tv-programi .mac-tablosu th:nth-child(3) {
    width: 30%;
    text-align: center;
}

#tv-programi .mac-tablosu td {
    padding: 12px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Zebra çizgili satırlar */
#tv-programi .mac-tablosu tbody tr:nth-child(odd) {
    background: #ffffff;
}

#tv-programi .mac-tablosu tbody tr:nth-child(even) {
    background: #e8eaf0;
}

#tv-programi .mac-tablosu tbody tr:hover {
    background: #d4d8e3 !important;
}

/* Saat sütunu - TURUNCU */
#tv-programi .mac-tablosu td:nth-child(1) {
    text-align: center;
    font-weight: 700;
    color: #FF8C00;
    white-space: nowrap;
    font-size: 15px;
}

/* Maç sütunu - Normal siyah */
#tv-programi .mac-tablosu td:nth-child(2) {
    font-weight: 500;
    color: #333;
    text-align: left;
}

/* Kanal sütunu - LACİVERT */
#tv-programi .mac-tablosu td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #1a237e;
    font-size: 14px;
}

#tv-programi .mac-tablosu tbody tr:last-child td {
    border-bottom: none;
}

/* Yükleniyor göstergesi */
#tvProgramiYukleniyor {
    text-align: center;
    padding: 30px;
    color: #1a237e;
    font-size: 16px;
}

/* Boş mesaj */
#tvProgramiBos {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 16px;
}

/* Spor bazlı boş mesajlar */
#tvProgramiFutbolBos,
#tvProgramiBasketbolBos {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 16px;
}

/* Başlık */
#tv-programi h3 {
    color: #FF8C00;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* ============================================
   MOBİL KART GÖRÜNÜMÜ (Varsayılan: Gizli)
   ============================================ */

#tv-programi .mobile-tv-list {
    display: none;
}

#tv-programi .mobile-tv-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-left: 4px solid #1a237e;
    transition: all 0.2s;
}

#tv-programi .mobile-tv-card:hover {
    background: #f0f4f8;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.1);
}

/* Mobil kartta zebra efekti */
#tv-programi .mobile-tv-card:nth-child(even) {
    background: #e8eaf0;
}

#tv-programi .mobile-tv-card .card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
}

#tv-programi .mobile-tv-card .card-item:last-child {
    border-bottom: none;
}

#tv-programi .mobile-tv-card .card-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

#tv-programi .mobile-tv-card .card-value {
    color: #333;
    text-align: right;
    font-weight: 500;
    font-size: 14px;
}

/* Mobil kartta saat - TURUNCU */
#tv-programi .mobile-tv-card .card-value.saat-deger {
    color: #FF8C00;
    font-weight: 700;
    font-size: 15px;
}

/* Mobil kartta kanal - LACİVERT */
#tv-programi .mobile-tv-card .card-value.kanal-deger {
    color: #1a237e;
    font-weight: 600;
}

/* ============================================
   MOBİL UYUM (768px ve altı)
   ============================================ */
@media (max-width: 768px) {
    /* Tabloyu gizle */
    #tv-programi .mac-tablosu-container {
        display: none !important;
    }
    
    /* Mobil kart listesini göster */
    #tv-programi .mobile-tv-list {
        display: block;
        margin-top: 15px;
    }
    
    #tv-programi h3 {
        font-size: 18px;
    }
    
    /* Mobilde tablar daha küçük */
    #tv-programi .tv-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ============================================
   MASAÜSTÜ - Mobil kartı gizle
   ============================================ */
@media (min-width: 769px) {
    #tv-programi .mobile-tv-list {
        display: none !important;
    }
    
    #tv-programi .mac-tablosu-container {
        display: block !important;
    }
}

/* ============================================
   ÇOK KÜÇÜK EKRANLAR (480px ve altı)
   ============================================ */
@media (max-width: 480px) {
    #tv-programi .mobile-tv-card {
        padding: 12px 14px;
    }
    
    #tv-programi .mobile-tv-card .card-label {
        font-size: 12px;
    }
    
    #tv-programi .mobile-tv-card .card-value {
        font-size: 13px;
    }
    
    #tv-programi .mobile-tv-card .card-value.saat-deger {
        font-size: 14px;
    }
    
    #tv-programi .tv-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
}