/* Çarşı Sarrafiye — ortak stil: tema renkleri, marka, tema düğmesi, canlı nokta ve giriş (WebLogin) sayfası.
   Canlı fiyat ekranı (Prices) da bu dosyayı kullanır; kurumsal site sayfalarının stilleri css/kurumsal.css'tedir.
   Tema: html[data-theme="light|dark"] (wwwroot/js/tema.js); seçim yoksa cihaz teması. */

:root {
    --bg: #f5f2ec;
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --border: #e6dfd2;
    --text: #1f1b14;
    --muted: #6e6656;
    --gold: #a8741a;
    --gold-strong: #8c5f10;
    --gold-soft: rgba(196, 146, 52, .12);
    --on-gold: #241800;
    --gold-grad: linear-gradient(135deg, #f3d98b 0%, #d6a540 48%, #a8741a 100%);
    --up: #11804a;
    --down: #c42b23;
    --flat: #8a8274;
    --up-bg: rgba(17, 128, 74, .14);
    --down-bg: rgba(196, 43, 35, .13);
    --error-bg: rgba(196, 43, 35, .08);
    --shadow: 0 12px 40px rgba(60, 45, 20, .10);
    --header-bg: rgba(255, 255, 255, .86);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #131416;
    --surface: #232427;
    --surface-2: #1b1c1f;
    --border: #36383c;
    --text: #f2f1ee;
    --muted: #9c9a94;
    --gold: #e3a94a;
    --gold-strong: #f0bd62;
    --gold-soft: rgba(227, 169, 74, .12);
    --on-gold: #1f1500;
    --up: #3fcf7e;
    --down: #ff5d55;
    --flat: #9c9a94;
    --up-bg: rgba(63, 207, 126, .16);
    --down-bg: rgba(255, 93, 85, .16);
    --error-bg: rgba(255, 93, 85, .12);
    --shadow: 0 12px 40px rgba(0, 0, 0, .45);
    --header-bg: rgba(19, 20, 22, .86);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #131416;
        --surface: #232427;
        --surface-2: #1b1c1f;
        --border: #36383c;
        --text: #f2f1ee;
        --muted: #9c9a94;
        --gold: #e3a94a;
        --gold-strong: #f0bd62;
        --gold-soft: rgba(227, 169, 74, .12);
        --on-gold: #1f1500;
        --up: #3fcf7e;
        --down: #ff5d55;
        --flat: #9c9a94;
        --up-bg: rgba(63, 207, 126, .16);
        --down-bg: rgba(255, 93, 85, .16);
        --error-bg: rgba(255, 93, 85, .12);
        --shadow: 0 12px 40px rgba(0, 0, 0, .45);
        --header-bg: rgba(19, 20, 22, .86);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--gold); }

/* ---------------- Tema düğmesi ---------------- */
.TemaBtn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.TemaBtn:hover { border-color: var(--gold); color: var(--gold); }
.TemaBtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.TemaBtn_ay { display: none; }
:root[data-theme="dark"] .TemaBtn_gunes { display: block; }
:root[data-theme="dark"] .TemaBtn_ay { display: none; }
:root[data-theme="light"] .TemaBtn_gunes { display: none; }
:root[data-theme="light"] .TemaBtn_ay { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .TemaBtn_gunes { display: none; }
    :root:not([data-theme]) .TemaBtn_ay { display: block; }
}

/* ---------------- Marka (logo + alt başlık) ---------------- */
.Marka {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
}
/* Logo (images/logo.png) yazıyı da içerir; yanındaki alt başlık ince bir çizgiyle ayrılır */
.Marka_logo { display: block; width: auto; height: 50px; }
.Marka_alt { display: block; font-size: .68rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; padding-left: 10px; border-left: 1px solid var(--border); line-height: 1.6; }
@media (max-width: 420px) {
    .Marka_logo { height: 42px; }
    .Marka_alt { display: none; }
}

/* ---------------- Canlı nokta ---------------- */
.Canli_nokta {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1fa35c;
    box-shadow: 0 0 0 0 rgba(31, 163, 92, .6);
    animation: nabiz 1.8s infinite;
}
@keyframes nabiz {
    0% { box-shadow: 0 0 0 0 rgba(31, 163, 92, .55); }
    70% { box-shadow: 0 0 0 7px rgba(31, 163, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 163, 92, 0); }
}

/* ---------------- Giriş (WebLogin) ---------------- */
.WL {
    min-height: calc(100vh - 76px - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}
.WL_card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px 28px;
    box-shadow: var(--shadow);
}
.WL_brand { text-align: center; margin-bottom: 24px; }
.WL_logo { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto 14px; }
.WL_title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.WL_subtitle { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.WL_alert {
    background: var(--error-bg);
    color: var(--down);
    border: 1px solid currentColor;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .88rem;
    margin-bottom: 18px;
}
.WL_field { margin-bottom: 16px; }
.WL_label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.WL_input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
}
.WL_input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.WL_passWrap { position: relative; }
.WL_passInput { padding-right: 48px; }
.WL_passToggle {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
}
.WL_passToggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.WL_eyeOff { display: none; }
.WL_passToggle[aria-pressed="true"] .WL_eye { display: none; }
.WL_passToggle[aria-pressed="true"] .WL_eyeOff { display: inline; }
.WL_fieldError { display: block; color: var(--down); font-size: .8rem; margin-top: 4px; }
.WL_fieldError:empty { display: none; }
.WL_remember { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 4px 0 20px; cursor: pointer; }
.WL_remember input { width: 18px; height: 18px; accent-color: var(--gold); }
.WL_remember small { color: var(--muted); }
.WL_submit { width: 100%; }
.WL_submit:disabled { opacity: .7; cursor: wait; }
.WL_not { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .85rem; }
