/* =========================================
   KAHTA TV - ANA STİL DOSYASI (STYLE.CSS)
   ========================================= */

/* --- GENEL AYARLAR --- */
body { 
    margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f4f4f4; 
    padding-bottom: 70px; /* Mobil alt menü boşluğu */
}

/* --- ÜST HEADER VE LOGO --- */
header { 
    background: #fff; 
    padding: 15px 0; 
    text-align: center; 
    border-bottom: 1px solid #ddd; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.logo { 
    background: #cc0000; 
    color: #fff; 
    padding: 5px 20px; 
    font-size: 26px; 
    font-weight: 900; 
    display: inline-block; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* --- ÜST DUYURU ALANI --- */
.top-announcement { 
    background: #111; 
    color: #fff; 
    text-align: center; 
    padding: 10px 15px; 
    font-size: 13px; 
    font-weight: bold; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
}
.top-announcement i { 
    color: #ffcc00; 
    margin-right: 8px; 
    font-size: 15px; 
}

/* --- ANA İÇERİK KONTEYNERİ --- */
.container { 
    max-width: 1050px; 
    margin: 20px auto; 
    background: #fff; 
    padding: 20px; 
    box-shadow: 0 0 15px rgba(0,0,0,0.05); 
    border-radius: 6px;
}

/* --- BAŞLIK VE HAVA DURUMU ALANI --- */
.title-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px; 
    margin-bottom: 15px; 
}
.title-section h1 { 
    font-size: 22px; 
    margin: 0; 
    font-weight: 800; 
}

/* Hava Durumu Modülü */
.weather-widget { 
    display: flex; 
    align-items: center; 
    background: #f8f9fa; 
    border: 1px solid #ddd; 
    padding: 6px 16px; 
    border-radius: 30px; 
    color: #444; 
}
.weather-widget i { 
    font-size: 24px; 
    color: #f39c12; 
    margin-right: 12px; 
}
.weather-info { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.1; 
}
.weather-info .city { 
    font-size: 11px; 
    font-weight: 800; 
    color: #888; 
    letter-spacing: 0.5px; 
}
.weather-info .temp { 
    font-size: 16px; 
    font-weight: 900; 
    color: #222; 
}

/* --- VİDEO OYNATICI VE YAYIN BİLGİ ÇUBUĞU --- */
.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; /* 16:9 Oranı */
    height: 0; 
    overflow: hidden; 
    background: #000; 
    border-radius: 8px 8px 0 0; /* Üst köşeleri yuvarlat, altlar düz kalsın (çubukla birleşmesi için) */
}
.video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* Yeni Yayın Bilgi Çubuğu (Kaldırılan Alt Bant Yerine) */
.channel-info-bar {
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px; /* Alt köşeleri yuvarlat */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.live-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cc0000;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
}
/* Yanıp Sönen Kırmızı Uyarı Işığı Efekti */
.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #cc0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite; 
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}
.channel-slogan {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.social-links a {
    color: #999;
    font-size: 20px;
    margin-left: 15px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #cc0000;
    transform: translateY(-2px);
}

/* --- GEÇMİŞ YAYINLAR BÖLÜMÜ (SİMETRİK KART YAPISI) --- */
.past-broadcasts { 
    margin-top: 40px; 
}
.past-broadcasts h2 { 
    font-size: 20px; 
    border-bottom: 2px solid #cc0000; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    color: #333; 
    display: inline-block; 
}
.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}
.video-card { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 4px; 
    overflow: hidden; 
    transition: box-shadow 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}
.video-card:hover { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.video-thumb { 
    position: relative; 
    padding-bottom: 56.25%; 
    background: #ccc; 
    overflow: hidden; 
}
.video-thumb img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.play-icon { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 40px; 
    transition: color 0.3s ease; 
}
.video-card:hover .play-icon { 
    color: #cc0000; 
}
.video-info { 
    padding: 15px; 
}
.video-title { 
    font-size: 15px; 
    font-weight: bold; 
    margin: 0 0 10px 0; 
    line-height: 1.4; 
    color: #222; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.video-date { 
    font-size: 12px; 
    color: #888; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* --- SABİT MOBİL ALT MENÜ --- */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    background: #fff; 
    border-top: 1px solid #eaeaea; 
    display: flex; 
    justify-content: space-around; 
    padding: 10px 0 8px 0; 
    font-size: 11px; 
    color: #555; 
    z-index: 100;
}
.nav-item { 
    text-align: center; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
    font-weight: 500;
}
.nav-item i { 
    font-size: 20px; 
    color: #666;
}
.nav-item.active, .nav-item.active i {
    color: #cc0000;
}
/* Bildirim Rozeti (Badge) */
.icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}
.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #cc0000;
    color: white;
    border-radius: 50px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 900;
    border: 2px solid #fff; 
    line-height: 1;
}

/* --- SİNEMA MODU (MODAL POPUP) --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px); 
}
.modal-content { 
    position: relative; 
    margin: 5% auto; 
    width: 90%; 
    max-width: 900px; 
    background: #000; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.5); 
    border-radius: 8px; 
    overflow: hidden; 
}
.close-btn { 
    position: absolute; 
    top: -40px; 
    right: 0; 
    color: #fff; 
    font-size: 35px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: color 0.3s; 
}
.close-btn:hover { 
    color: #cc0000; 
}
.modal-video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
}
.modal-video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
}

/* --- MOBİL VE TABLET UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    .container { 
        margin: 0; 
        box-shadow: none; 
        padding: 10px; 
        border-radius: 0; 
    }
    .title-section h1 { 
        font-size: 18px; 
    }
    .weather-widget { 
        padding: 4px 10px; 
    }
    .weather-widget i { 
        font-size: 18px; 
        margin-right: 8px; 
    }
    .weather-info .temp { 
        font-size: 14px; 
    }
    .channel-info-bar { 
        flex-direction: column; 
        gap: 12px; 
        text-align: center; 
    }
    .social-links a { 
        margin: 0 10px; 
    }
}