:root {
    --bg-dark: #151922;
    --bg-header: #1e2330;
    --accent-red: #D92323;
    --text-white: #eeeeee;
    --text-gray: #a0a3bd;
    --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: 10px 0; 
    border-bottom: 1px solid var(--border-color);
}

.top-bar {
    width: 100%; 
    padding: 0 40px; /* Kenarlardan boşluk */
    margin: 0; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Ayarları */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo-container a {
    display: flex;
    align-items: center;
    height: 70px; /* Link yüksekliği logoyla eşitlendi */
    text-decoration: none;
    background: none !important;
}

/* --- GÜNCELLENEN LOGO (230x70) --- */
.c1tv-logo {
    width: 230px;       /* İstenen Genişlik */
    height: 70px;       /* İstenen Yükseklik */
    object-fit: contain; /* Görsel bozulmadan sığdırılır */
    display: block;
    filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.25)); 
    transition: transform 0.3s ease;
}

.c1tv-logo:hover {
    filter: drop-shadow(0 5px 20px rgba(255, 255, 255, 0.4));
    transform: scale(1.02);
}

/* Sağ Taraf */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- DÖVİZ ALANI --- */
.market-ticker {
    display: flex;
    gap: 40px; /* Öğeler arası boşluk genişletildi */
    font-size: 15px;
    font-weight: 500;
}
.ticker-item i { color: #00ff88; margin-right: 8px; }

/* 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-container {
    width: 100%;
    max-width: 800px; 
    margin: 0 auto; 
    background: #000;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 8px;
}

.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;
}

/* Sidebar Grafik Kutuları */
.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: 20px 0;
    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(280px, 1fr));
    gap: 20px;
}
.news-card {
    background: var(--bg-header);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%; 
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); }
.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.news-info { 
    padding: 15px; 
    flex-grow: 1; 
}
.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 --- */
.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;
}
.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; }
.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;
}
#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;
}

@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; }
}