:root {
    --fume-dark: #2f2f2f;
}
/*
Theme Name: Borsa Takvimi
Theme URI: https://borsatakvimi.com
Author: Halka Arzlar
Author URI: https://borsatakvimi.com
Description: Profesyonel finans haber teması — füme, altın sarısı ve beyaz renk paleti ile doviz.com tarzı haber ve canlı veri sitesi için tasarlanmıştır.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: borsa-takvimi
Tags: news, finance, custom-colors, custom-logo, featured-images, full-width-template
*/

/* ========================================================
   BORSA TAKVİMİ THEME — ANA STİL DOSYASI
   ======================================================== */

/* --- CSS Değişkenleri --- */
:root {
    --fume-dark:   #1a1a2e;
    --fume:        #16213e;
    --fume-mid:    #0f3460;
    --fume-light:  #6b7280;
    --gold:        #ffd700;
    --gold-dark:   #d97706;
    --gold-pale:   #ffd700;
    --white:       #ffffff;
    --bg-soft:     #f8fafc;
    --border:      #e2e8f0;
    --text-main:   #0f172a;
    --text-muted:  #64748b;
    --green:       #059669;
    --red:         #dc2626;
    --font-main:   'Inter', system-ui, -apple-system, sans-serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --radius:      6px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02','cv03','cv04','cv11';
    font-variant-numeric: tabular-nums;
}

a { color: var(--fume-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; display: block; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.up   { color: var(--green) !important; }
.dn   { color: var(--red)   !important; }

/* ========================================================
   TOP BAR
   ======================================================== */
#top-bar {
    background: var(--fume-dark);
    color: #ccc;
    font-family: var(--font-sans);
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid #2a2a2a;
}
}
#top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
#top-bar .top-date { letter-spacing: 0.3px; }
#top-bar .top-markets { display: flex; gap: 16px; flex-wrap: wrap; }
#top-bar .top-markets span { white-space: nowrap; }

/* ========================================================
   HEADER
   ======================================================== */
#site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}
#site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-logo a { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.site-logo img { max-height: 70px; width: auto; }
.site-logo .logo-main {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--fume-dark);
    font-family: var(--font-main);
    line-height: 1;
}
.site-logo .logo-main span { color: var(--gold); }
.site-logo .logo-sub {
    font-size: 10px;
    color: var(--fume-light);
    font-family: var(--font-sans);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.header-search { display: flex; gap: 6px; align-items: center; }
.header-search input[type="search"] {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--bg-soft);
    color: var(--text-muted);
    outline: none;
    width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search input[type="search"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.header-search button {
    background: var(--gold);
    color: var(--fume-dark);
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.1s;
}
.header-search button:hover { background: var(--gold-dark); }
.header-search button:active { transform: scale(0.97); }

/* ========================================================
   NAV — WordPress tam uyumlu, dropdown destekli
   ======================================================== */
#main-nav {
    background: var(--fume);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
#main-nav .container {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburger butonu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    color: #ccc;
    font-size: 20px;
    line-height: 1;
}

/* Ana menü listesi */
#main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

/* Menü öğesi */
#main-nav ul li {
    position: relative;
}

#main-nav ul li a {
    display: block;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 15px;
    letter-spacing: 0.1px;
    border-bottom: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a,
#main-nav ul li.current-menu-ancestor > a,
#main-nav ul li.current_page_item > a {
    background: rgba(255,255,255,.06);
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Alt menü (dropdown) */
#main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--fume-mid);
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    z-index: 1000;
}

#main-nav ul li:hover > ul,
#main-nav ul li:focus-within > ul {
    display: flex;
}

#main-nav ul li ul li a {
    padding: 10px 16px;
    font-size: 12px;
    border-bottom: none;
    border-left: 3px solid transparent;
    white-space: normal;
}

#main-nav ul li ul li a:hover,
#main-nav ul li ul li.current-menu-item > a {
    background: rgba(255,255,255,.08);
    color: var(--gold);
    border-left-color: var(--gold);
}

/* 3. seviye alt menü */
#main-nav ul li ul li ul {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 2px solid var(--gold);
}

