/* =================================================================
   TOKSİK İLİŞKİ — DESIGN SYSTEM
   Premium, minimal, açık tema. Bootstrap kullanılmıyor.
   İçindekiler:
   1. Fonts & Variables
   2. Reset & Base
   3. Typography
   4. Layout / Grid
   5. Header
   6. Hero
   7. Buttons
   8. Cards
   9. Forms
   10. Badges / Tags
   11. Alerts / Toasts
   12. Breadcrumb
   13. Pagination
   14. Avatar
   15. Progress / Circular Progress
   16. Comments
   17. Sidebar Widgets
   18. Footer
   19. Empty States / 404
   20. Skeletons
   21. Poll / Vote bars
   22. Utilities
   23. Animations
   24. Responsive / Mobile
================================================================= */

/* ---------- 1. FONTS & VARIABLES ---------- */
/* Google Fonts are loaded via <link> tags in layouts/main.php (faster than @import). */

:root {
    /* Brand */
    --color-primary: #7C3AED;
    --color-primary-dark: #6423d4;
    --color-secondary: #A855F7;
    --color-accent: #EC4899;
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    /* Surfaces */
    --color-bg: #F8FAFC;
    --color-card: #FFFFFF;
    --color-border: #E5E7EB;

    /* Text */
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-text-faint: #94A3B8;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 55%, var(--color-accent) 100%);
    --gradient-soft: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, rgba(248, 250, 252, 0) 100%);
    --gradient-text: linear-gradient(120deg, var(--color-primary), var(--color-accent));

    /* Type */
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-brand: 0 12px 28px rgba(124, 58, 237, 0.22);

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Layout */
    --container-max: 1440px;
    --content-max: 1200px;
    --header-h: 76px;
    --header-h-shrunk: 60px;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 150ms;
    --dur-base: 220ms;
    --dur-slow: 400ms;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-dark); }

::selection { background: rgba(124, 58, 237, 0.18); color: var(--color-text); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D8D3E8; border-radius: var(--radius-full); border: 2px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin: 0 0 var(--space-4); color: var(--color-text); }

.text-muted { color: var(--color-text-muted) !important; }
.text-faint { color: var(--color-text-faint) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { font-size: 1.2rem; color: var(--color-text-muted); line-height: 1.6; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.eyebrow svg { width: 14px; height: 14px; }

/* ---------- 4. LAYOUT / GRID ---------- */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}
.container-wide { max-width: var(--container-max); }

.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-6) 0; }

.grid { display: grid; gap: var(--space-5); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-7);
    align-items: start;
}

.stack { display: flex; flex-direction: column; }
.row-flex { display: flex; align-items: center; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.section-header h2 { margin-bottom: var(--space-2); }
.section-header .lead { margin: 0; font-size: 1rem; }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: gap var(--dur-fast) var(--ease);
}
.section-link:hover { gap: 10px; }
.section-link svg { width: 16px; height: 16px; }

/* ---------- 5. HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    transition: height var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
    height: var(--header-h-shrunk);
    box-shadow: var(--shadow-sm);
    background: rgba(248, 250, 252, 0.92);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text);
    flex-shrink: 0;
}
.brand:hover { color: var(--color-text); }
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-accent { color: var(--color-primary); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--color-text); background: rgba(124, 58, 237, 0.07); }
.nav-link.is-active { color: var(--color-primary); background: rgba(124, 58, 237, 0.1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    width: 220px;
    transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), width var(--dur-base) var(--ease);
}
.header-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    width: 260px;
}
.header-search svg { width: 17px; height: 17px; color: var(--color-text-faint); flex-shrink: 0; }
.header-search input {
    border: none; outline: none; background: transparent;
    font-size: 0.88rem; width: 100%; color: var(--color-text); font-family: var(--font-body);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: rgba(124, 58, 237, 0.08); color: var(--color-primary); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }

.hamburger-btn { display: none; }

/* Profile dropdown */
.profile-menu { position: relative; }
.profile-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    transition: box-shadow var(--dur-fast) var(--ease);
}
.profile-trigger:hover { box-shadow: var(--shadow-xs); }
.profile-trigger svg.chev { width: 14px; height: 14px; color: var(--color-text-muted); transition: transform var(--dur-fast) var(--ease); }
.profile-trigger[aria-expanded="true"] svg.chev { transform: rotate(180deg); }

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base);
    z-index: 1100;
}
.dropdown-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
    color: var(--color-text);
    width: 100%; border: none; background: none; text-align: left; cursor: pointer;
}
.dropdown-item svg { width: 17px; height: 17px; color: var(--color-text-muted); flex-shrink: 0; }
.dropdown-item:hover { background: var(--color-bg); color: var(--color-primary); }
.dropdown-divider { height: 1px; background: var(--color-border); margin: 6px 4px; }

