/* =========================================
   KESKİN HABER - ANA STİL DOSYASI
   ========================================= */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --primary-red: #dc2626;
    --header-bg: #ffffff;
    --top-bar-bg: #1e293b;
    --top-bar-text: #f1f5f9;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --header-bg: #1e293b;
    --top-bar-bg: #020617;
    --top-bar-text: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TOP BAR */
.top-utility-bar {
    background-color: var(--top-bar-bg);
    color: var(--top-bar-text);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-utility-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-left-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.finance-ticker {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.fin-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.82rem;
    color: #ffffff;
}
.fin-label {
    color: #94a3b8;
    font-weight: normal;
}
.fin-val {
    color: #22c55e;
    font-weight: bold;
}
.top-right-info a {
    color: var(--top-bar-text);
    transition: color 0.2s;
}
.top-right-info a:hover {
    color: var(--primary-red);
}

/* HEADER */
.main-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.logo-area {
    display: flex;
    align-items: center;
}
.brand-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo-badge {
    background-color: var(--primary-red);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.6rem;
}
.header-right-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.2s;
}
.search-box:focus-within {
    border-color: var(--primary-red);
}
.search-box input {
    background: transparent;
    color: var(--text-main);
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    outline: none;
    width: 140px;
    transition: width 0.3s ease;
}
.search-box input:focus {
    width: 180px;
}
.search-box button {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0 12px;
    cursor: pointer;
    font-size: 0.85rem;
}
.search-box button:hover {
    color: var(--primary-red);
}
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
}
.theme-toggle-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* KATEGORİ MENÜSÜ */
.category-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.category-menu {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
}
.cat-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: color 0.2s;
}
.cat-link:hover, .cat-link.active {
    color: var(--primary-red);
}

/* ANA PORTAL GRID */
.main-portal-wrapper {
    margin-top: 25px;
    margin-bottom: 50px;
}
.portal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

/* SLİDER MANŞET (SOL) */
.news-slider-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    height: 100%;
    min-height: 440px;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
}
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}
.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 3;
}
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    width: 100%;
    z-index: 3;
    color: white;
}
.hero-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.25;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.hero-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 46px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.slider-btn:hover { background: var(--primary-red); }
.prev-btn { left: 0; border-radius: 0 4px 4px 0; }
.next-btn { right: 0; border-radius: 4px 0 0 4px; }
.slider-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}
.dot.active {
    background: var(--primary-red);
    width: 22px;
    border-radius: 5px;
}

/* YAN KÜÇÜK MANŞETLER */
.sub-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sub-news-item {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100px;
}
.sub-news-thumb { width: 40%; }
.sub-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-news-content {
    padding: 10px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cat-badge-small { font-size: 0.75rem; color: var(--primary-red); font-weight: bold; }
.sub-news-title {
    font-size: 0.88rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sub-news-date { font-size: 0.78rem; color: var(--text-muted); }

/* WIDGETLAR (SAĞ SİDEBAR) */
.widget-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}
.widget-header {
    background: var(--primary-red);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-list li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
}
.ticker-time { color: var(--primary-red); font-weight: bold; }

/* HAVA DURUMU & DOĞRULUK */
.weather-content {
    padding: 15px;
    text-align: center;
    background: var(--bg-card);
}
.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}
.weather-icon { font-size: 2.2rem; color: #38bdf8; }
.weather-temp { font-size: 2.2rem; font-weight: 800; }
.weather-status { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; }
.weather-days {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}
.w-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
    color: var(--text-muted);
}
.w-day i { font-size: 1rem; color: var(--text-main); margin: 2px 0; }

.truth-widget {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 20px 15px;
}
.truth-box-inner h3 { font-size: 1.1rem; color: #ffffff; letter-spacing: 1px; }
.truth-box-inner p { font-size: 1.1rem; color: var(--primary-red); font-weight: 800; margin-top: 2px; letter-spacing: 1px; }

/* POPÜLER HABERLER */
.pop-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.pop-rank { font-size: 1.3rem; font-weight: 900; color: var(--border-color); }
.pop-thumb { width: 45px; height: 45px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-title { font-size: 0.83rem; line-height: 1.3; }

/* ALT 4'LÜ IZGARA */
.secondary-grid-section { margin-top: 35px; }
.section-title-line {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}
.quad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quad-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.quad-img-box { position: relative; height: 170px; }
.quad-img-box img { width: 100%; height: 100%; object-fit: cover; }
.float-badge { position: absolute; top: 10px; left: 10px; background: var(--primary-red); color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.quad-content { padding: 12px; }
.quad-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quad-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* KANAL SEÇMELİ RADYO OYNATICI STİLLERİ */
.site-radio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}
.radio-info { display: flex; align-items: center; gap: 10px; }
.radio-icon {
    width: 35px; height: 35px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.radio-details { display: flex; flex-direction: column; gap: 2px; }
.radio-select {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.82rem;
    font-weight: bold;
    outline: none;
    cursor: pointer;
}
.radio-select option {
    background: var(--bg-card);
    color: var(--text-main);
}
.radio-status { font-size: 0.70rem; color: #22c55e; padding-left: 2px; }
.radio-controls { display: flex; align-items: center; gap: 12px; }
.radio-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.radio-btn:hover { transform: scale(1.08); }
.radio-volume { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; }
.radio-volume input[type="range"] { width: 60px; accent-color: var(--primary-red); cursor: pointer; }

/* MOBİL UYUM */
@media (max-width: 992px) {
    .portal-grid { grid-template-columns: 1fr; }
    .news-slider-container, .slider-wrapper { min-height: 350px; }
    .quad-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 12px; text-align: center; }
    .header-right-tools { flex-wrap: wrap; justify-content: center; }
    .top-left-info { flex-direction: column; gap: 8px; align-items: flex-start; }
    .quad-grid { grid-template-columns: 1fr; }
    .site-radio-player { bottom: 10px; right: 10px; left: 10px; border-radius: 12px; justify-content: space-between; }
    .radio-volume { display: none; }
}