/* Dropdown oku */
#main-nav ul li:has(> ul) > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.6;
}

/* Responsive nav */
@media (max-width: 900px) {
    .nav-toggle { display: block; }

    #main-nav ul {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        background: var(--fume);
    }

    #main-nav ul.nav-open { display: flex; }

    #main-nav ul li { width: 100%; }

    #main-nav ul li a {
        padding: 11px 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-left: 3px solid transparent;
    }

    #main-nav ul li.current-menu-item > a,
    #main-nav ul li a:hover {
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-left-color: var(--gold);
    }

    #main-nav ul li ul {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--gold);
        background: rgba(0,0,0,.15);
        margin-left: 16px;
    }

    #main-nav ul li.menu-open > ul { display: flex; }

    #main-nav ul li:has(> ul) > a::after { float: right; }
}

/* ========================================================
   TICKER BANT
   ======================================================== */
#ticker-bar {
    background: var(--fume-dark);
    padding: 7px 0;
    overflow: hidden;
}
.ticker-track {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
}
.ticker-item .t-label { color: #888; }
.ticker-item .t-val   { color: var(--white); font-weight: 600; }
.ticker-item .t-chg   { font-size: 11px; }

/* ========================================================
   SON DAKİKA
   ======================================================== */
#breaking-bar {
    background: var(--gold);
    padding: 6px 0;
}
#breaking-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.breaking-tag {
    background: var(--fume-dark);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-sans);
    padding: 2px 8px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.breaking-text {
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--fume-dark);
    font-weight: 600;
}

/* ========================================================
   LAYOUT ANA GRID
   ======================================================== */
#content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}
@media (max-width: 900px) {
    #content-wrapper { grid-template-columns: 1fr; }
}

/* ========================================================
   BÖLÜM BAŞLIKLARI (ORTALI)
   ======================================================== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.section-heading .sh-bar {
    width: 4px;
    height: 20px;
    background: var(--gold);
    flex-shrink: 0;
}
.section-heading h2, .section-heading h3 {
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--fume-dark);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    flex: 1;
    text-align: center;
}
.section-heading .sh-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========================================================
   HERO BÖLÜM
   ======================================================== */
.hero-section { margin-bottom: 28px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 680px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-main .hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 3px;
}
.hero-main .hero-img-placeholder {
    width: 100%;
    height: 220px;
    background: var(--fume);
    border-radius: 3px;
}
.hero-main .post-cat {
    display: inline-block;
    background: var(--gold);
    color: var(--fume-dark);
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 2px 8px;
    letter-spacing: 0.8px;
    margin-top: 10px;
    text-align: center;
}
.hero-main h1.hero-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 8px;
    color: var(--text-main);
    text-align: center;
}
.hero-main .hero-lead {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 8px;
    text-align: center;
}
.hero-main .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-top: 8px;
    text-align: center;
}

/* --- Yan Haberler --- */
.sub-stories { display: flex; flex-direction: column; gap: 14px; }
.sub-story {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.sub-story:last-child { border-bottom: none; padding-bottom: 0; }
.sub-story .sub-img {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    background: var(--fume-light);
}
.sub-story .sub-cat {
    font-size: 10px;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.6px;
}
.sub-story h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 3px;
    color: var(--text-main);
    text-align: center;
}
.sub-story .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-top: 4px;
    text-align: center;
}

/* ========================================================
   3'LÜ HABER KARTLARI
   ======================================================== */
.news-cards-section { margin-bottom: 28px; }
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
@media (max-width: 680px) { .news-cards-grid { grid-template-columns: 1fr; } }

.news-card {
    background: var(--white);
    padding: 14px;
    transition: background 0.15s;
}
.news-card:hover { background: var(--gold-pale); }
.news-card .nc-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 10px;
    background: var(--fume-light);
}
.news-card .nc-cat {
    font-size: 10px;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.news-card h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 4px;
    text-align: center;
}
.news-card .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-top: 6px;
    text-align: center;
}

/* ========================================================
   LİSTE HABERLERİ
   ======================================================== */