/* Mobile nav drawer */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1200; opacity: 0; visibility: hidden;
    transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base);
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    z-index: 1300;
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    display: flex; flex-direction: column; gap: var(--space-2);
    overflow-y: auto;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-drawer .nav-link { padding: 14px 12px; font-size: 1rem; border-radius: var(--radius-sm); min-height: 44px; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }

.reading-progress-track {
    position: sticky; top: var(--header-h); z-index: 500;
    height: 3px; background: transparent;
    margin-bottom: var(--space-2);
}
.reading-progress-track .fill {
    height: 100%; width: 0; background: var(--gradient-brand);
    transition: width 0.1s linear;
}

/* Author card (story/article byline) */
.author-row { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-5); }
.author-meta { font-size: 0.85rem; color: var(--color-text-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.author-meta strong { color: var(--color-text); font-weight: 600; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 0.82rem; color: var(--color-text-faint); font-weight: 600; }

/* ---------- 6. HERO ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-9) 0 var(--space-8);
    background: var(--gradient-soft);
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: 0;
    opacity: 0.5;
    animation: float 9s ease-in-out infinite;
}
.hero::before {
    width: 420px; height: 420px;
    top: -160px; right: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0));
}
.hero::after {
    width: 320px; height: 320px;
    bottom: -140px; left: -80px;
    background: radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.25), rgba(236, 72, 153, 0));
    animation-delay: -4s;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--color-border);
    padding: 7px 16px; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600; color: var(--color-primary);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-5);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead { max-width: 560px; margin: 0 auto var(--space-6); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }

.hero-shape {
    position: absolute; z-index: 0; opacity: 0.6;
    animation: float 7s ease-in-out infinite;
}

/* ---------- 7. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    padding: 13px 22px;
    min-height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease),
                background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px rgba(124, 58, 237, 0.3); transform: translateY(-1px); }

.btn-secondary {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { color: var(--color-text); border-color: #D6D3E0; box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(124, 58, 237, 0.35);
}
.btn-outline:hover { color: var(--color-primary-dark); background: rgba(124, 58, 237, 0.06); border-color: var(--color-primary); }

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}
.btn-ghost:hover { color: var(--color-text); background: rgba(15, 23, 42, 0.05); }

.btn-danger-outline { background: transparent; color: var(--color-danger); border-color: rgba(239, 68, 68, 0.35); }
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.06); color: var(--color-danger); }

.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; min-height: 52px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon-only { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }

.fab {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-brand);
    z-index: 900;
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 36px rgba(124, 58, 237, 0.32); color: #fff; }
.fab svg { width: 24px; height: 24px; }

/* ---------- 8. CARDS ---------- */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.25);
}
.card-flush { padding: 0; overflow: hidden; }
.card-pad-lg { padding: var(--space-6); }

.content-card { display: flex; flex-direction: column; height: 100%; }
.content-card .card-eyebrow { margin-bottom: var(--space-3); }
.content-card h3, .content-card h5, .content-card h6 { margin-bottom: var(--space-2); }
.content-card h3 a, .content-card h5 a, .content-card h6 a { color: var(--color-text); }
.content-card h3 a:hover, .content-card h5 a:hover, .content-card h6 a:hover { color: var(--color-primary); }
.content-card p { color: var(--color-text-muted); font-size: 0.92rem; flex-grow: 1; }
.card-meta {
    display: flex; align-items: center; gap: var(--space-4);
    font-size: 0.8rem; color: var(--color-text-faint);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 15px; height: 15px; }

.feature-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-primary);
}
.feature-icon svg { width: 24px; height: 24px; }

