/*
Theme Name: Borsa Takvimi
Theme URI: https://borsatakvimi.com
Author: Borsa Takvimi
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:   #0d0d1a;
    --fume:        #13132b;
    --fume-mid:    #1a1a3e;
    --fume-light:  #6b7280;
    --gold:        #FFDF00;
    --gold-dark:   #FFDF00;
    --gold-glow:   rgba(245,158,11,.18);
    --gold-pale:   #fffbeb;
    --white:       #ffffff;
    --bg-soft:     #f0f2f5;
    --border:      #e2e8f0;
    --text-main:   #12122B;
    --text-muted:  #64748b;
    --green:       #10b981;
    --green-glow:  rgba(16,185,129,.15);
    --red:         #ef4444;
    --red-glow:    rgba(239,68,68,.15);
    --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:      8px;
    --radius-lg:   12px;
    --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
    --shadow-md:   0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.13);
}

/* --- 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);
    background-image: linear-gradient(135deg, #f0f2f5 0%, #e8eaf0 100%);
    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 — Tam füme
   ======================================================== */
#top-bar {
    background: linear-gradient(90deg, #0a0a14 0%, #0d0d1a 100%);
    color: #aaa;
    font-family: var(--font-sans);
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(245,158,11,.12);
}
#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; color: #888; }
#top-bar .top-markets { display: flex; gap: 16px; flex-wrap: wrap; }
#top-bar .top-markets span { white-space: nowrap; }

/* ========================================================
   HEADER — Logo alanı sarı/beyaz
   ======================================================== */
#site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#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: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #1a1a1a;
    font-family: var(--font-main);
    line-height: 1;
}
.site-logo .logo-main span { color: var(--gold); }
.site-logo .logo-sub {
    font-size: 10px;
    color: #999;
    font-family: var(--font-sans);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 5px;
    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: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 9px 18px;
    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: #0a0a14;
    border: none;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    border-radius: 24px;
    transition: background 0.2s, box-shadow 0.2s;
}
.header-search button:hover { background: var(--gold-dark); box-shadow: 0 4px 12px var(--gold-glow); }

/* ========================================================
   NAV — %70 Taş + %30 Füme
   ======================================================== */
#main-nav {
    background: linear-gradient(90deg, #12122B 0%, #12122B 50%, #12122B 100%);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    border-top: 1px solid rgba(245,158,11,.12);
    border-bottom: 1px solid rgba(0,0,0,.3);
}
#main-nav .container {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

#main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

#main-nav ul li { position: relative; }

#main-nav ul li a {
    display: block;
    color: #f0ece8;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 13px 16px;
    letter-spacing: 0.2px;
    border-bottom: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

#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(0,0,0,.18);
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Dropdown */
#main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #3d3a37;
    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;
    color: #d0ccc8;
}
#main-nav ul li ul li a:hover,
#main-nav ul li ul li.current-menu-item > a {
    background: rgba(255,255,255,.07);
    color: var(--gold);
    border-left-color: var(--gold);
}

#main-nav ul li ul li ul {
    top: 0; left: 100%;
    border-top: none;
    border-left: 2px solid var(--gold);
}

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

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    #main-nav ul {
        display: none; flex-direction: column;
        width: 100%; background: #5a5550;
    }
    #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,.07);
        border-left: 3px solid transparent;
    }
    #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; }
}

/* ========================================================
   TICKER BANT
   ======================================================== */
#ticker-bar {
    background: linear-gradient(90deg, #0a0a14 0%, #0d1020 40%, #0a0a14 100%);
    border-bottom: 1px solid rgba(245,158,11,.15);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 36px;
    position: relative;
}
.ticker-label-badge {
    flex-shrink: 0;
    background: var(--gold);
    color: #0a0a14;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}
.ticker-delay-badge {
    flex-shrink: 0;
    background: rgba(245,158,11,.10);
    border-right: 1px solid rgba(245,158,11,.18);
    color: rgba(245,158,11,.8);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
    letter-spacing: .3px;
}
.ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    /* fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.ticker-track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    padding: 0 16px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    transition: background .2s;
}
.ticker-item:hover { background: rgba(255,255,255,.04); }
.ticker-item .t-label {
    color: rgba(255,255,255,.4);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-family: var(--font-sans);
    font-weight: 600;
}
.ticker-item .t-val {
    color: var(--white);
    font-weight: 700;
    letter-spacing: .2px;
}
.ticker-item .t-chg { font-size: 11px; font-weight: 600; }
/* Separator between ticker items */
.ticker-item::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.08);
    margin-left: 10px;
}

/* Price flash animation */
@keyframes price-flash {
    0%   { background: rgba(245,158,11,.25); }
    100% { background: transparent; }
}
.ticker-flash {
    animation: price-flash .4s ease-out forwards !important;
    animation-play-state: running !important;
}

/* ========================================================
   SON DAKİKA
   ======================================================== */
#breaking-bar {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    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;
}

/* ========================================================
   PİYASA TABLOLARI
   ======================================================== */
#market-tables {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.market-tables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (max-width: 900px) { .market-tables-grid { grid-template-columns: 1fr; } }

.market-table-panel {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226,232,240,.7);
    transition: box-shadow .25s, transform .25s;
}
.market-table-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.mtp-header {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 100%);
    border-bottom: 2px solid var(--gold);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mtp-header h3 { color: var(--white) !important;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    flex: 1;
}
.mtp-header .mtp-badge {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-sans);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}
.mtp-badge.active {
    background: var(--gold);
    color: #1a1a1a;
}
.mtp-badge.passive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid var(--border);
}

