/*
Theme Name: Gerede Online Koyu Yeşil Portal Teması
Theme URI: https://gerede.online
Author: Özel Tasarım
Description: Koyu yeşil kurumsal renkli, Son Dakika kayan yazı bantlı, Borsa/Döviz barlı, 10'lu numaralı manşet, 5'li yan manşet ve 4'lü kart yapısına sahip mobil uyumlu WordPress haber teması.
Version: 2.0
Text Domain: gerede.online
*/

:root {
    --primary-green: #0b4f32;       /* Ana Koyu Yeşil */
    --primary-green-dark: #073521;  /* Daha Koyu Yeşil (Header/Bant) */
    --accent-green: #16a34a;        /* Parlak Vurgu Yeşili (Aktif Numara/Butonlar) */
    --accent-green-light: #22c55e;  /* Hover / İkon Yeşili */
    --bg-dark: #0c1712;             /* Manşet Koyu Yeşil/Siyah Arka Plan */
    --bg-card-dark: #15261e;        /* Yan Manşet Kart Arka Planı */
    --bg-card-dark-hover: #1e362b;  /* Yan Manşet Kart Hover */
    --border-dark: #233d31;         /* Koyu Alan Kenarlıkları */
    --text-light: #ffffff;
    --text-gray: #a7b8b0;
    --bg-body: #f4f7f5;             /* Sayfa Genel Açık Arka Plan */
    --bg-card-light: #ffffff;
    --text-dark: #111c16;
    --up-color: #22c55e;            /* Borsa Yükseliş */
    --down-color: #ef4444;          /* Borsa Düşüş */
    --breaking-red: #dc2626;        /* Son Dakika Kırmızı Etiket */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 1. BORSA & DÖVİZ BARI (EN ÜST) */
.finance-bar {
    background-color: #052114;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.finance-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 20px;
}

.finance-container::-webkit-scrollbar {
    display: none;
}

.finance-items {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.finance-name {
    font-weight: 700;
    color: #9cb3a8;
}

.finance-val {
    font-weight: 700;
    color: #ffffff;
}

.finance-change {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.finance-change.up {
    color: var(--up-color);
    background-color: rgba(34, 197, 94, 0.12);
}

.finance-change.down {
    color: var(--down-color);
    background-color: rgba(239, 68, 68, 0.12);
}

.finance-date {
    color: #9cb3a8;
    font-size: 12px;
    white-space: nowrap;
}

/* 2. HEADER & NAVİGASYON (KOYU YEŞİL) */
.site-header {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-light);
}

.logo span {
    color: #4ade80;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-menu li a {
    font-size: 15px;
    font-weight: 600;
    color: #e6f4ed;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-menu li a:hover {
    color: #4ade80;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* 3. SON DAKİKA BARI */
.breaking-bar {
    background-color: var(--primary-green-dark);
    border-bottom: 2px solid var(--accent-green);
    color: #fff;
}

.breaking-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-badge {
    background-color: var(--breaking-red);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 32s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 45px;
    font-size: 14px;
    font-weight: 600;
    color: #e2f2ea;
}

.ticker-item:hover {
    color: #4ade80;
}

.ticker-time {
    background-color: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ANA KONTEYNER */
.container {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ÜST MANŞET BÖLÜMÜ (KOYU YEŞİL/SİYAH KUTU) */
.hero-wrapper {
    background-color: var(--bg-dark);
    display: grid;
    grid-template-columns: 65% 35%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(7, 53, 33, 0.18);
    border: 1px solid var(--border-dark);
}

/* SOL BÜYÜK SLIDER */
.main-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 460px;
    background-color: #000;
    user-select: none;
}

.slides-container {
    position: relative;
    width: 100%;
    height: calc(100% - 46px);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 28, 18, 0.95) 0%, rgba(6, 28, 18, 0.45) 45%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px 30px;
}

.slide-title {
    color: var(--text-light);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    max-width: 92%;
}

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(11, 79, 50, 0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background-color: var(--accent-green);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

/* 1-10 Numaralı Bar (Yeşil Vurgulu) */
.slider-pagination {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    height: 46px;
    background-color: #09130e;
    border-top: 1px solid var(--border-dark);
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid var(--border-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.page-num:last-child {
    border-right: none;
}

.page-num:hover {
    background-color: var(--bg-card-dark);
    color: #fff;
}

.page-num.active {
    background-color: var(--accent-green);
    color: #fff;
    font-weight: 800;
}

/* SAĞ YAN LİSTE (5'Lİ KOYU YEŞİL KARTLAR) */
.side-stories {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    gap: 10px;
    background-color: var(--bg-dark);
}

.side-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card-dark);
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    height: calc((460px - 64px) / 5);
    transition: all 0.2s;
}

.side-card:hover {
    background-color: var(--bg-card-dark-hover);
    border-left-color: var(--accent-green-light);
}

.side-card img {
    width: 110px;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.side-card-title {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ALT 4'LÜ KART GRİDİ (BEYAZ ALAN) */
.news-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background-color: var(--bg-card-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(11, 79, 50, 0.05);
    border: 1px solid #e1ebe5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(11, 79, 50, 0.12);
    border-color: var(--accent-green);
}

.news-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb img {
    transform: scale(1.04);
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.35;
    padding: 0 4px 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: var(--primary-green);
}

/* TEKİL HABER SAYFASI (SINGLE.PHP) */
.single-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-green);
}
.single-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
}
.single-meta {
    color: #556b60;
    font-size: 14px;
    margin-bottom: 20px;
}
.single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}
.single-content {
    font-size: 18px;
    line-height: 1.7;
    color: #1a2922;
}
.single-content p {
    margin-bottom: 20px;
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-green-dark);
    color: #9cb3a8;
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    border-top: 3px solid var(--accent-green);
    font-size: 14px;
}

/* TABLET VE MOBİL UYUMLULUK (RESPONSIVE) */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    .main-slider {
        height: 400px;
    }
    .side-card {
        height: 84px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .finance-date {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background-color: var(--primary-green-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 3px solid var(--accent-green);
        z-index: 999;
    }
    .nav-menu.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .breaking-badge span:last-child {
        display: none; /* Mobilde sadece SON DAKİKA ikonu veya kısa metin */
    }
    .main-slider {
        height: 300px;
    }
    .slide-title {
        font-size: 20px;
    }
    .slide-overlay {
        padding: 15px;
    }
    .page-num {
        font-size: 12px;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
