:root {
    --bg-dark: #151922;      /* Ana Arka Plan */
    --bg-header: #1e2330;    /* Header Rengi */
    --accent-red: #D92323;   /* Kırmızı Vurgu */
    --text-white: #eeeeee;   /* Beyaz Yazı */
    --text-gray: #a0a3bd;    /* Gri Yazı */
    --border-color: #2c3142;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* --- HEADER & LOGO --- */
header {
    background-color: var(--bg-header);
    padding: 5px 0; /* GÜNCELLENDİ: Boşluk azaltıldı (10px -> 5px) */
    border-bottom: 1px solid var(--border-color);
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo Ayarları */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

/* Link kapsayıcısına sabit yükseklik veriyoruz ki logo sıkışmasın */
.logo-container a {
    display: flex;
    align-items: center;
    height: 55px; 
    text-decoration: none;
}

.c1tv-logo {
    height: 55px; /* GÜNCELLENDİ: Logo büyütüldü (50px -> 55px) */
    width: auto;
    display: block;
    max-height: 100%;
    filter: drop-shadow(0 0 8px #d92323) drop-shadow(0 0 12px #007bff);
    transition: filter 0.3s ease;
}

.c1tv-logo:hover {
    filter: drop-shadow(0 0 12px #d92323) drop-shadow(0 0 18px #007bff);
}

/* Sağ Taraf Düzeni */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Borsa Göstergesi */
.market-ticker {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
}
.ticker-item i { color: #00ff88; margin-right: 5px; }

/* Arama Kutusu */
.search-box {
    display: flex;
    background: #11141b;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
}
.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0 12px;
    outline: none;
    height: 100%;
}
.search-box button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 0 10px;
    cursor: pointer;
    height: 100%;
}

/* --- SON DAKİKA BANDI --- */
.breaking-news {
    display: flex;
    background-color: #000;
    height: 40px;
    align-items: center;
}
.bn-title {
    background-color: var(--accent-red);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.bn-content {
    flex-grow: 1;
    color: white;
    font-size: 14px;
    padding-left: 10px;
}

/* --- GENEL LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.main-layout {
    display: flex;
    gap: 20px;
}

/* Video Alanı */
.video-section {
    flex: 3;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-title {
    margin-top: 15px;
    font-size: 22px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-red);
}

/* Sidebar (Sağ) */
.sidebar {
    flex: 1;
    background-color: var(--bg-header);
    border-radius: 8px;
    padding: 15px;
    height: fit-content;
}
.sidebar-header {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.schedule-list { list-style: none; }
.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2c3142;
    color: var(--text-gray);
    font-size: 14px;
}
.schedule-list li.active {
    color: white;
    background: rgba(217, 35, 35, 0.1);
    padding-left: 10px;
    padding-right: 10px;
    border-left: 3px solid var(--accent-red);
}
.live-badge {
    background: var(--accent-red);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    animation: blink 2s infinite;
}

@keyframes blink { 0% {opacity: 1;} 50% {opacity: 0.5;} 100% {opacity: 1;} }

/* --- SIDEBAR GRAFİK KUTUSU --- */
.crypto-chart-box {
    background-color: var(--bg-header);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

/* --- KATEGORİ MENÜSÜ --- */
.category-menu {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
}
.category-menu a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--bg-header);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.category-menu a:hover {
    color: white;
    background-color: #2c3142;
}
.category-menu a.active {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 10px rgba(217, 35, 35, 0.4);
}

/* --- HABER GRİD --- */
.news-grid-title h2 { font-size: 20px; color: var(--text-white); margin-bottom: 10px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.news-card {
    background: var(--bg-header);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); }
.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.news-info { padding: 15px; }
.tag {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 700;
}
.news-info h3 {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.4;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding-top: 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col .footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}
.footer-col .footer-logo span { color: var(--text-gray); font-weight: 300; }
.footer-col p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}
.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--accent-red); }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 35px;
    height: 35px;
    background: #2c3142;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}
.social-links a:hover { background: var(--accent-red); }
.footer-bottom {
    background-color: #11141b;
    padding: 15px 0;
    text-align: center;
    color: #555;
    font-size: 12px;
}

/* --- HAVA DURUMU WIDGET (KOMPAKT) --- */
.weather-widget.compact {
    position: relative;
    width: 130px; 
    height: 38px;
    background-color: #2c3142;
    border: 1px solid #3e4459;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    z-index: 1001;
}

.weather-widget.compact:hover {
    background-color: #363c50;
    border-color: #4a5166;
}

/* İç Yerleşim */
.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
}

.w-icon-box img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.w-info-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

#w-temp {
    color: #00ff88;
    font-weight: 700;
}

/* Açılır Menü */
.weather-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1002;
    overflow: hidden;
}

.weather-widget.active .weather-dropdown {
    display: block;
}

.search-wrapper { padding: 8px; border-bottom: 1px solid #eee; }
.search-wrapper input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    color: #333;
}
.search-wrapper input {
    outline: none;
    color: #333;
}

#city-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
}

#city-list li {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

#city-list li:hover {
    background-color: #f0f0f0;
    color: #d92323;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .top-bar { flex-direction: column; gap: 10px; text-align: center; }
    .market-ticker { display: none; }
    .header-right { margin-top: 10px; }
}