.news-list { margin-bottom: 28px; }
.news-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--fume-light);
}
.news-list-item .nl-cat {
    font-size: 10px;
    color: var(--gold-dark);
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.news-list-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.35;
    text-align: center;
}
.news-list-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: center;
}
.news-list-item .post-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-top: 6px;
    text-align: center;
}

/* ========================================================
   SAYFA / TEK YAZI
   ======================================================== */
.single-post, .page-content {
    background: var(--white);
    padding: 24px;
    border-radius: 3px;
}
.single-post h1, .page-content h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: center;
}
.single-post h2, .page-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 10px;
    text-align: center;
}
.single-post h3, .page-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 8px;
    text-align: center;
}
.single-post .post-meta-full {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    margin-bottom: 20px;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}
.single-post .post-cat-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--fume-dark);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-sans);
    padding: 3px 10px;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.single-post .post-thumbnail {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 20px;
}
.single-post .entry-content p {
    margin-bottom: 16px;
    line-height: 1.75;
    text-align: center;
}
.single-post .entry-content img { border-radius: 3px; margin: 16px auto; }

/* ========================================================
   SIDEBAR
   ======================================================== */
#sidebar { display: flex; flex-direction: column; gap: 0; }

.sb-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 14px;
    margin-bottom: 16px;
}
.sb-widget-title {
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--fume-dark);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}
.sb-widget-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Piyasa satırı */
.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
}
.market-row:last-child { border-bottom: none; }
.market-name { font-size: 12px; color: var(--text-main); font-weight: 500; }
.market-val  { font-size: 13px; font-weight: 700; font-family: var(--font-mono); }
.market-chg  { font-size: 11px; }

/* Ekonomik Takvim */
.econ-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-family: var(--font-sans);
    margin-bottom: 10px;
}
.cal-head { font-size: 10px; color: var(--text-muted); padding: 3px; }
.cal-day {
    font-size: 11px;
    padding: 4px 2px;
    border-radius: 3px;
    cursor: default;
}
.cal-day.today  { background: var(--gold); color: var(--fume-dark); font-weight: 700; }
.cal-day.has-event { background: var(--gold-pale); color: var(--fume-dark); }
.cal-day.past   { color: #ccc; }

.cal-event-list { margin-top: 10px; }
.cal-event {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
}
.cal-event:last-child { border-bottom: none; }
.cal-event .ce-time { font-size: 10px; color: var(--gold-dark); font-weight: 700; min-width: 38px; margin-top: 1px; }
.cal-event .ce-text { font-size: 11px; color: var(--text-main); line-height: 1.4; }
.importance { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.imp-high { background: var(--red); }
.imp-med  { background: var(--gold); }

/* En Çok Okunanlar */
.popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
}
.popular-item:last-child { border-bottom: none; }
.pop-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--border);
    min-width: 22px;
    font-family: var(--font-main);
    line-height: 1;
}
.pop-title { font-size: 12px; line-height: 1.4; text-align: center; }

/* ========================================================
   FOOTER
   ======================================================== */
#site-footer {
    background: var(--fume-dark);
    color: #aaa;
    padding: 40px 0 0;
    margin-top: 30px;
    font-family: var(--font-sans);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--fume-mid);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-align: center;
}
.footer-col p { font-size: 12px; line-height: 1.6; color: #888; text-align: center; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; text-align: center; }
.footer-col ul li a { font-size: 12px; color: #888; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--gold); }

/* ========================================================
   PAGINATION
   ======================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    font-family: var(--font-sans);
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    background: var(--white);
}
.pagination .current {
    background: var(--gold);
    color: var(--fume-dark);
    border-color: var(--gold);
    font-weight: 700;
}
.pagination a:hover { background: var(--gold-pale); border-color: var(--gold); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
    #site-header .container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }
    .header-left { display: none; }
    .header-right { width: 100%; justify-content: center; }
    .site-logo .logo-main { font-size: 24px; }
    .header-search input { width: 160px; }
    .hero-grid { grid-template-columns: 1fr; }
    .news-cards-grid { grid-template-columns: 1fr 1fr; }
    #content-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .news-cards-grid { grid-template-columns: 1fr; }
    #top-bar .top-markets { display: none; }
    .header-search { width: 100%; }
    .header-search input { flex: 1; width: auto; }
}
