/* HansMT2 — site teması (koyu premium + altın aksan, mobil öncelikli) */

:root {
    --bg: #0d0b09;
    --bg-2: #120f0c;
    --surface: #17130f;
    --surface-2: #1e1914;
    --surface-3: #262019;
    --border: #2f281f;
    --border-strong: #43392c;
    --text: #efe6d6;
    --text-soft: #cdbfa9;
    --muted: #9a8c79;
    --gold: #d6aa55;
    --gold-strong: #e9c378;
    --gold-ink: #1a1308;
    --success: #7cc47f;
    --danger: #e36f63;
    --shinsoo: #c2453a;
    --chunjo: #d4a82f;
    --jinno: #4a7ec4;

    --radius: 10px;
    --radius-sm: 6px;
    --container: 1180px;
    --header-h: 68px;

    --font-display: "Cinzel", "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.65 var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-strong); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
::selection { background: var(--gold); color: var(--gold-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.gold { color: var(--gold-strong); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- Üst bilgi ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 11, 9, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand img { display: block; height: calc(var(--header-h) - 14px); width: auto; max-width: 170px; object-fit: contain; }
.brand-footer img { height: 72px; max-width: 200px; }
.brand:hover { text-decoration: none; filter: brightness(1.08); }

.header-menu { display: flex; align-items: center; flex: 1; gap: 16px; min-width: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-soft); padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--gold-strong); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--radius-sm); width: 42px; height: 38px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 18px; border-radius: var(--radius-sm);
    font: 600 14px/1 var(--font-body); letter-spacing: .01em;
    border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
    cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--gold); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: var(--gold-ink); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(13,11,9,.72) 0%, rgba(13,11,9,.35) 55%, rgba(13,11,9,.15) 100%),
        linear-gradient(180deg, rgba(13,11,9,.05) 0%, rgba(13,11,9,.45) 65%, var(--bg) 100%),
        var(--hero-image, radial-gradient(120% 90% at 70% 10%, #3a2a17 0%, #1a130d 45%, var(--bg) 100%));
    background-size: cover; background-position: center top;
}
.hero .container { padding-top: clamp(64px, 12vw, 140px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); margin-bottom: 14px; }
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-soft); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; color: var(--text-soft); font-size: 14px; }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); }

/* ---------- Sayfa başlığı ---------- */
.page-head { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-head .container { padding-top: 40px; padding-bottom: 28px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Bölümler & ızgara ---------- */
main { flex: 1; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.feature > div { min-width: 0; overflow-wrap: anywhere; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

/* ---------- Kart ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card-flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 8px; }
.card-media { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; border-bottom: 1px solid var(--border); }
.card-media.portrait { aspect-ratio: 3 / 4; }
.card-body { padding: 18px 20px 20px; }
.card-link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--border-strong); color: inherit; text-decoration: none; transform: translateY(-2px); }
.card-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.feature { display: flex; gap: 14px; }
.feature-icon { flex: 0 0 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--gold-strong); background: var(--surface-2); }
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Haber listesi ---------- */
.news-item { display: block; padding: 16px 0; border-top: 1px solid var(--border); color: inherit; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item:hover { text-decoration: none; }
.news-item:hover h3 { color: var(--gold-strong); }
.news-date { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.news-item h3 { font-size: 17px; margin: 2px 0 6px; transition: color .15s; }
.news-item p { color: var(--text-soft); margin: 0; font-size: 14px; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .rank { width: 56px; font-family: var(--font-display); color: var(--gold-strong); }
.table-compact { min-width: 0; }
.table-compact th, .table-compact td { padding: 8px 12px; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rank-list li:first-child { border-top: 0; }
.rank-list .pos { width: 26px; font-family: var(--font-display); color: var(--gold-strong); text-align: right; }
.rank-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .meta { color: var(--muted); font-size: 13px; }

.empire-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.empire-1 { background: var(--shinsoo); }
.empire-2 { background: var(--chunjo); }
.empire-3 { background: var(--jinno); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-soft); background: var(--surface-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 14px var(--font-body); padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.tabs .is-active { color: var(--gold-strong); border-bottom-color: var(--gold); }
[data-tab-panel][hidden] { display: none; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-soft); font-size: 14px; }
.pagination a:hover { border-color: var(--gold); text-decoration: none; }
.pagination .is-current { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.pagination .is-disabled { opacity: .4; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, .select {
    width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text);
    font: 15px var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 170, 85, .18); }
.field.has-error .input { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.field label.check { display: flex; font-size: 14px; font-weight: 400; color: var(--text-soft); margin: 0; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { max-width: 480px; margin: 0 auto; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; margin-bottom: 18px; }
.alert-success { border-color: rgba(124, 196, 127, .4); background: rgba(124, 196, 127, .08); color: #b6e2b7; }
.alert-error { border-color: rgba(227, 111, 99, .45); background: rgba(227, 111, 99, .08); color: #f0b1a9; }
.alert-info { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-soft); }
.alert ul { margin: 0; padding-left: 18px; }

.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; letter-spacing: .25em; color: var(--gold-strong); background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 14px 18px; text-align: center; margin: 12px 0 16px; }

/* ---------- Hesap ---------- */
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav { display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 14px; font-weight: 500; }
.account-nav a:hover, .account-nav a.active { background: var(--surface-2); color: var(--text); text-decoration: none; }
.account-nav a.active { color: var(--gold-strong); }
.stat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.stat strong { font-size: 18px; color: var(--text); }

/* ---------- İçerik metni ---------- */
.prose { color: var(--text-soft); max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--text); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }

.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.subnav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-soft); font-size: 13px; font-weight: 600; }
.subnav a:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.subnav a.active { border-color: var(--gold); color: var(--gold-strong); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--surface-2) center / cover; }
.gallery a:hover { border-color: var(--gold); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* Sunucu durumu */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-online::before { background: var(--success); }
.status.is-offline::before { background: var(--danger); }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 48px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-soft); font-size: 14px; }
.site-footer a:hover { color: var(--gold-strong); }
.footer-note { border-top: 1px solid var(--border); padding: 16px 0 24px; font-size: 13px; color: var(--muted); }

/* ---------- Nesne Market penceresi ---------- */
.mall-dialog { padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #000; width: 760px; max-width: calc(100vw - 24px); }
.mall-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.mall-dialog iframe { display: block; width: 100%; height: 590px; border: 0; }
.mall-dialog .mall-close { position: absolute; top: 6px; right: 8px; z-index: 2; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1024px) {
    .layout-main { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .header-menu {
        display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .site-header.is-open .header-menu { display: flex; }
    .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 12px; }
    .nav a { padding: 12px; font-size: 15px; }
    .header-actions { margin: 0; padding: 12px 20px 18px; border-top: 1px solid var(--border); }
    .header-actions .btn { flex: 1; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .grid-4.grid-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .section { padding: 36px 0; }
    .hero-actions .btn { flex: 1 1 auto; }
    .site-footer .container { grid-template-columns: 1fr; }
    .mall-dialog iframe { height: 75vh; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Görsel başlık: logo arka plan görselinde, h1 ekran okuyucular için */
.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; }
.hero .container { padding-top: clamp(150px, 22vw, 300px); }
@media (max-width: 640px) {
    .hero { background-size: 100% auto; background-repeat: no-repeat; background-color: var(--bg); }
    .hero .container { padding-top: calc(56vw + 16px); }
}
.header-online { margin-right: 6px; white-space: nowrap; }
@media (max-width: 900px) { .header-online { margin: 0 0 8px; } }
