/* ==========================================================================
   İNSANCA — Tasarım Sistemi ve Stil Şablonu (style.css)
   Görselsiz, Gölgeli Kart Akışı, Minimalist ve Mobil Öncelikli
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Değişkenleri & Renk Paleti (Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Açık Tema (Varsayılan) */
    --bg-page: #f5f6f8;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-drawer: #ffffff;
    --bg-hover: #f1f3f6;
    --bg-active: #e7eaee;
    --bg-input: #ffffff;

    --text-primary: #181b1f;
    --text-secondary: #4a515a;
    --text-muted: #747d88;
    --text-lead: #30363d;

    --border-card: rgba(0, 0, 0, 0.06);
    --border-divider: rgba(0, 0, 0, 0.07);
    --border-subtle: rgba(0, 0, 0, 0.04);

    --shadow-card: 0 4px 16px rgba(10, 16, 26, 0.04), 0 1px 3px rgba(10, 16, 26, 0.02);
    --shadow-card-hover: 0 8px 24px rgba(10, 16, 26, 0.07), 0 2px 6px rgba(10, 16, 26, 0.03);
    --shadow-drawer: 8px 0 32px rgba(0, 0, 0, 0.12);
    --shadow-header: 0 1px 6px rgba(0, 0, 0, 0.03);

    --accent-blue: #0082c8;
    --accent-blue-hover: #006da8;
    --accent-heart: #e0245e;
    --accent-save: #0082c8;

    --radius-card: 18px;
    --radius-btn: 10px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: var(--font-heading);

    --header-height: 64px;
    --max-content-width: 720px;
}

[data-theme="dark"] {
    /* Koyu Tema */
    --bg-page: #0f1115;
    --bg-card: #181b21;
    --bg-header: rgba(24, 27, 33, 0.94);
    --bg-drawer: #15181e;
    --bg-hover: #22262e;
    --bg-active: #2a2f3a;
    --bg-input: #121418;

    --text-primary: #f0f2f5;
    --text-secondary: #aab2be;
    --text-muted: #7e8794;
    --text-lead: #d2d7e0;

    --border-card: rgba(255, 255, 255, 0.07);
    --border-divider: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-drawer: 8px 0 36px rgba(0, 0, 0, 0.6);
    --shadow-header: 0 1px 8px rgba(0, 0, 0, 0.3);

    --accent-blue: #38bdf8;
    --accent-blue-hover: #60a5fa;
    --accent-heart: #fb7185;
    --accent-save: #38bdf8;
}

/* --------------------------------------------------------------------------
   2. Sıfırlama ve Temel Yapı (Base & Reset)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 64px; /* Sabit alt menü için mesafe */
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   3. Okuma İlerleme Çubuğu (Reading Progress)
   -------------------------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-blue);
    z-index: 1000;
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   4. Üst Başlık (Header)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-divider);
    box-shadow: var(--shadow-header);
    height: var(--header-height);
}

.header-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.header-icon-btn:hover {
    background-color: var(--bg-hover);
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.site-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: var(--radius-btn);
    transition: opacity 0.15s ease;
}

.site-logo-link:hover {
    opacity: 0.88;
}

.site-logo {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Tema bazlı Logo Gösterimi */
[data-theme="light"] .logo-dark {
    display: none !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tema Değiştirme Butonu İkonları */
[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* --------------------------------------------------------------------------
   5. Hamburger Menü Çekmecesi (Drawer)
   -------------------------------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 85vw;
    background-color: var(--bg-drawer);
    z-index: 210;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-drawer);
    display: flex;
    flex-direction: column;
}

.drawer-nav.active {
    transform: translateX(0);
}

.drawer-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-divider);
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.drawer-close-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer-close-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.drawer-section-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 12px 6px;
}

