/* ================================================================
   CultCrit Design System — v2.0
   Temel CSS değişkenleri, reset, tipografi, yardımcı sınıflar
================================================================ */

/* ── Değişkenler ── */
:root {
    --bg:            #FAF9F6;
    --bg-alt:        #F2EFE9;
    --bg-deep:       #ECEAE3;
    --surface:       #FFFFFF;
    --text:          #1A1814;
    --text-muted:    #6B6760;
    --text-faint:    #A9A59E;
    --border:        rgba(26,24,20,0.10);
    --border-strong: rgba(26,24,20,0.20);

    --gold:          #C9953A;
    --gold-light:    #E8C27A;
    --gold-dark:     #9A6F23;
    --gold-bg:       rgba(201,149,58,0.08);

    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:        0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);

    --nav-height:    64px;
    --font-display:  'DM Serif Display', Georgia, serif;
    --font-body:     'DM Sans', system-ui, sans-serif;
}

.dark {
    --bg:            #0F0E0C;
    --bg-alt:        #161410;
    --bg-deep:       #1C1916;
    --surface:       #1F1D19;
    --text:          #F0EDE8;
    --text-muted:    #9B9790;
    --text-faint:    #5C5A56;
    --border:        rgba(240,237,232,0.08);
    --border-strong: rgba(240,237,232,0.16);
    --gold:          #D4A44E;
    --gold-light:    #EAC97E;
    --gold-dark:     #B8862C;
    --gold-bg:       rgba(212,164,78,0.10);
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
    --shadow:        0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.4s ease, color 0.4s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }
main { padding-top: 1.5rem; min-height: 60vh; }

/* ── Tipografi ── */
h1 { font-family: var(--font-display); font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 500; }
@media(min-width:768px) { h1 { font-size: 2.75rem; } h2 { font-size: 2rem; } }

.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-gold  { color: var(--gold); }
.font-medium { font-weight: 500; }

/* ── Yardımcılar ── */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.mb-2   { margin-bottom: 0.5rem; }
.mb-3   { margin-bottom: 0.75rem; }
.mb-4   { margin-bottom: 1rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mt-4   { margin-top: 1rem; }
.mt-6   { margin-top: 1.5rem; }
.p-3    { padding: 0.75rem; }
.p-4    { padding: 1rem; }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.w-full     { width: 100%; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.menu-open { overflow: hidden; }

/* ── Altın çizgi ── */
.gold-line { display: block; width: 32px; height: 2px; background: var(--gold); border-radius: 2px; margin-bottom: 0.875rem; }

/* ── Grid ── */
.grid   { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }
@media(min-width:480px){ .xs-grid-3 { grid-template-columns: repeat(3,1fr); } }
@media(min-width:640px){ .sm-grid-3 { grid-template-columns: repeat(3,1fr); } .sm-grid-4 { grid-template-columns: repeat(4,1fr); } }
@media(min-width:768px){ .md-grid-4 { grid-template-columns: repeat(4,1fr); } .md-grid-5 { grid-template-columns: repeat(5,1fr); } }
@media(min-width:1024px){ .lg-grid-4 { grid-template-columns: repeat(4,1fr); } .lg-grid-5 { grid-template-columns: repeat(5,1fr); } .lg-grid-6 { grid-template-columns: repeat(6,1fr); } }

/* ── Formlar ── */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    font-weight: 300;
    min-height: 44px;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 100px; }

/* ── Alert ── */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 1rem; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #0A7557; }
.alert-error   { background: rgba(220,38,38,0.08);  border: 1px solid rgba(220,38,38,0.25);  color: #B91C1C; }
.dark .alert-success { color: #4ADE80; }
.dark .alert-error   { color: #F87171; }

/* Eski isimlere uyumluluk */
.success { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 1rem; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #0A7557; }
.errors  { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 1rem; background: rgba(220,38,38,0.08);  border: 1px solid rgba(220,38,38,0.25);  color: #B91C1C; }

/* ── İçerik Sayfası ── */
.content-page   { padding: 1.5rem 0 3rem; }
.content-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
@media(min-width:768px) { .content-header { flex-direction: row; align-items: flex-start; } }
.divider { height: 1px; background: var(--border); }
