/* TEMA DEĞİŞKENLERİ */
:root {
    --page-bg: #07111f;
    --page-bg-soft: #0d1b2f;
    --card-bg: rgba(255,255,255,0.075);
    --card-bg-soft: rgba(255,255,255,0.055);
    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.72);
    --border-soft: rgba(255,255,255,0.13);
    --gold1: #f7c96b;
    --gold2: #b98221;
    --shadow-soft: 0 22px 55px rgba(0,0,0,0.28);
}

html[data-theme="light"] {
    --page-bg: #ffffff;
    --page-bg-soft: #f8fafc;
    --card-bg: #ffffff;
    --card-bg-soft: #f8fafc;
    --text-main: #000000;
    --text-muted: #666666;
    --border-soft: rgba(0,0,0,0.10);
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.08);
}

/* GENEL */
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--page-bg); color: var(--text-main); }
a { transition: .18s ease; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 999; background: rgba(7, 17, 31, 0.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-soft); }
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.82); }
.site-header-inner { max-width: 1220px; margin: 0 auto; min-height: 76px; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-main); text-decoration: none; min-width: 240px; }
.brand-mark { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #1b1204; font-weight: 1000; box-shadow: 0 10px 22px rgba(185,130,33,0.22); }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 18px; letter-spacing: -0.02em; color: var(--text-main); }
.brand-text small { color: var(--text-muted); font-size: 12px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 7px 8px; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 12px; }
.site-nav a:hover, .site-nav a.active { color: #1b1204; background: linear-gradient(135deg, var(--gold1), var(--gold2)); }
.theme-toggle, .mobile-menu-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--card-bg); color: var(--text-main); cursor: pointer; font-weight: 900; display: inline-grid; place-items: center; }
.mobile-menu-btn { display: none; font-size: 22px; }

/* AUTH POPUP */
.auth-popup-overlay { position: fixed; inset: 0; background: rgba(5,8,22,.75); backdrop-filter: blur(8px); z-index: 998; opacity: 0; visibility: hidden; transition: all .3s ease; }
html[data-theme="light"] .auth-popup-overlay { background: rgba(15,23,42,.4); }
.auth-popup-overlay.active { opacity: 1; visibility: visible; }
.auth-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92); width: 90%; max-width: 420px; padding: 32px; border-radius: 28px; background: var(--card-bg); border: 1px solid var(--border-soft); box-shadow: 0 32px 80px rgba(0,0,0,.4); z-index: 999; opacity: 0; visibility: hidden; transition: all .3s cubic-bezier(.22,.9,.18,1); }
.auth-popup.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.auth-popup-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card-bg-soft); color: var(--text-muted); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: all .2s ease; }
.auth-popup-close:hover { background: rgba(220,38,38,.12); color: #dc2626; }
.auth-popup-header { text-align: center; margin-bottom: 24px; }
.auth-popup-header h3 { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: var(--text-main); }
.auth-popup-header p { margin: 0; color: var(--text-muted); font-size: 14px; }
.auth-popup-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.auth-field input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--card-bg-soft); color: var(--text-main); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s ease; }
.auth-field input:focus { border-color: #8b6dff; }
.auth-field input::placeholder { color: var(--text-muted); opacity: .5; }
.auth-submit { padding: 14px; border-radius: 14px; border: 0; font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; transition: all .2s ease; margin-top: 4px; }
.auth-submit.gold { background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #1b1204; }
.auth-submit.gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,201,107,.3); }
.auth-popup-switch { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13px; }
.auth-popup-switch button { background: none; border: 0; color: #8b6dff; font-weight: 900; cursor: pointer; font-family: inherit; font-size: 13px; }
.auth-popup-switch button:hover { text-decoration: underline; }

/* MAIN & FOOTER */
.site-main { min-height: 55vh; }
.site-footer { background: radial-gradient(circle at top left, rgba(247, 201, 107, 0.13), transparent 32%), linear-gradient(135deg, var(--page-bg-soft), var(--page-bg)); border-top: 1px solid var(--border-soft); color: var(--text-main); }
.site-footer-inner { max-width: 1220px; margin: 0 auto; padding: 44px 20px; display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 28px; }
.footer-about strong { display: block; font-size: 20px; margin-bottom: 10px; color: var(--text-main); }
.footer-about p, .footer-note p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-main); text-decoration: none; font-weight: 850; }
.footer-links a:hover { color: #b98221; }
.footer-bottom { border-top: 1px solid var(--border-soft); text-align: center; color: var(--text-muted); padding: 18px 20px; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 980px) { .site-header-inner { flex-wrap: wrap; } .mobile-menu-btn { display: inline-grid; margin-left: auto; } .theme-toggle { order: 3; } .site-nav { order: 4; width: 100%; display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-left: 0; padding-top: 8px; } .site-nav.open { display: grid; } .site-nav a { background: var(--card-bg); border: 1px solid var(--border-soft); text-align: center; } .site-footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .site-header-inner { min-height: 68px; padding: 10px 14px; gap: 10px; } .site-brand { min-width: 0; } .brand-mark { width: 40px; height: 40px; border-radius: 14px; } .brand-text strong { font-size: 16px; } .brand-text small { display: none; } .site-nav { grid-template-columns: 1fr; } .theme-toggle, .mobile-menu-btn { width: 40px; height: 40px; } }