.drawer-menu-list {
    list-style: none;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer-link:hover {
    background-color: var(--bg-hover);
}

.drawer-link.active {
    background-color: var(--bg-active);
    color: var(--accent-blue);
    font-weight: 600;
}

.drawer-link-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.category-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.drawer-link:hover .category-bullet,
.drawer-link.active .category-bullet {
    background-color: var(--accent-blue);
    transform: scale(1.3);
}

.saved-badge {
    margin-left: auto;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-divider);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-divider);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.drawer-motto {
    font-style: italic;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Hızlı Arama Alanı (Search Overlay) & Canlı Filtreleme
   -------------------------------------------------------------------------- */
.search-bar-overlay {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-divider);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-bar-overlay.active {
    display: block;
    opacity: 1;
}

.search-bar-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 12px 16px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-hover);
    border-radius: var(--radius-full);
    padding: 4px 8px 4px 16px;
    border: 1px solid var(--border-divider);
    gap: 4px;
}

.search-input-icon {
    color: var(--text-muted);
    margin-right: 4px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 8px 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.search-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-close-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

/* Canlı Arama Sonuç Paneli (Live Search Dropdown) */
.live-search-results {
    position: absolute;
    top: calc(100% - 4px);
    left: 16px;
    right: 16px;
    max-height: 440px;
    overflow-y: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 120;
    padding: 8px;
    animation: liveSearchSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .live-search-results {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

@keyframes liveSearchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-divider);
    margin-bottom: 6px;
}

.live-search-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.live-search-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.12s ease;
    border: 1px solid transparent;
}

.live-search-item:hover,
.live-search-item.focused {
    background-color: var(--bg-hover);
    border-color: var(--border-subtle);
}

.live-search-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.live-search-cat {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
}

.live-search-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.live-search-item-excerpt {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.live-search-all-btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border-divider);
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-btn);
    transition: background-color 0.15s ease;
}

.live-search-all-btn:hover {
    background-color: var(--bg-hover);
}


/* --------------------------------------------------------------------------
   7. Ana İçerik Alanı & Kart Akışı (Stream & Cards)
   -------------------------------------------------------------------------- */
.main-content {
    flex: 1;
    padding: 24px 16px 48px;
}

.stream-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.stream-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post Kartı */
.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px 22px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(0, 130, 200, 0.2);
}

/* Kart Meta (Kategori ve Tarih) */
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-category-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.card-category-link:hover {
    border-bottom-color: var(--accent-blue);
}