/* Tablo başlıkları */
.mtp-cols {
    display: grid;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}
.mtp-cols.doviz-cols  { grid-template-columns: 2fr 1fr 1fr 80px; }
.mtp-cols.altin-cols  { grid-template-columns: 2fr 1fr 1fr; }
.mtp-cols.kripto-cols { grid-template-columns: 2fr 1fr 80px; }

/* Tablo satırları */
.mtp-row {
    display: grid;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-family: var(--font-sans);
    transition: background 0.1s;
    cursor: default;
}
.mtp-row:last-child { border-bottom: none; }
.mtp-row:hover { background: #fafbfc; }
.mtp-row.doviz-cols  { grid-template-columns: 2fr 1fr 1fr 80px; }
.mtp-row.altin-cols  { grid-template-columns: 2fr 1fr 1fr; }
.mtp-row.kripto-cols { grid-template-columns: 2fr 1fr 80px; }

.mtp-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}
.mtp-name .flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.mtp-name .coin-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
}
.coin-btc  { background: #f7931a; }
.coin-eth  { background: #627eea; }
.coin-xrp  { background: #00aae4; }
.coin-bch  { background: #8dc351; }
.coin-eos  { background: #443f54; }
.coin-ltc  { background: #bfbbbb; }

.mtp-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
.mtp-chg-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}
.mtp-chg-badge.up  { background: var(--green-glow); color: var(--green); }
.mtp-chg-badge.dn  { background: var(--red-glow);   color: var(--red);   }
.mtp-chg-badge.flat{ background: rgba(100,116,139,.08); color: #64748b; }
.mtp-arrow-up   { color: var(--green); font-size: 9px; }
.mtp-arrow-dn   { color: var(--red);   font-size: 9px; }

/* ========================================================
   HABER SLİDER
   ======================================================== */
#news-slider-section {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 100%);
    padding: 20px 0;
    overflow: hidden;
}
.news-slider-wrap {
    position: relative;
}
.news-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.news-slide {
    flex: 0 0 calc(25% - 12px);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    min-width: 220px;
}
@media (max-width: 900px) { .news-slide { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 560px) { .news-slide { flex: 0 0 calc(100% - 0px); } }

.news-slide-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #2d3a5a;
}
.news-slide-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 65%, transparent 100%);
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
    padding: 40px 14px 14px;
}
.news-slide-overlay h3 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-sans);
}
.news-slide-overlay .slide-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,.30); }
.slider-btn.prev { left: -14px; }
.slider-btn.next { right: -14px; }

/* ========================================================
   ======================================================== */
#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: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 0 8px var(--gold-glow);
    border-radius: 3px;
    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: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* ========================================================
   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;
    gap: 18px !important;
    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;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
    border: 1px solid rgba(226,232,240,.6);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.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 rgba(226,232,240,.8);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.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; }
}


/* ========================================================
   MODERN EKLEMELERi — v1.1
   ======================================================== */

/* Smooth up/dn renk transisi */
.up { color: var(--green) !important; }
.dn { color: var(--red)   !important; }

/* Market tables grid shadow separator */
.market-tables-grid {
    gap: 16px;
}

/* MTP rows daha şık */
.mtp-row {
    border-bottom: 1px solid rgba(226,232,240,.5) !important;
    transition: background .15s;
}
.mtp-row:hover { background: rgba(245,158,11,.04); }
.mtp-row:last-child { border-bottom: none !important; }

/* MTP columns header */
.mtp-cols {
    background: rgba(248,250,252,.8) !important;
    font-size: 10px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600 !important;
}

/* Coin icons modernize */
.coin-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.coin-btc { background: linear-gradient(135deg, #f7931a, #e8830a); color: #fff; }
.coin-eth { background: linear-gradient(135deg, #627eea, #3a5acc); color: #fff; }

/* Flag emoji spacing */
.flag { font-size: 16px; }

/* Delayed clock style */
#delayed-clock { font-variant-numeric: tabular-nums; letter-spacing: .5px; }

/* Pagination modernize */
.pagination a, .pagination span {
    border-radius: 8px;
}
.pagination .current {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 2px 8px var(--gold-glow);
}

/* Breaking bar tag */
.breaking-tag {
    background: rgba(0,0,0,.2);
    border-radius: 4px;
    font-size: 10px;
    padding: 3px 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Slider buttons */
.slider-btn {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    backdrop-filter: blur(4px);
    transition: background .2s !important;
}
.slider-btn:hover {
    background: rgba(245,158,11,.3) !important;
}

/* Footer subtle upgrade */
#site-footer {
    background: linear-gradient(180deg, #0d0d1a 0%, #060610 100%);
}

/* Sub-story hover */
.sub-story {
    transition: background .15s;
    border-radius: var(--radius);
    padding: 6px;
}
.sub-story:hover { background: rgba(245,158,11,.04); }

/* News list item */
.news-list-item {
    border-radius: var(--radius);
    transition: background .15s;
}
.news-list-item:hover { background: rgba(245,158,11,.04); }

/* Market tables header color fix */
.mtp-header h3 { color: #fff !important; }
.mtp-header { border-bottom: 2px solid var(--gold) !important; }

/* Scrollbar subtle */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }