/* ── CSS VARIABLES ─────────────────────────────────────────────── */
:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* ── BASE ───────────────────────────────────────────────────────── */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
    padding: 1.25rem 0;
    background: #fff !important;
    border-bottom: 1px solid var(--gray-100);
}

.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.logo span { color: var(--primary); }

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--primary) !important; }

.navbar-toggler { border: none; padding: 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }

.tools-wrap, .guides-wrap { position: relative; }

.nav-dropdown-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.nav-dropdown-btn:hover { color: var(--primary); }
.nav-dropdown-btn i.chevron { font-size: 0.75rem; transition: transform 0.2s; }
.nav-dropdown-btn.open i.chevron { transform: rotate(180deg); }

.nav-drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    width: 340px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1050;
}

.nav-drop.open { display: block; }

.drop-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.5rem 0.75rem 0.375rem;
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: background 0.15s;
}

.drop-item:hover { background: var(--gray-50); color: var(--primary); }
.drop-item i { font-size: 1rem; color: var(--primary); width: 18px; text-align: center; flex-shrink: 0; }
.drop-item small { display: block; font-size: 0.75rem; color: var(--gray-400); font-weight: 400; }

/* ── NAVBAR SEARCH ─────────────────────────────────────────────── */
.nav-search-wrap { position: relative; }

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.nav-search-btn:hover { background: var(--gray-100); color: var(--primary); }
.nav-search-btn.open  { color: var(--primary); }

.nav-search-box {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    z-index: 1050;
    overflow: hidden;
}
.nav-search-box.open { display: block; }

.nav-search-box input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.875rem 1.1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
}

.nav-search-results { max-height: 340px; overflow-y: auto; }

.nav-search-item {
    display: block;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.nav-search-item:last-child { border-bottom: none; }
.nav-search-item:hover { background: var(--gray-50); }
.nav-search-item strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; line-height: 1.4; }
.nav-search-item span   { font-size: 0.78rem; color: var(--gray-500); line-height: 1.75; display: inline-block; }

.nav-search-empty { padding: 1rem 1.1rem; font-size: 0.875rem; color: var(--gray-500); }

@media (max-width: 991px) {
    .nav-search-box { width: 290px; right: -0.5rem; }
    .nav-search-box-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        z-index: 1060;
    }
}

/* ── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb-bar { padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.breadcrumb { margin: 0; font-size: 0.875rem; color: var(--gray-500); flex-wrap: nowrap; overflow: hidden; }
.breadcrumb-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.breadcrumb-item.active { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-item:not(.active) { flex-shrink: 0; }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray-700); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); flex-shrink: 0; }

/* ── PAGE HEADER ────────────────────────────────────────────────── */
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--gray-200); }
.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin: 0 0 0.375rem; }
.page-header p { font-size: 1rem; color: var(--gray-500); margin: 0; }

/* ── ARTICLES SECTION ───────────────────────────────────────────── */
.articles-section { padding: 3rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--dark); }
.see-all { font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.see-all:hover { text-decoration: underline; }

/* ── ARTICLE GRID ───────────────────────────────────────────────── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.article-card-image { width: 100%; height: auto; display: block; }
.article-card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.article-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.article-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--dark); line-height: 1.4; }
.article-card h3:hover { color: var(--primary); }
.article-card p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 1rem; line-height: 1.6; flex: 1; }

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.article-card-meta i { margin-right: 0.25rem; }

/* ── PAGINATION ─────────────────────────────────────────────────── */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 1rem; }
.pagination { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }

.pagination a {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
}

.pagination a:hover,
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination a.disabled { opacity: 0.4; pointer-events: none; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; }
.footer-links h4 { font-size: 0.875rem; font-weight: 700; color: white; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--gray-400); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 2rem; text-align: center; font-size: 0.875rem; }

/* ── REKLAM KARTI ───────────────────────────────────────────────── */
.ad-card { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; position: relative; display: block; color: inherit; text-decoration: none; }
.ad-card:hover { }
.ad-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ad-card-body { padding: 1rem 1.125rem 1.125rem; }
.ad-card-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.ad-brand-logo { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: white; flex-shrink: 0; }
.ad-brand-name { font-size: 0.8rem; font-weight: 700; color: var(--dark); }
.ad-brand-name span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--gray-400); }
.ad-card-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 0.375rem; }
.ad-card-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 0.875rem; }
.ad-card-btn { display: block; background: var(--primary); color: white; font-weight: 600; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: 7px; text-align: center; transition: background 0.15s; }
.ad-card-btn:hover { background: #1d4ed8; color: white; }
/* Banner içinde btn inline olmalı */
.ad-card--banner .ad-card-btn { display: inline-block; }
/* Makale içi (article_inline) — metin reklam yatay */
.ad-inline { margin-bottom: 2.5rem; }
.ad-inline .ad-card { display: flex; flex-direction: row; }
.ad-inline .ad-card img { width: 200px; height: auto; object-fit: cover; flex-shrink: 0; }
.ad-inline .ad-card-body { flex: 1; }
.ad-inline .ad-card-btn { display: inline-block; width: auto; }
/* Banner (navbar altı / footer üstü) — full width yatay */
.ad-banner-zone { padding: 0.75rem 0; }
.ad-card--banner { display: flex; flex-direction: row; align-items: center; gap: 0; border-radius: 10px; }
.ad-card--banner img { width: 200px; height: 90px; object-fit: cover; flex-shrink: 0; }
.ad-card--banner .ad-card-body { display: flex; flex: 1; align-items: center; gap: 1.5rem; padding: 0.75rem 1.25rem; flex-wrap: wrap; }
.ad-card--banner .ad-card-brand { margin-bottom: 0; flex-shrink: 0; }
.ad-card--banner .ad-card-title { flex: 1; min-width: 140px; margin-bottom: 0; font-size: 0.95rem; }
.ad-card--banner .ad-card-desc { display: none; }
.ad-card--banner .ad-card-btn { white-space: nowrap; flex-shrink: 0; padding: 0.45rem 1.1rem; margin-bottom: 0; }
@media (max-width: 768px) {
    .ad-card--banner img { width: 110px; height: 80px; }
    .ad-card--banner .ad-card-body { gap: 0.75rem; padding: 0.625rem 0.875rem; }
    .ad-card--banner .ad-card-title { font-size: 0.85rem; min-width: 100px; }
    /* Makale içi reklam — mobilde sidebar gibi dikey göster */
    .ad-inline .ad-card { display: block; }
    .ad-inline .ad-card img { width: 100%; height: 160px; flex-shrink: unset; }
    .ad-inline .ad-card-body { flex: unset; }
    .ad-inline .ad-card-btn { display: block; width: 100%; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .nav-drop { position: static; width: 100%; box-shadow: none; border: none; padding: 0; }
    .navbar-nav .nav-link { padding: 0.5rem 0 !important; }
    .nav-dropdown-btn { padding: 0.5rem 0; }
}

@media (max-width: 768px) {
    .article-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── HERO (Anasayfa) ─────────────────────────────────────────────── */
.hero-section { padding: 4rem 0 3rem; border-bottom: 1px solid var(--gray-100); }
.hero-section h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; color: var(--dark); letter-spacing: -0.02em; }
.hero-section p { font-size: 1.25rem; color: var(--gray-600); max-width: 700px; margin: 0 auto; }
@media (max-width: 768px) { .hero-section h1 { font-size: 2rem; } .hero-section p { font-size: 1.125rem; } }

/* ── ARAMA ÇUBUĞU ────────────────────────────────────────────────── */
.search-bar { max-width: 600px; margin: 2rem auto 0; position: relative; }
.search-input { width: 100%; padding: 1rem 3rem 1rem 1.25rem; border: 2px solid var(--gray-200); border-radius: 12px; font-size: 1rem; font-family: inherit; color: var(--dark); transition: border-color 0.15s; }
.search-input:focus { outline: none; border-color: var(--primary); }
.search-icon { position: absolute; right: 1.25rem; top: 1.1rem; color: var(--gray-400); font-size: 1.25rem; pointer-events: none; }
.search-results { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.1); z-index: 999; overflow: hidden; text-align: left; }
.search-results.open { display: block; }
.search-result-item { display: block; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--gray-100); transition: background 0.15s; cursor: pointer; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }
.search-result-item strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; line-height: 1.4; }
.search-result-item span { font-size: 0.8rem; color: var(--gray-500); line-height: 1.75; display: inline-block; }
.search-no-result { padding: 1.25rem; text-align: left; color: var(--gray-500); font-size: 0.9rem; }

/* ── ARAMA SAYFASI ───────────────────────────────────────────────── */
.search-section { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--gray-200); }
.search-section .search-bar { max-width: 100%; margin: 0; }
.search-section .search-input { padding: 1.275rem 3rem 1.275rem 1.25rem; }
.search-section .search-icon { right: 1.125rem; top: 50%; transform: translateY(-50%); font-size: 1.125rem; }
.search-meta { margin-top: 0.875rem; font-size: 0.875rem; color: var(--gray-500); }
.search-meta strong { color: var(--dark); font-weight: 700; }
.no-results { text-align: center; padding: 4rem 0; color: var(--gray-500); }
.no-results i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.no-results h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }

/* ── STATİK SAYFA ────────────────────────────────────────────────── */
.page-layout { padding: 3rem 0 4rem; }
.page-title-heading { font-size: 2.25rem; font-weight: 800; color: var(--dark); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.page-body { font-size: 1.0625rem; color: var(--gray-700); line-height: 1.85; overflow-wrap: break-word; }
.page-body p { margin-bottom: 1.5rem; }
.page-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.page-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 2rem 0 0.75rem; }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body strong { color: var(--dark); font-weight: 700; }
.page-body a { color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.15s; }
.page-body a:hover { color: #1d4ed8; }
.page-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--gray-50); border-radius: 0 8px 8px 0; color: var(--gray-700); font-style: italic; }
.page-body blockquote p:last-child { margin-bottom: 0; }
.page-body table { width: max-content !important; min-width: 100% !important; border-collapse: collapse !important; margin: 2rem 0 !important; font-size: 0.95rem !important; }
.page-body table thead tr th,
.page-body table thead tr td { background: var(--gray-100) !important; padding: 0.75rem 1rem !important; text-align: left !important; font-weight: 700 !important; color: var(--dark) !important; border-bottom: 2px solid var(--gray-200) !important; }
.page-body table tbody tr td { padding: 0.75rem 1rem !important; border-bottom: 1px solid var(--gray-100) !important; color: var(--gray-700) !important; }
.page-body table tbody tr:last-child td { border-bottom: none !important; }

/* ── MAKALE DETAY ────────────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.article-layout > article { min-width: 0; }
.article-layout > .sidebar { min-width: 0; }
.article-tag { display: inline-block; background: var(--gray-100); color: var(--primary); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.article-title { font-size: 2.25rem; font-weight: 800; color: var(--dark); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; color: var(--gray-500); font-size: 0.875rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.article-meta i { margin-right: 0.3rem; }
.article-excerpt { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; margin-top: 0.75rem; margin-bottom: 1rem; }
.article-cover { width: 100%; height: auto; border-radius: 12px; margin-bottom: 2.5rem; display: block; }
.toc-inline { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.toc-inline-label { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
#tocInlineList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.375rem; }
#tocInlineList li a { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); display: flex; align-items: center; gap: 0.5rem; }
#tocInlineList li a:hover { color: var(--primary); }
@media (min-width: 992px) { .toc-inline { display: none; } }
.article-body { font-size: 1.0625rem; color: var(--gray-700); line-height: 1.85; overflow-wrap: break-word; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin: 2.5rem 0 1rem; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 2rem 0 0.75rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body a { color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.15s; }
.article-body a:hover { color: #1d4ed8; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--gray-50); border-radius: 0 8px 8px 0; color: var(--gray-700); font-style: italic; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; display: flex; gap: 0.875rem; align-items: flex-start; }
.info-box::before { content: ''; display: block; width: 1.25rem; height: 1.25rem; min-width: 1.25rem; align-self: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }
.info-box > svg, .info-box > i, .info-box > .info-box-icon { display: none; }
.info-box-text { font-size: 0.95rem; color: var(--gray-700); line-height: 1.7; }
.info-box-text strong { color: var(--dark); }
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }
.data-table th { background: var(--gray-100); padding: 0.75rem 1rem; text-align: left; font-weight: 700; color: var(--dark); border-bottom: 2px solid var(--gray-200); }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.article-body table { width: max-content !important; min-width: 100% !important; border-collapse: collapse !important; margin: 2rem 0 !important; font-size: 0.95rem !important; border: none !important; }
.article-body table th,
.article-body table td { border: none !important; }
.article-body table thead tr th,
.article-body table thead tr td { background: var(--gray-100) !important; padding: 0.75rem 1rem !important; text-align: left !important; font-weight: 700 !important; color: var(--dark) !important; border-bottom: 2px solid var(--gray-200) !important; }
.article-body table tbody tr td { padding: 0.75rem 1rem !important; border-bottom: 1px solid var(--gray-100) !important; color: var(--gray-700) !important; background: transparent !important; }
.article-body table tbody tr:last-child td { border-bottom: none !important; }
.article-body table tbody tr:hover td { background: var(--gray-50) !important; }
.article-body table col { width: unset !important; }
.table-scroll-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2rem 0; }
.table-scroll-wrap table { margin: 0 !important; width: auto !important; min-width: 100%; }

/* ── Geniş tablolarda yatay taşma — .table-scroll-wrap JS sarmalayıcısı yönetir ── */
/* Tablolar JS tarafından .table-scroll-wrap içine alınır, CSS scroll'u oradan gelir */
/* ── Social Share ───────────────────────────────────────────────────────── */
.article-share { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0 1.5rem; padding: 1.25rem 1.5rem; background: var(--gray-50); border-radius: 12px; border: 1px solid var(--gray-100); }
.article-share-label { font-size: 0.875rem; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.article-share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 1rem; color: white; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.15s; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: white; }
.share-btn--twitter  { background: #000; }
.share-btn--facebook { background: #1877f2; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--copy     { background: var(--gray-400); }
.share-btn--copy.copied { background: #16a34a; }
.article-share .share-btn--copy.copied { color: #fff; }
.article-share .share-btn--copy.copied i { font-size: 1.2rem; line-height: 1; }
.article-share .share-btn:hover { transform: none; }

/* ── Calc Share Dropdown (hesaplayıcı sayfaları) ── */
.page-header-title-row { display: flex; align-items: center; gap: 0.75rem; }
.page-header-title-row h1 { flex: 1; margin: 0; }
.calc-share-wrap { position: relative; flex-shrink: 0; margin-top: 0.75rem; }
.calc-share-toggle { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--gray-200); background: white; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.9rem; transition: background 0.15s, color 0.15s; }
.calc-share-toggle:hover, .calc-share-toggle.open { background: var(--gray-50); color: var(--dark); }
.calc-share-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: white; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 0.375rem; min-width: 195px; z-index: 200; display: none; }
.calc-share-dropdown.open { display: block; }
.calc-share-drop-title { font-size: 0.7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; padding: 0.25rem 0.625rem 0.5rem; }
.calc-share-drop-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.4rem 0.5rem; border-radius: 7px; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); text-decoration: none; background: transparent; border: none; cursor: pointer; width: 100%; transition: background 0.12s; }
.calc-share-drop-item:hover { background: var(--gray-50); color: var(--dark); }
.csdi-icon { width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; flex-shrink: 0; }
.csdi-icon--copy { background: var(--gray-300); color: var(--gray-700); }
.calc-share-dropdown .js-share-copy.copied .csdi-icon--copy { background: #16a34a; color: white; }
.calc-share-dropdown .js-share-copy.copied { color: #16a34a; }

.related-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.related-section-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 1.5rem; }
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-card { display: flex; gap: 1.25rem; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.related-card img { width: 180px; height: 120px; object-fit: cover; flex-shrink: 0; }
.related-card-text { flex: 1; padding: 1rem 1.25rem 1rem 0; display: flex; flex-direction: column; justify-content: center; }
.related-card-tag { font-size: 0.7rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem; }
.related-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 0.5rem; }
.related-card:hover .related-card-title { color: var(--primary); }
.related-card-meta { font-size: 0.8rem; color: var(--gray-400); }
.related-card-meta i { margin-right: 0.25rem; }
.sidebar { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-toc { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.sidebar-toc-header { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--gray-100); font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; }
.sidebar-toc-list { list-style: none; padding: 0.5rem 0; margin: 0; }
.sidebar-toc-list li a { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--gray-600); border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
.sidebar-toc-list li a:hover { color: var(--primary); border-left-color: var(--gray-200); background: var(--gray-50); }
.sidebar-toc-list li a.active { color: var(--primary); border-left-color: var(--primary); }
.sidebar-toc-list li a.active .toc-num { color: var(--primary); }
.toc-num { font-size: 0.7rem; font-weight: 700; color: var(--gray-400); min-width: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.cta-card { display: block; background: linear-gradient(135deg, #1d4ed8, #2563eb); border-radius: 12px; padding: 1.5rem; color: white; text-decoration: none; }
.cta-card:hover { color: white; }
.cta-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-card p { font-size: 0.875rem; opacity: 0.85; margin-bottom: 1.25rem; line-height: 1.6; }
.cta-btn { display: block; background: white; color: var(--primary); font-weight: 700; font-size: 0.875rem; padding: 0.625rem 1rem; border-radius: 8px; text-align: center; }
.cta-btn:hover { background: var(--gray-100); color: var(--primary); }
@media (max-width: 991px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sidebar-toc { display: none; }
    .article-title { font-size: 1.75rem; }
    .article-cover { }
    .related-card img { width: 140px; height: 100px; }
}
@media (max-width: 768px) {
    .article-meta { flex-wrap: wrap; gap: 0.75rem; }
    .related-card { flex-direction: column; gap: 0; }
    .related-card img { width: 100%; height: 180px; flex-shrink: unset; }
    .related-card-text { padding: 0.875rem 1rem; }
}

/* ── HATA SAYFALARI ──────────────────────────────────────────────── */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1rem; min-height: 50vh; }
.error-code { font-size: 7rem; font-weight: 900; line-height: 1; color: var(--primary); letter-spacing: -0.04em; }
.error-code--danger { color: #ef4444; }
.error-title { font-size: 1.75rem; font-weight: 800; color: var(--dark); margin: 1rem 0 0.75rem; }
.error-desc { font-size: 1rem; color: var(--gray-500); max-width: 420px; line-height: 1.7; margin-bottom: 2.5rem; }
.error-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-primary-solid { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: white; padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: background 0.15s; }
.btn-primary-solid:hover { background: #1d4ed8; color: white; }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--gray-200); color: var(--dark); padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: border-color 0.15s; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