/* Highlight / spotlight card (günün hikayesi vb.) */
.spotlight-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    background: linear-gradient(135deg, #201133 0%, #4C1D95 45%, #7C3AED 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.spotlight-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.35), transparent 55%);
}
.spotlight-card > * { position: relative; z-index: 1; }
.spotlight-card h3, .spotlight-card h4 { color: #fff; }
.spotlight-card p { color: rgba(255, 255, 255, 0.82); }
.spotlight-card .eyebrow { color: #F0ABFC; }

/* ---------- 9. FORMS ---------- */
.field {
    position: relative;
    margin-bottom: var(--space-5);
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    padding: 20px 16px 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { padding-top: 24px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.field label {
    position: absolute;
    left: 16px; top: 15px;
    font-size: 0.95rem;
    color: var(--color-text-faint);
    pointer-events: none;
    transform-origin: left top;
    transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
    background: transparent;
}
.field textarea ~ label { top: 18px; }
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field select ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field.has-value label {
    top: 7px;
    transform: scale(0.78);
    color: var(--color-primary);
}
.field-hint { font-size: 0.8rem; color: var(--color-text-faint); margin-top: 6px; }
.field-simple label {
    position: static; display: block; font-size: 0.88rem; font-weight: 600;
    color: var(--color-text); margin-bottom: 8px; transform: none;
}
.field-simple input, .field-simple select, .field-simple textarea { padding: 13px 16px; }

/* Custom checkbox / radio */
.check-field {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
    min-height: 44px;
    padding: 4px 0;
}
.check-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box, .radio-box {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 1.5px solid var(--color-border);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease);
    margin-top: 1px;
}
.check-box { border-radius: 6px; }
.radio-box { border-radius: 50%; }
.check-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(0.5); transition: all var(--dur-fast) var(--ease); }
.radio-box::after {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: #fff; transform: scale(0); transition: transform var(--dur-fast) var(--ease);
}
.check-field input:checked ~ .check-box,
.check-field input:checked ~ .radio-box {
    background: var(--gradient-brand); border-color: transparent;
}
.check-field input:checked ~ .check-box svg { opacity: 1; transform: scale(1); }
.check-field input:checked ~ .radio-box::after { transform: scale(1); }
.check-field input:focus-visible ~ .check-box,
.check-field input:focus-visible ~ .radio-box { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16); }

/* Choice cards (radio görünümlü büyük seçenekler — test soruları) */
.choice-card {
    display: block; cursor: pointer;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: all var(--dur-fast) var(--ease);
    position: relative;
}
.choice-card input { position: absolute; opacity: 0; }
.choice-card:hover { border-color: rgba(124, 58, 237, 0.4); background: rgba(124, 58, 237, 0.03); }
.choice-card input:checked ~ .choice-label { color: var(--color-primary); font-weight: 600; }
.choice-card:has(input:checked) { border-color: var(--color-primary); background: rgba(124, 58, 237, 0.06); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08); }
.choice-label { font-size: 0.94rem; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.choice-radio {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--color-border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-fast) var(--ease);
}
.choice-card input:checked ~ .choice-label .choice-radio { border-color: var(--color-primary); }
.choice-card input:checked ~ .choice-label .choice-radio::after {
    content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient-brand);
}

.form-panel { max-width: 620px; margin: 0 auto; }
.form-panel .card { padding: var(--space-6); }

.field-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 13px 42px 13px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    outline: none;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field-select:hover { border-color: #D6D3E0; }
.field-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); }
.select-wrap { position: relative; }
.select-wrap svg {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--color-text-faint); pointer-events: none;
}

/* ---------- 10. BADGES / TAGS ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.badge svg { width: 12px; height: 12px; }
.badge-neutral { background: var(--color-bg); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.badge-primary { background: rgba(124, 58, 237, 0.1); color: var(--color-primary); }
.badge-success { background: rgba(34, 197, 94, 0.12); color: #16A34A; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #B45309; }

.tag {
    display: inline-flex; align-items: center;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--color-border);
    font-size: 0.82rem; font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--dur-fast) var(--ease);
}
.tag:hover, .tag.is-active { color: var(--color-primary); border-color: rgba(124, 58, 237, 0.35); background: rgba(124, 58, 237, 0.06); }

/* ---------- 11. ALERTS / TOASTS ---------- */
.alert-box {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: var(--space-4);
    border: 1px solid transparent;
}
.alert-box svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: rgba(124, 58, 237, 0.06); color: #5B21B6; border-color: rgba(124, 58, 237, 0.16); }
.alert-success { background: rgba(34, 197, 94, 0.08); color: #15803D; border-color: rgba(34, 197, 94, 0.2); }
.alert-danger { background: rgba(239, 68, 68, 0.08); color: #B91C1C; border-color: rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #92400E; border-color: rgba(245, 158, 11, 0.22); }

.disclaimer-box {
    display: flex; gap: 10px; align-items: flex-start;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: var(--space-4) 0;
}
.disclaimer-box svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; margin-top: 1px; }

.self-harm-warning {
    display: flex; gap: 12px; align-items: flex-start;
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: var(--radius-md); padding: var(--space-4);
    color: #991B1B; font-size: 0.92rem;
    margin: var(--space-4) 0;
}
.self-harm-warning svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-danger); }