.card-category-static {
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.meta-dot {
    color: var(--text-muted);
    opacity: 0.6;
}

.card-date {
    color: var(--text-muted);
}

/* Kart Başlığı */
.card-title {
    font-family: var(--font-heading);
    font-size: 1.48rem;
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.card-title-link {
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.card-title-link:hover {
    color: var(--accent-blue);
}

/* Kart Spotu (Özet) */
.card-excerpt {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kart Alt Okuma Bilgisi */
.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 14px;
}

.read-time-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-blue);
    transition: gap 0.15s ease;
}

.card-read-link .arrow-icon {
    transition: transform 0.15s ease;
}

.card-read-link:hover .arrow-icon {
    transform: translateX(3px);
}

/* Kart Alt İşlem Satırı (Action Bar) */
.card-action-bar {
    border-top: 1px solid var(--border-divider);
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    border-radius: var(--radius-btn);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.action-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.action-btn:active {
    transform: scale(0.96);
}

/* Buton Durumları (Active States) */
.action-btn.active.btn-helpful {
    color: var(--accent-heart);
    background-color: rgba(224, 36, 94, 0.08);
}

.action-btn.active.btn-helpful .action-icon {
    fill: currentColor;
}

.action-btn.active.btn-save {
    color: var(--accent-save);
    background-color: rgba(0, 130, 200, 0.08);
}

.action-btn.active.btn-save .action-icon {
    fill: currentColor;
}

/* --------------------------------------------------------------------------
   8. Sayfalama (Pagination)
   -------------------------------------------------------------------------- */
.pagination-container {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    height: 48px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.load-more-btn:hover {
    background-color: var(--bg-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.load-more-btn .arrow-down {
    transition: transform 0.15s ease;
}

.load-more-btn:hover .arrow-down {
    transform: translateY(2px);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-nav-link {
    font-weight: 600;
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: var(--radius-btn);
}

.page-nav-link:hover {
    background-color: var(--bg-hover);
}

.page-indicator {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Arşiv Başlığı (Kategori, Arama & Kaydedilenler)
   -------------------------------------------------------------------------- */
.archive-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-divider);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 12px;
    transition: gap 0.15s ease;
}

.back-link:hover {
    gap: 3px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.archive-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Tekil Yazı Okuma Ekranı (Article View)
   -------------------------------------------------------------------------- */
.article-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px 28px 48px;
}

@media (max-width: 600px) {
    .article-container {
        padding: 22px 18px 36px;
        border-radius: 14px;
    }
}

.article-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-divider);
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-hover);
    padding: 3px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-divider);
}

.font-size-btn {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.font-size-btn.active, .font-size-btn:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-header {
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.article-category-link {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.article-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .article-title {
        font-size: 1.75rem;
    }
}

.article-lead {
    font-size: 1.12rem;
    font-style: italic;
    color: var(--text-lead);
    line-height: 1.68;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-divider);
}

/* Makale Gövdesi ve Tipografi */
.article-body {
    font-size: 1.1rem;
    line-height: 1.82;
    color: var(--text-primary);
}

/* Dinamik Font Boyutları */
.article-body.font-sm {
    font-size: 0.98rem;
}

.article-body.font-lg {
    font-size: 1.24rem;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--text-primary);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-top: 1.6em;
    margin-bottom: 0.7em;
    color: var(--text-primary);
}

.article-body blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 8px 0 8px 20px;
    margin: 1.8em 0;
    font-style: italic;
    font-size: 1.12rem;
    color: var(--text-secondary);
}

.article-body ul, .article-body ol {
    margin: 1.4em 0;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--accent-blue-hover);
}

.article-body strong {
    font-weight: 600;
}

/* Makale Altı Aksiyon Satırı */
.article-actions-panel {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-divider);
}

.article-action-bar {
    max-width: 440px;
    margin: 0 auto;
}

/* Makale Önceki / Sonraki Gezintisi */
.article-adjacent-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-divider);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .article-adjacent-nav {
        grid-template-columns: 1fr;
    }
}

.adjacent-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-hover);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.adjacent-link:hover {
    background-color: var(--bg-active);
    transform: translateY(-1px);
}

.adjacent-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
}

.adjacent-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.next-link {
    text-align: right;
}

/* İlgili Yazılar Bölümü */
.related-articles-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-divider);
}

.related-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-hover);
    transition: background-color 0.15s ease;
}

.related-item-link:hover {
    background-color: var(--bg-active);
}

.related-item-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-primary);
}

.related-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

/* --------------------------------------------------------------------------
   11. Boş Durumlar & 404 (Empty States & 404)
   -------------------------------------------------------------------------- */
.empty-state {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 24px;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-full);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.empty-action-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.empty-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 24px;
    background-color: var(--bg-hover);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-full);
    transition: background-color 0.15s ease;
}

.empty-secondary-btn:hover {
    background-color: var(--bg-active);
}

/* 404 Kutusu */
.notfound-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 64px 24px;
    text-align: center;
}

.notfound-code {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 12px;
}

.notfound-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.notfound-text {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 24px;
}

.notfound-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Arama Sayfa Kutusu */
.search-page-box {
    margin-bottom: 24px;
}

.page-search-form {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-card);
    padding: 6px 6px 6px 20px;
}

.page-search-submit {
    padding: 8px 20px;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: background-color 0.15s ease;
}

.page-search-submit:hover {
    background-color: var(--accent-blue-hover);
}

