/* ==========================================================================
   Piyasa — finans / ekonomi tema paketi
   Yoğun bilgi, ince çizgiler, tablo rakamları. Gölge yerine kenarlık kullanır.
   ========================================================================== */

body.theme-piyasa {
    --pi-cizgi: 1px solid var(--border);
    --pi-ince: 1px solid var(--border-light);
}

/* Rakamlar hizalı dursun: tarih, saat, okunma sayısı, fiyat */
body.theme-piyasa .card-meta,
body.theme-piyasa .list-meta,
body.theme-piyasa .tr-meta,
body.theme-piyasa .slide-meta,
body.theme-piyasa .article-meta,
body.theme-piyasa .cat-count,
body.theme-piyasa .result-count {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    letter-spacing: 0.1px;
}

/* --- Gölgeleri kaldır, çizgiye geç ------------------------------------- */
body.theme-piyasa .news-card,
body.theme-piyasa .widget,
body.theme-piyasa .headline-grid {
    box-shadow: none;
    border: var(--pi-cizgi);
    border-radius: 0;
}
body.theme-piyasa .news-card:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

/* --- Üst çubuk: borsa bandı hissi -------------------------------------- */
body.theme-piyasa .top-bar {
    background: var(--bg-nav);
    color: #cbd5e1;
    border-bottom: 2px solid var(--accent);
    font-variant-numeric: tabular-nums;
}
body.theme-piyasa .top-bar a,
body.theme-piyasa .top-bar-right a { color: #cbd5e1; }
body.theme-piyasa .top-bar-right a:hover { color: #fff; }

body.theme-piyasa .main-nav { border-bottom: 2px solid var(--text-primary); }
body.theme-piyasa .nav-inner a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* --- Bölüm başlıkları: ince ve sakin ----------------------------------- */
body.theme-piyasa .section-header {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 6px;
    margin-bottom: 12px;
}
body.theme-piyasa .section-header h2 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    background: none;
    color: var(--text-primary);
    padding: 0;
}
body.theme-piyasa.heading-underline .section-header h2 {
    border-bottom: none;
    padding-bottom: 0;
}
body.theme-piyasa .section-header h2::before {
    content: '';
    display: inline-block;
    width: 9px; height: 9px;
    margin-right: 8px;
    background: var(--accent);
    vertical-align: baseline;
}
body.theme-piyasa .more-link { font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase; }

/* --- Kartlar: sıkı ve bilgi yoğun -------------------------------------- */
body.theme-piyasa .news-grid { gap: 1px; background: var(--border-light); }
body.theme-piyasa .news-card { border: none; outline: 1px solid var(--border-light); }
body.theme-piyasa .card-thumb { height: 128px; }
body.theme-piyasa .card-body { padding: 10px 12px 12px; }
body.theme-piyasa .card-body h3 {
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.32;
    -webkit-line-clamp: 3;
}
body.theme-piyasa .card-badge {
    border-radius: 0;
    background: var(--text-primary);
    color: var(--bg-card);
    font-size: 0.58rem;
    letter-spacing: 0.7px;
}

/* Kompakt düzende dördüncü sütun: daha çok başlık ekrana sığsın */
@media (min-width: 1100px) {
    body.theme-piyasa.layout-compact .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Manşet: sade, abartısız ------------------------------------------- */
body.theme-piyasa .headline-grid { height: 460px; }
body.theme-piyasa .slide h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.2px;
}
body.theme-piyasa .slide-category {
    border-radius: 0;
    font-size: 0.62rem;
    letter-spacing: 1px;
}
body.theme-piyasa .slide-overlay {
    background: linear-gradient(to top, rgba(8,14,22,0.95) 10%, rgba(8,14,22,0.6) 46%, transparent 76%);
}
body.theme-piyasa .side-item { padding-top: 9px; padding-bottom: 9px; border-bottom: var(--pi-ince); }
body.theme-piyasa .side-item h4 { font-size: 0.86rem; line-height: 1.3; font-weight: 600; }

/* --- Kenar çubuğu ------------------------------------------------------- */
body.theme-piyasa .widget-header {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    font-size: 0.76rem;
    letter-spacing: 1.1px;
    padding: 10px 14px;
}
body.theme-piyasa .tr-item { padding: 8px 14px; border-bottom: var(--pi-ince); }
body.theme-piyasa .tr-item:last-child { border-bottom: none; }
body.theme-piyasa .tr-num {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 20px;
    padding-top: 3px;
}
body.theme-piyasa .tr-text h5 { font-size: 0.82rem; line-height: 1.32; }
body.theme-piyasa .cat-item { padding: 7px 14px; font-size: 0.8rem; }
body.theme-piyasa .tag-item { border-radius: 0; font-size: 0.72rem; }

/* --- Haber sayfası: okunaklı, ölçülü ----------------------------------- */
body.theme-piyasa .article-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.3px;
}
body.theme-piyasa .article-header .category-badge {
    border-radius: 0;
    background: var(--text-primary);
    color: var(--bg-card);
    letter-spacing: 1px;
}
body.theme-piyasa .article-meta {
    border-top: var(--pi-ince);
    border-bottom: var(--pi-ince);
    padding: 9px 0;
}
body.theme-piyasa .article-content { font-size: 1rem; line-height: 1.72; }
body.theme-piyasa .article-content h2,
body.theme-piyasa .article-content h3 {
    font-weight: 700;
    letter-spacing: -0.2px;
    border-bottom: var(--pi-cizgi);
    padding-bottom: 6px;
}
body.theme-piyasa .article-content blockquote {
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: var(--accent-soft);
    font-style: normal;
}
body.theme-piyasa .article-content table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    margin: 18px 0;
}
body.theme-piyasa .article-content th,
body.theme-piyasa .article-content td {
    border: var(--pi-ince);
    padding: 7px 10px;
    text-align: left;
}
body.theme-piyasa .article-content th {
    background: var(--bg-card-hover);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
body.theme-piyasa .share-btn,
body.theme-piyasa .pg-btn,
body.theme-piyasa .article-tags a { border-radius: 0; }

/* --- Alt bilgi ---------------------------------------------------------- */
body.theme-piyasa .footer { border-top: 2px solid var(--accent); }
body.theme-piyasa .footer h4 { font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }

/* --- Küçük ekran -------------------------------------------------------- */
@media (max-width: 768px) {
    body.theme-piyasa .headline-grid { height: auto; }
    body.theme-piyasa .card-body h3 { font-size: 0.9rem; }
    body.theme-piyasa .news-grid { gap: 10px; background: none; }
    body.theme-piyasa .news-card { outline: none; border: var(--pi-cizgi); }
}