.toast-stack {
    position: fixed; top: calc(var(--header-h) + 16px); right: var(--space-4);
    z-index: 2000; display: flex; flex-direction: column; gap: 10px;
    width: min(360px, calc(100vw - 32px));
}
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    opacity: 0; transform: translateX(24px) scale(0.97);
    transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
    border-left: 3px solid var(--color-primary);
}
.toast.is-visible { opacity: 1; transform: translateX(0) scale(1); }
.toast.is-leaving { opacity: 0; transform: translateX(24px) scale(0.97); }
.toast-success { border-left-color: var(--color-success); }
.toast-error { border-left-color: var(--color-danger); }
.toast-warning { border-left-color: var(--color-warning); }
.toast svg.toast-icon { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.toast-success svg.toast-icon { color: var(--color-success); }
.toast-error svg.toast-icon { color: var(--color-danger); }
.toast-body { font-size: 0.88rem; color: var(--color-text); flex-grow: 1; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--color-text-faint); flex-shrink: 0; padding: 2px; }
.toast-close svg { width: 16px; height: 16px; }

/* ---------- 12. BREADCRUMB ---------- */
.breadcrumb-nav { padding: var(--space-4) 0 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--color-text-faint); }
.breadcrumb-list a { color: var(--color-text-muted); font-weight: 500; }
.breadcrumb-list a:hover { color: var(--color-primary); }
.breadcrumb-list .sep { width: 14px; height: 14px; color: var(--color-text-faint); }
.breadcrumb-list .current { color: var(--color-text); font-weight: 600; }

/* ---------- 13. PAGINATION ---------- */
.pagination-nav { display: flex; justify-content: center; margin-top: var(--space-6); }
.pagination-list { display: flex; align-items: center; gap: 6px; }
.pagination-list a, .pagination-list span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600;
    color: var(--color-text-muted);
    border: 1px solid transparent;
    transition: all var(--dur-fast) var(--ease);
}
.pagination-list a:hover { background: var(--color-bg); color: var(--color-text); }
.pagination-list .is-active a, .pagination-list .is-active span {
    background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand);
}

/* ---------- 14. AVATAR ---------- */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff; font-weight: 700; font-family: var(--font-heading);
    flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }

/* ---------- 15. PROGRESS / CIRCULAR PROGRESS ---------- */
.progress-track {
    height: 8px; border-radius: var(--radius-full);
    background: var(--color-border);
    overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: var(--radius-full);
    background: var(--gradient-brand);
    width: 0;
    transition: width 0.8s var(--ease);
}

.progress-steps { display: flex; gap: 6px; margin-bottom: var(--space-6); }
.progress-steps .step { flex: 1; height: 6px; border-radius: var(--radius-full); background: var(--color-border); overflow: hidden; }
.progress-steps .step.is-filled { background: var(--gradient-brand); }
.progress-steps .step.is-current { background: var(--color-border); position: relative; }
.progress-steps .step.is-current::after {
    content: ''; position: absolute; inset: 0 50% 0 0; background: var(--gradient-brand);
}

.test-question-step { display: none; }
.test-question-step.is-active { display: block; animation: fadeIn 0.35s var(--ease); }