/* --------------------------------------------------------------------------
   12. Alt Alan (Footer)
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border-divider);
    background-color: var(--bg-card);
    padding: 36px 16px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.footer-dot {
    color: var(--text-muted);
}

.footer-slogan {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-motto {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Sabit Alt Dolaşım Menüsü (Sticky Footer Menu)
   -------------------------------------------------------------------------- */
.sticky-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 85;
    background-color: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-divider);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-footer-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.sticky-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    gap: 3px;
    position: relative;
    border-radius: var(--radius-btn);
    transition: color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sticky-nav-item:hover {
    color: var(--text-primary);
}

.sticky-nav-item.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.sticky-nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform 0.15s ease;
}

.sticky-nav-item:active svg {
    transform: scale(0.92);
}

.sticky-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sticky-nav-badge {
    position: absolute;
    top: -5px;
    right: -11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9999px;
    background-color: var(--accent-save);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sticky-nav-label {
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   14. Bildirim Mesajı (Toast)
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 74px; /* Sabit alt menünün hemen üzerinde görüntülenir */
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-primary);
    color: var(--bg-card);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   15. Yukarı Çık Butonu (Back to Top)
   -------------------------------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    bottom: 74px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease, background-color 0.15s ease, color 0.15s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    transform: translateY(-2px) scale(1.04);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.96);
}

/* --------------------------------------------------------------------------
   16. PWA Yükleme Butonu (Header Install Button)
   -------------------------------------------------------------------------- */
.pwa-install-btn {
    position: relative;
}

.pwa-install-btn:hover {
    color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   17. Çoklu Kategori Filtreleme Çekmecesi (Category Bottom Sheet)
   -------------------------------------------------------------------------- */
.category-sheet-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 16, 26, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.category-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: var(--max-content-width);
    margin: 0 auto;
    background-color: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.2);
    z-index: 110;
    padding: 12px 20px 24px;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.category-sheet.active {
    transform: translateY(0);
    visibility: visible;
}

.category-sheet-drag-handle {
    width: 38px;
    height: 4px;
    border-radius: 9999px;
    background-color: var(--border-divider);
    margin: 0 auto 12px;
}

.category-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.category-sheet-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-sheet-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-sheet-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-sheet-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-sheet-close-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.category-sheet-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 12px;
    font-size: 0.8rem;
}

.sheet-tool-btn {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.sheet-tool-btn:hover {
    text-decoration: underline;
}

.sheet-tool-sep {
    color: var(--text-muted);
}

.category-sheet-content {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0 16px;
}

.category-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

@media (max-width: 480px) {
    .category-chip-grid {
        grid-template-columns: 1fr;
    }
}

.category-chip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    background-color: var(--bg-hover);
    border: 1.5px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.category-chip-item:hover {
    background-color: var(--bg-active);
}

.category-chip-item.selected {
    background-color: rgba(0, 130, 200, 0.08);
    border-color: var(--accent-blue);
}

[data-theme="dark"] .category-chip-item.selected {
    background-color: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-blue);
}

.category-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-chip-indicator {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.category-chip-indicator svg {
    display: none;
    stroke: #ffffff;
}

.category-chip-item.selected .category-chip-indicator {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.category-chip-item.selected .category-chip-indicator svg {
    display: block;
}

.category-chip-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

.category-chip-item.selected .category-chip-name {
    font-weight: 600;
    color: var(--accent-blue);
}

.category-sheet-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-divider);
}

.category-apply-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.96rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.category-apply-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.category-apply-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   18. Ana Sayfa Aktif Kategori Filtre Çubuğu
   -------------------------------------------------------------------------- */
.active-filter-bar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.filter-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.filter-bar-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.filter-clear-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filter-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background-color: rgba(0, 130, 200, 0.1);
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

[data-theme="dark"] .filter-active-chip {
    background-color: rgba(56, 189, 248, 0.15);
}