.circular-progress {
    position: relative;
    width: 176px; height: 176px;
    margin: 0 auto;
}
.circular-progress svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.circular-progress .track { stroke: var(--color-border); fill: none; stroke-width: 12; }
.circular-progress .fill {
    stroke: url(#circularGradient);
    fill: none; stroke-width: 12; stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.1s var(--ease);
}
.circular-progress .cp-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.circular-progress .cp-value { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; color: var(--color-text); }
.circular-progress .cp-suffix { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; }

/* ---------- 16. COMMENTS ---------- */
.comment-thread { display: flex; flex-direction: column; }
.comment-item { display: flex; gap: 12px; padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.comment-item:first-child { border-top: none; padding-top: 0; }
.comment-item.is-reply { margin-left: 32px; padding-left: var(--space-4); border-left: 2px solid var(--color-border); border-top: none; }
.comment-body { flex-grow: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-author { font-weight: 700; font-size: 0.9rem; color: var(--color-text); }
.comment-time { font-size: 0.78rem; color: var(--color-text-faint); }
.comment-text { font-size: 0.92rem; color: var(--color-text); margin-bottom: 8px; line-height: 1.6; }
.comment-actions { display: flex; align-items: center; gap: 4px; }
.comment-action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-size: 0.8rem; font-weight: 600; color: var(--color-text-faint);
    padding: 6px 10px; border-radius: var(--radius-full);
    transition: all var(--dur-fast) var(--ease);
}
.comment-action-btn:hover { background: var(--color-bg); color: var(--color-primary); }
.comment-action-btn.is-danger:hover { color: var(--color-danger); }
.comment-action-btn svg { width: 14px; height: 14px; }
.comment-reply-form { margin-top: 10px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }
.comment-reply-form.is-open { max-height: 400px; opacity: 1; }
.comment-count-title { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-4); }
.comment-count-title .count { color: var(--color-text-muted); font-weight: 600; }

/* ---------- 17. SIDEBAR ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: var(--space-4); }
.widget-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 700; margin-bottom: var(--space-4);
}
.widget-title svg { width: 18px; height: 18px; color: var(--color-primary); }
.widget-list { display: flex; flex-direction: column; gap: var(--space-3); }
.widget-list-item a {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; font-weight: 500; color: var(--color-text);
}
.widget-list-item a:hover { color: var(--color-primary); }
.widget-list-item .idx {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 8px;
    background: var(--color-bg); color: var(--color-text-muted);
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}

/* ---------- 18. FOOTER ---------- */
.site-footer {
    background: #12071F;
    color: rgba(255, 255, 255, 0.65);
    margin-top: var(--space-9);
    position: relative;
}
.site-footer::before { content: ''; display: block; height: 4px; background: var(--gradient-brand); }
.footer-inner { padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; max-width: 320px; }
.footer-col h6 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08); color: #fff;
    transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--gradient-brand); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.newsletter-form { display: flex; gap: 8px; margin-top: var(--space-3); }
.newsletter-form input {
    flex-grow: 1; padding: 12px 16px; border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06);
    color: #fff; font-size: 0.88rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form input:focus { border-color: var(--color-secondary); background: rgba(255, 255, 255, 0.1); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-5); margin-top: var(--space-6);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
}

/* ---------- 19. EMPTY STATES / 404 ---------- */
.empty-state {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--color-text-muted);
}
.empty-state-icon {
    width: 88px; height: 88px; border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); margin-bottom: var(--space-5);
}
.empty-state-icon svg { width: 40px; height: 40px; }
.empty-state h3 { margin-bottom: var(--space-2); }
.empty-state p { max-width: 380px; margin-bottom: var(--space-5); }

.error-page {
    min-height: 60vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-8) 0;
}
.error-page-inner { text-align: center; max-width: 480px; }
.error-illustration { position: relative; width: 220px; height: 160px; margin: 0 auto var(--space-6); }
.error-illustration .blob {
    position: absolute; inset: 0; margin: auto; width: 160px; height: 160px; border-radius: 50%;
    background: var(--gradient-brand); opacity: 0.15; filter: blur(4px);
    animation: float 6s ease-in-out infinite;
}
.error-illustration .code {
    position: relative; z-index: 1;
    font-family: var(--font-heading); font-weight: 800; font-size: 5rem;
    background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 160px;
}

/* ---------- 20. SKELETONS ---------- */
.skeleton {
    position: relative; overflow: hidden;
    background: #EDEBF3; border-radius: var(--radius-sm);
}
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.4s infinite;
}
.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 6px; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 14px; border-radius: 6px; }
.skeleton-card { height: 220px; border-radius: var(--radius-lg); }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }

/* ---------- 21. POLL / VOTE ---------- */
.poll-card { }
.poll-question { font-weight: 700; font-size: 1.05rem; margin-bottom: var(--space-4); }
.poll-option {
    display: block; width: 100%; text-align: left;
    padding: 13px 16px; border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border); background: #fff;
    font-weight: 600; font-size: 0.92rem; color: var(--color-text);
    cursor: pointer; margin-bottom: 10px;
    transition: all var(--dur-fast) var(--ease);
    min-height: 44px;
}
.poll-option:hover { border-color: var(--color-primary); background: rgba(124, 58, 237, 0.04); transform: translateY(-1px); }

.poll-result-row { margin-bottom: var(--space-4); }
.poll-result-row:last-child { margin-bottom: 0; }
.poll-result-head { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 6px; }
.poll-result-head .pct { font-weight: 800; color: var(--color-primary); }
.poll-result-track { height: 10px; border-radius: var(--radius-full); background: var(--color-bg); overflow: hidden; }
.poll-result-fill {
    height: 100%; border-radius: var(--radius-full);
    background: var(--gradient-brand); width: 0;
    transition: width 1s var(--ease);
    animation: pulseGlow 2s ease-in-out infinite;
}
.poll-total { font-size: 0.8rem; color: var(--color-text-faint); margin-top: var(--space-2); }

/* ---------- 22. UTILITIES ---------- */
.mt-0{margin-top:0!important} .mb-0{margin-bottom:0!important}
.mt-2{margin-top:var(--space-2)!important} .mb-2{margin-bottom:var(--space-2)!important}
.mt-3{margin-top:var(--space-3)!important} .mb-3{margin-bottom:var(--space-3)!important}
.mt-4{margin-top:var(--space-4)!important} .mb-4{margin-bottom:var(--space-4)!important}
.mt-5{margin-top:var(--space-5)!important} .mb-5{margin-bottom:var(--space-5)!important}
.mt-6{margin-top:var(--space-6)!important} .mb-6{margin-bottom:var(--space-6)!important}
.w-100 { width: 100%; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.d-none { display: none; }
.rounded-full { border-radius: var(--radius-full); }
.divider { height: 1px; background: var(--color-border); border: none; margin: var(--space-5) 0; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: var(--space-5) 0; border-radius: var(--radius-md); background: var(--color-bg); border: 1px dashed var(--color-border); }
.prose { font-size: 1rem; line-height: 1.75; color: var(--color-text); }
.prose h2, .prose h3 { margin-top: var(--space-6); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); padding-left: 1.4rem; list-style: revert; }
.prose a { text-decoration: underline; text-decoration-color: rgba(124, 58, 237, 0.35); text-underline-offset: 3px; }

/* Reveal-on-load animation hook */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 23. ANIMATIONS ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-18px) translateX(8px); }
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
@keyframes pulseGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.animate-fade { animation: fadeIn 0.5s var(--ease) both; }
.animate-scale { animation: scaleIn 0.35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 24. RESPONSIVE / MOBILE ---------- */
@media (max-width: 1100px) {
    .layout-split { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .main-nav, .header-search { display: none; }
    .hamburger-btn { display: inline-flex; }
    .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: var(--space-7) 0 var(--space-6); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .circular-progress { width: 148px; height: 148px; }
}

@media (max-width: 600px) {
    :root { --header-h: 66px; --header-h-shrunk: 56px; }
    .container { padding: 0 var(--space-4); }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .section { padding: var(--space-6) 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .fab { bottom: calc(var(--space-4) + 60px); }
    .comment-item.is-reply { margin-left: 12px; }
}

/* Bottom nav (mobil) */
.bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    padding: 6px var(--space-2);
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.bottom-nav-list { display: flex; justify-content: space-around; }
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 10px; min-width: 56px; min-height: 44px;
    color: var(--color-text-faint); font-size: 0.68rem; font-weight: 600;
    border-radius: var(--radius-sm);
}
.bottom-nav-item svg { width: 21px; height: 21px; }
.bottom-nav-item.is-active { color: var(--color-primary); }
@media (max-width: 600px) {
    .bottom-nav { display: block; }
    body { padding-bottom: 64px; }
    .fab { bottom: calc(64px + var(--space-3)); }
}
