/* ==========================================================================
   Mobil "native" hissi için WebView ayarları
   ========================================================================== */
:root {
    --brand: #0b4f6c;
    --brand-2: #01baef;
    --bg: #f2f4f7;
    --card: #ffffff;
    --text: #1c2430;
    --muted: #6b7685;
    --line: #e3e7ec;
    --bar-h: 52px;
    --tab-h: 58px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f141a;
        --card: #1a2129;
        --text: #e8edf2;
        --muted: #95a1ae;
        --line: #2a333d;
    }
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    /* Pull-to-refresh ve iOS "lastik" sekmesini engelle (Android Chrome WebView + iOS 16+) */
    overscroll-behavior: none;
    /* Sistem yazı boyutu ayarı sayfayı bozmasın */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    /* Gövde kaymaz; yalnızca .app-content kayar → üst/alt bar sabit kalır, sayfa "zıplamaz" */
    position: fixed;
    inset: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Uzun basınca çıkan iOS menüsünü ve metin seçimini kapat (inputlar hariç, aşağıda) */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Dokununca çıkan gri/mavi kutuyu kaldır */
    -webkit-tap-highlight-color: transparent;
}

/* Çift dokunmayla zoom'u ve 300ms tıklama gecikmesini kaldır */
a, button, input, select, textarea, label, summary, .chip, .leaflet-container {
    touch-action: manipulation;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
    /* iOS 16px altındaki inputlarda odaklanınca otomatik zoom yapar */
    font-size: 16px !important;
}

img { -webkit-user-drag: none; }

a { color: var(--brand-2); text-decoration: none; }

/* Dokunma geri bildirimi (native "pressed" hissi) */
.list-app a:active, .btn:active, .tab-bar a:active, .app-bar-btn:active { opacity: .6; transition: none; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    height: calc(var(--bar-h) + var(--safe-top));
    padding: var(--safe-top) 8px 0;
    background: var(--brand);
    color: #fff;
    z-index: 10;
}
.app-bar-title { flex: 1; margin: 0 8px; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar-btn { color: #fff; font-size: 20px; width: 40px; height: 40px; display: grid; place-items: center; }

.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* İç kaydırma sona gelince üst elemana/gövdeye zincirlenmesin */
    overscroll-behavior-y: contain;
    padding: 12px 16px 24px;
}

.tab-bar {
    flex: none;
    display: flex;
    height: calc(var(--tab-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--card);
    border-top: 1px solid var(--line);
    z-index: 10;
}
.tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
}
.tab-bar a i { font-size: 21px; }
.tab-bar a.active { color: var(--brand-2); }

/* ==========================================================================
   Bileşenler
   ========================================================================== */
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 4px 8px; font-weight: 600; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.card-app { background: var(--card); border-radius: 14px; padding: 14px; }
.empty { background: var(--card); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); }

.list-app { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
.list-app > li + li { border-top: 1px solid var(--line); }
.list-app a, .list-app .row-static { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); min-height: 52px; }
.list-app .grow { flex: 1; min-width: 0; }
.list-app small { display: block; color: var(--muted); font-size: 12px; }
.list-app .chev { color: var(--muted); }
.catch summary { list-style: none; cursor: pointer; }
.catch summary::-webkit-details-marker { display: none; }
.catch-body { padding: 0 14px 10px 44px; color: var(--muted); }

.wx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.wx-grid small { display: block; color: var(--muted); font-size: 12px; }
.wx-grid strong { font-size: 16px; }
.wx-status:empty { display: none; }
.weather-card .wx-status { margin-top: 8px; }

.banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.banner-good { background: #d7f5e3; color: #11643a; }

.form-app label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.form-control, .form-select { background-color: var(--bg); border-color: var(--line); color: var(--text); border-radius: 10px; }
.btn { border-radius: 12px; }
.btn-primary { background: var(--brand); border-color: var(--brand); }

.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }

.profile-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.stat { background: var(--card); border-radius: 14px; padding: 12px; text-align: center; }
.stat strong { display: block; font-size: 20px; }
.stat small { color: var(--muted); }

.toast-stack { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 8px); z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.app-toast { pointer-events: auto; background: var(--card); color: var(--text); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toast-in .25s ease-out; }
.app-toast strong { display: block; }
@keyframes toast-in { from { transform: translateY(-20px); opacity: 0; } }

/* ==========================================================================
   Harita sayfası
   ========================================================================== */
.page-map .app-content { padding: 0; overflow: hidden; position: relative; }
#map { position: absolute; inset: 0; }
.fab { position: absolute; right: 16px; bottom: 16px; z-index: 500; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--card); color: var(--brand); font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--card); border-radius: 18px 18px 0 0; padding: 10px 16px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,.15); animation: sheet-in .2s ease-out; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.leaflet-popup-content { font-size: 14px; }

/* ==========================================================================
   Giriş / kayıt
   ========================================================================== */
.page-auth .app-content { padding: 0 0 calc(24px + var(--safe-bottom)); }
.auth-hero {
    position: relative;
    padding: calc(var(--safe-top) + 48px) 24px 72px;
    text-align: center;
    color: #fff;
    background: radial-gradient(120% 90% at 80% 0%, #1fa2d6 0%, transparent 60%),
                linear-gradient(160deg, #0b4f6c 0%, #06324a 100%);
}
.auth-logo {
    width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px;
    display: grid; place-items: center; font-size: 36px;
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.auth-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.auth-hero p { margin: 6px auto 0; max-width: 280px; opacity: .85; font-size: 15px; }
.auth-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; }

.auth-card {
    position: relative; margin: -28px 16px 0; padding: 22px 18px;
    background: var(--card); border-radius: 22px;
    box-shadow: 0 12px 32px rgba(6, 50, 74, .12);
}
.auth-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.auth-field {
    display: flex; align-items: center; gap: 10px;
    height: 54px; padding: 0 14px; margin-top: 10px;
    background: var(--bg); border: 1.5px solid transparent; border-radius: 14px;
    transition: border-color .15s, background .15s;
}
.auth-field:focus-within { border-color: var(--brand-2); background: var(--card); }
.auth-field > i { color: var(--muted); font-size: 18px; }
.auth-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.auth-eye { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 4px; }
.auth-hint { display: block; color: #d6455d; font-size: 12px; margin: 4px 4px 0; }
.auth-hint:empty { display: none; }
.auth-error ul { list-style: none; margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: #fde8eb; color: #a8253b; font-size: 14px; }
.auth-error.validation-summary-valid { display: none; }
.auth-submit {
    width: 100%; height: 54px; margin-top: 20px; border: 0; border-radius: 14px;
    color: #fff; font-size: 17px; font-weight: 600;
    background: linear-gradient(135deg, #0b4f6c, #1fa2d6);
    box-shadow: 0 8px 20px rgba(31, 162, 214, .35);
}
.auth-submit:active { transform: scale(.98); }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.auth-switch a { font-weight: 600; }

/* Harita nokta paneli */
.sheet { max-height: 72%; display: flex; flex-direction: column; padding-bottom: calc(16px + var(--safe-bottom)); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.sheet-subtitle { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.sheet-subtitle small { font-weight: 400; color: var(--muted); font-size: 12px; }
.species-list { display: flex; flex-wrap: wrap; gap: 6px; }
.species-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.species-chip img, .species-chip .ph { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--line); display: grid; place-items: center; font-size: 13px; }
.species-chip em { color: var(--muted); font-style: normal; font-size: 11px; }

/* ==========================================================================
   Ana sayfa
   ========================================================================== */
.page-home .app-content { padding-top: 0; }
.page-home .app-bar { display: none; }

.hero {
    --sky-a: #0b6e99; --sky-b: #0b3550;
    position: relative; overflow: hidden;
    margin: 0 -16px; padding: calc(var(--safe-top) + 20px) 20px 22px;
    color: #fff;
    background: radial-gradient(120% 70% at 85% 0%, rgba(255,255,255,.22) 0%, transparent 55%),
                linear-gradient(170deg, var(--sky-a) 0%, var(--sky-b) 100%);
    border-radius: 0 0 28px 28px;
}
.hero.sky-dawn  { --sky-a: #f2994a; --sky-b: #2d4f7c; }
.hero.sky-day   { --sky-a: #1fa2d6; --sky-b: #0b4f6c; }
.hero.sky-dusk  { --sky-a: #e0676a; --sky-b: #2b2f5e; }
.hero.sky-night { --sky-a: #1d3a63; --sky-b: #080f1f; }
/* Alt kenarda hafif dalga */
.hero::after {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -38px; height: 70px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}

.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-greet { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.hero-place { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.hero-moon { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 12px rgba(255,255,220,.45)); }

.hero-main { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.hero-temp span { display: block; font-size: 72px; font-weight: 200; line-height: 1; letter-spacing: -.04em; }
.hero-temp small { display: block; margin-top: 6px; font-size: 14px; opacity: .85; }
.hero-temp b { font-weight: 600; }

.score { --score: 0; position: relative; width: 104px; height: 104px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 3.2; }
.score-track { stroke: rgba(255,255,255,.18); }
.score-bar {
    stroke: #7ee2a8; stroke-linecap: round;
    stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--score));
    transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1), stroke .3s;
}
.score[data-level="good"] .score-bar { stroke: #c8f07a; }
.score[data-level="fair"] .score-bar { stroke: #ffd166; }
.score[data-level="poor"] .score-bar { stroke: #ff7b7b; }
.score-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-text strong { font-size: 28px; font-weight: 700; line-height: 1; }
.score-text small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-top: 3px; }

.hero-verdict { margin: 12px 0 0; font-size: 15px; font-weight: 500; }

.hero-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px;
}
.hero-stats > div {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
    background: rgba(255,255,255,.13); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero-stats i { font-size: 20px; opacity: .9; }
.wind-arrow { display: inline-block; transition: transform .6s ease; }
.hero-stats small { display: block; font-size: 11px; opacity: .75; }
.hero-stats b { font-size: 15px; font-weight: 600; }
.hero .wx-status { position: relative; z-index: 1; margin: 10px 0 0; font-size: 12px; opacity: .8; color: #fff !important; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.qa-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.qa-blue { background: linear-gradient(135deg, #1fa2d6, #0b4f6c); }
.qa-teal { background: linear-gradient(135deg, #2ec4b6, #128c7e); }
.qa-orange { background: linear-gradient(135deg, #ffb347, #f3722c); }
.qa-purple { background: linear-gradient(135deg, #9b8cff, #5b4bd1); }
.quick-actions a:active .qa-icon { transform: scale(.94); }

.empty-card {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
    background: var(--card); color: var(--text); border: 1.5px dashed var(--line);
}
.empty-card strong { display: block; font-size: 15px; }
.empty-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.empty-card > i { margin-left: auto; color: var(--muted); }
.empty-art { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--bg); }

.spot-scroller { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.spot-scroller::-webkit-scrollbar { display: none; }
.spot-card {
    flex: none; width: 160px; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px;
    background: var(--card); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.spot-card strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-card small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-card-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #e2f4fb; color: var(--brand); margin-bottom: 4px; }
.spot-badge { font-size: 11px; color: #b7791f; margin-top: 2px; }
.catch-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-size: 18px; }
.land-note { margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: #fff4dc; color: #8a5a00; font-size: 13px; }
/* Skor yokken (yükleniyor / kara noktası) yuvarlak uçlu çizginin nokta gibi görünmesini engelle */
.score:not([data-level]) .score-bar, .score[data-level="none"] .score-bar { stroke: transparent; }

/* Fotoğraf seçici ve küçük resimler */
.photo-picker {
    position: relative; display: grid; place-items: center; height: 200px; overflow: hidden; cursor: pointer;
    border-radius: 18px; border: 2px dashed var(--line); background: var(--card); color: var(--muted);
}
.photo-picker.has-photo { border-style: solid; border-color: transparent; }
.photo-picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.photo-empty i { font-size: 34px; color: var(--brand-2); }
.photo-empty strong { color: var(--text); font-size: 15px; }
.photo-empty small { font-size: 12px; }
.photo-remove {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center;
}
.catch-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg); }
.catch-photo { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 4px 0 8px; }

/* ==========================================================================
   Cila: ortak bileşenler, hareket, tahmin görünümü
   ========================================================================== */
:root { color-scheme: light dark; }

[data-level="great"] { --lv: #2fbf71; }
[data-level="good"]  { --lv: #8fd14f; }
[data-level="fair"]  { --lv: #f5b041; }
[data-level="poor"]  { --lv: #ef6a6a; }

/* Kartlara yumuşak gölge */
.card-app, .list-app, .stat, .spot-card, .empty-card, .fday {
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
    .card-app, .list-app, .stat, .spot-card, .empty-card, .fday { box-shadow: none; }
    .banner-good { background: #173a2a; color: #9be3bb; }
    .land-note { background: #3a2e12; color: #f3cf85; }
    .spot-card-icon { background: #12364a; }
}

/* Sayfa açılış animasyonu: içerik sırayla yukarı kayarak belirir */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.app-content > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
.app-content > :nth-child(2) { animation-delay: 50ms; }
.app-content > :nth-child(3) { animation-delay: 100ms; }
.app-content > :nth-child(4) { animation-delay: 150ms; }
.app-content > :nth-child(5) { animation-delay: 200ms; }
.app-content > :nth-child(n+6) { animation-delay: 250ms; }
.page-map .app-content > *, .page-auth .app-content > * { animation: none; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Yükleniyor durumu: değerler nabız gibi atar */
.hero.loading .hero-temp span, .hero.loading .hero-stats b, .hero.loading .hero-verdict, .hero.loading .score-text strong {
    animation: pulse 1.1s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.forecast-skeleton {
    height: 168px; border-radius: 18px;
    background: linear-gradient(90deg, var(--card) 25%, var(--line) 37%, var(--card) 63%);
    background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}

/* Alt sekme çubuğu: buzlu cam, aktif sekmede üst çizgi ve dolu ikon */
.tab-bar { background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.tab-bar a { position: relative; transition: color .2s; }
.tab-bar a i { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.tab-bar a.active { font-weight: 600; }
.tab-bar a.active i { transform: translateY(-1px) scale(1.12); }
.tab-bar a.active::before {
    content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand-2);
}

/* Düğmeler ve alanlar */
.btn-primary { background: linear-gradient(135deg, #0b4f6c, #1fa2d6); border: 0; box-shadow: 0 6px 16px rgba(31, 162, 214, .28); }
.btn-primary:active { transform: scale(.98); }
.form-control, .form-select { min-height: 46px; transition: border-color .15s, box-shadow .15s; }
textarea.form-control { min-height: 0; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); background-color: var(--card); box-shadow: 0 0 0 3px rgba(1, 186, 239, .18); color: var(--text); }
.section-title { margin-top: 22px; }

/* Üst bölüm (hero) varyantları: mera ve profil sayfaları */
.page-detail .app-content, .page-profile .app-content { padding-top: 0; }
.hero-compact { padding: 20px 20px 26px; }
.hero-compact .hero-greet { font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; margin: 6px 6px 0 0; font-size: 12px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hero-best { display: inline-block; margin: 8px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.hero-verdict i { color: #7ee2a8; }

.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head strong { font-size: 20px; }
.profile-head small { display: block; opacity: .8; }
.profile-hero .avatar { width: 60px; height: 60px; font-size: 26px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-3 > div { justify-content: center; text-align: center; }
.stats-3 b { display: block; font-size: 22px; font-weight: 700; }

.insights-lead { margin: 0 0 12px; font-weight: 600; }
.insights-lead i { color: var(--brand-2); margin-right: 4px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.insight-grid small { display: block; color: var(--muted); font-size: 12px; }
.insight-grid b { font-size: 14px; }
.progress-app { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress-app i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), #7ee2a8); transition: width .6s ease; }

/* 7 günlük tahmin */
.best-card {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px;
    background: var(--card);
    background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 22%, var(--card)), var(--card) 70%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lv) 38%, transparent);
}
.best-card > div { flex: 1; min-width: 0; }
.best-card small { display: block; color: var(--muted); font-size: 12px; }
.best-card strong { font-size: 17px; }
.best-icon { font-size: 26px; }
.best-score { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lv); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 6px 14px color-mix(in srgb, var(--lv) 45%, transparent); }

.fdays { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 4px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.fdays::-webkit-scrollbar { display: none; }
.fday {
    flex: none; width: 70px; padding: 10px 6px; border: 0; border-radius: 16px; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); color: var(--text);
    transition: transform .15s, box-shadow .2s, background .2s;
}
.fday:active { transform: scale(.95); }
.fday.active { background: color-mix(in srgb, var(--lv) 16%, var(--card)); box-shadow: inset 0 0 0 2px var(--lv); }
.fday-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.fday-score { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lv); color: #fff; font-weight: 700; font-size: 14px; }
.fday-win { font-size: 11px; color: var(--muted); }

.fdetail { margin-top: 4px; padding: 14px 14px 12px; border-radius: 18px; background: var(--card); }
.fbars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.fbars i { flex: 1; border-radius: 4px 4px 1px 1px; background: var(--lv); opacity: .42; transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.fbars i.in-best { opacity: 1; box-shadow: 0 0 10px color-mix(in srgb, var(--lv) 60%, transparent); }
.fbars i.past { opacity: .14; }
.fbar-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--muted); }
.fmeta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.fmeta i { color: var(--brand-2); margin-right: 3px; }

/* ==========================================================================
   Boy ve yasak uyarıları
   ========================================================================== */
.reg-check { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.reg-link { display: block; margin: 10px 0 6px; font-size: 13px; }
.reg-finding {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 13px;
    background: color-mix(in srgb, var(--rc) 12%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent);
    margin: 6px 0; animation: rise .3s both;
}
.reg-finding > i { color: var(--rc); font-size: 18px; margin-top: 1px; }
.reg-finding strong { display: block; color: var(--text); }
.reg-finding span { color: var(--muted); }
.reg-finding.stop { --rc: #e5484d; }
.reg-finding.warn { --rc: #f5a524; }
.reg-finding.info { --rc: #1fa2d6; }
.reg-flag { margin-left: auto; font-size: 18px; }
.reg-flag.stop { color: #e5484d; }
.reg-flag.warn { color: #f5a524; }

.reg-hero { margin: 0 -16px; padding: 22px 20px 26px; color: #fff; border-radius: 0 0 28px 28px; background: linear-gradient(160deg, #0b4f6c, #1fa2d6); }
.reg-hero-title { margin: 0; font-size: 20px; font-weight: 700; }
.reg-hero-sub { margin: 6px 0 0; font-size: 14px; opacity: .9; }
.page-regs .app-content { padding-top: 0; }
.reg-now { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, #e5484d 12%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #e5484d 30%, transparent); }
.reg-now strong { display: block; margin-bottom: 8px; color: #e5484d; font-size: 14px; }
.reg-now-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-now-list span { padding: 3px 10px; border-radius: 999px; background: var(--card); font-size: 12px; }

.reg-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.reg-search i { color: var(--muted); }
.reg-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.reg-list { display: flex; flex-direction: column; gap: 8px; }
.reg-card { padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.04); }
.reg-card.is-closed { box-shadow: inset 0 0 0 1.5px #e5484d; }
.reg-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.reg-card header strong { display: block; font-size: 15px; }
.reg-card header em { display: block; color: var(--muted); font-size: 12px; }
.reg-badge.stop { padding: 3px 10px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.reg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-reg { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; }
.chip-reg i { color: var(--brand-2); }
.chip-reg.ban { background: color-mix(in srgb, #f5a524 16%, var(--card)); }
.chip-reg.ban i { color: #f5a524; }
.chip-reg.ban.on { background: color-mix(in srgb, #e5484d 18%, var(--card)); }
.chip-reg.ban.on i { color: #e5484d; }
.reg-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.reg-empty { text-align: center; color: var(--muted); padding: 16px; font-size: 14px; }
.reg-banned { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.reg-banned summary { cursor: pointer; font-weight: 600; list-style: none; }
.reg-banned summary::-webkit-details-marker { display: none; }
.reg-banned p { margin: 10px 0; font-size: 13px; color: var(--muted); }
.reg-links { list-style: none; margin: 0; padding: 0; }
.reg-links li { padding: 6px 0; font-size: 14px; }
.reg-rules .row-static { align-items: flex-start; }
.reg-rules .row-static > i { color: var(--brand-2); margin-top: 2px; }

/* ==========================================================================
   Şifre sıfırlama, hesap silme, gizlilik sayfası
   ========================================================================== */
.auth-forgot { display: block; margin: 10px 2px 0; text-align: right; font-size: 14px; }
.auth-ok { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #d7f5e3; color: #11643a; font-size: 14px; }
.auth-legal { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-done { text-align: center; }
.auth-done p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.auth-done-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #e2f4fb; color: var(--brand); }
.auth-done-icon.ok { background: #d7f5e3; color: #11643a; }
.dev-note { margin: 12px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; text-align: left; background: #fff4dc; color: #8a5a00; word-break: break-word; }
.dev-note code { color: inherit; }

.danger-title { color: #e5484d; }
.danger-zone { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #e5484d 40%, transparent); }
.btn-danger { background: #e5484d; border: 0; }

.page-legal .app-content { padding-top: 0; }
.legal { margin-top: 16px; padding: 4px 2px 12px; font-size: 14px; line-height: 1.6; -webkit-user-select: text; user-select: text; }
.legal h2 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal-disclaimer { margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: var(--card); color: var(--muted); font-size: 13px; }

@media (prefers-color-scheme: dark) {
    .auth-ok, .auth-done-icon.ok { background: #173a2a; color: #9be3bb; }
    .auth-done-icon { background: #12364a; }
    .dev-note { background: #3a2e12; color: #f3cf85; }
}

/* ==========================================================================
   Daha açık ve ferah tema (kullanıcı geri bildirimi: "çok koyu")
   ========================================================================== */
:root { --brand: #1587b3; --brand-2: #14b5ee; --bg: #f3f8fb; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f141a; } }

.app-bar { background: linear-gradient(135deg, #1587b3, #2aa6dc); }

/* Gökyüzü temaları: tabanı koyu lacivert yerine orta tonlar; metin okunaklı kalsın diye hafif gölge */
.hero { text-shadow: 0 1px 2px rgba(10, 40, 70, .22); }
.hero.sky-day   { --sky-a: #55c6f2; --sky-b: #1f8fc6; }
.hero.sky-dawn  { --sky-a: #f9ad66; --sky-b: #e0707f; }
.hero.sky-dusk  { --sky-a: #f79274; --sky-b: #8062c4; }
.hero.sky-night { --sky-a: #5b82c8; --sky-b: #34559a; }
.hero-stats > div { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.hero-best, .pill { background: rgba(255, 255, 255, .24); }
.score-track { stroke: rgba(255, 255, 255, .28); }

.btn-primary, .auth-submit, .qa-blue { background: linear-gradient(135deg, #1587b3, #36b4e5); }
.btn-primary { box-shadow: 0 6px 16px rgba(54, 180, 229, .3); }
.auth-hero { background: radial-gradient(120% 90% at 80% 0%, #6fd0f5 0%, transparent 60%), linear-gradient(160deg, #1b95c7 0%, #1273a0 100%); }
.reg-hero { background: linear-gradient(160deg, #1587b3, #3cb8ea); }
.avatar { background: linear-gradient(135deg, #1587b3, #36b4e5); }
.spot-card-icon { background: #e2f4fb; color: #1587b3; }

/* Konum hatası olduğunda hero içindeki yeniden dene düğmesi */
.hero-retry { margin-top: 10px; padding: 9px 18px; border: 0; border-radius: 999px; font-weight: 600; font-size: 14px; color: #1587b3; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.hero-retry:active { transform: scale(.97); }

/* Harita iğneleri ve mera adı etiketleri */
.spot-pin { background: none; border: 0; }
.spot-pin svg { display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); transition: transform .15s; }
.spot-pin:active svg { transform: scale(1.08); }
.leaflet-tooltip.spot-label {
    padding: 2px 9px; border: 0; border-radius: 10px; background: #fff; color: #1c2430;
    font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.leaflet-tooltip-bottom.spot-label::before { display: none; }
.labels-off .spot-label { display: none; }

.ad-status { margin: 16px 4px 0; font-size: 11px; line-height: 1.5; color: var(--muted); text-align: center; word-break: break-word; }

/* Puan açıklaması penceresi ve grafik rehberi */
.score { cursor: pointer; }
.fbar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: var(--muted); align-items: center; }
.fbar-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: #2fbf71; vertical-align: -1px; }
.fbar-legend .lg.soft { opacity: .35; }
.fbar-legend .lg-note { flex-basis: 100%; }
.c-great { color: #1f9d5a; } .c-fair { color: #d98f12; } .c-poor { color: #d84a4a; }
.info-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 30, 45, .45); animation: sheet-in .15s ease-out; }
.info-card { width: 100%; max-width: 520px; max-height: 86%; display: flex; flex-direction: column; background: var(--card); border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + var(--safe-bottom)); box-shadow: 0 -6px 24px rgba(0, 0, 0, .2); }
.info-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.info-close { border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--muted); }
.info-body { overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.info-lead { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.info-foot { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.fx-list { list-style: none; padding: 0; margin: 0; }
.fx-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fx-name { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.fx-name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.fx-d { font-size: 16px; min-width: 40px; text-align: right; }
.fx-d.pos { color: #1f9d5a; } .fx-d.neg { color: #d84a4a; } .fx-d.zero { color: var(--muted); }
.fx-scale { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 700; }
.fx-scale span { padding: 4px 8px; border-radius: 999px; color: #fff; }
.lv-great { background: #2fbf71; } .lv-good { background: #8fd14f; } .lv-fair { background: #f5b041; } .lv-poor { background: #ef6a6a; }
.catch-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.catch-actions form { margin: 0; }

/* Yem ve teknik önerileri */
.sg-list { display: grid; gap: 10px; }
.sg-card { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 6px rgba(11, 79, 108, .08); }
.sg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 16px; }
.sg-fit { font-size: 11px; font-weight: 700; color: #fff; background: var(--lv); padding: 3px 9px; border-radius: 999px; }
.sg-row { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding: 2px 0; }
.sg-row i { color: var(--brand); }
.sg-mine { margin-top: 6px; font-size: 12px; background: #e8f6fc; color: #0b4f6c; padding: 5px 9px; border-radius: 8px; }
.sg-note { font-size: 11px; color: var(--muted); margin: 6px 4px 0; }

/* İstatistikler ve rozetler */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-grid div { background: var(--card); border-radius: 16px; padding: 14px 8px; text-align: center; box-shadow: 0 1px 6px rgba(11, 79, 108, .08); }
.stat-grid b { display: block; font-size: 26px; color: var(--brand); }
.stat-grid small { color: var(--muted); font-size: 12px; }
.stat-facts li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.stat-facts i { color: var(--brand); font-size: 18px; }
.bars { padding: 12px 14px; }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.bar-label { width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 10px; background: #e6f1f6; border-radius: 5px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #1fa2d6, #0b4f6c); border-radius: 5px; }
.bar-n { width: 24px; text-align: right; color: var(--muted); }
.month-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 12px 10px 8px; }
.mb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mb i { width: 100%; background: #1fa2d6; border-radius: 4px 4px 1px 1px; min-height: 4px; }
.mb small { font-size: 9px; color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge-tile { background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 6px rgba(11, 79, 108, .08); }
.badge-tile .badge-ico { font-size: 28px; }
.badge-tile small { color: var(--muted); font-size: 11px; }
.badge-tile.locked { opacity: .5; filter: grayscale(1); }
.badge-tile.earned { border: 1.5px solid #2fbf71; }

/* Av takvimi */
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 8px 0; flex-wrap: wrap; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.cal-dot.season, .cal-cell.season { background: #2fbf71; }
.cal-dot.closed, .cal-cell.closed { background: #ef6a6a; }
.cal { padding: 10px 10px 6px; }
.cal-row { display: flex; align-items: center; gap: 3px; padding: 3px 0; }
.cal-name { width: 78px; flex: none; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.15; }
.cal-name small { font-weight: 400; color: var(--muted); font-size: 10px; }
.cal-cell { flex: 1; height: 18px; border-radius: 4px; background: #eaf2f6; text-align: center; font-size: 10px; color: var(--muted); }
.cal-head .cal-cell { background: transparent; height: auto; font-weight: 700; }
.cal-cell.now { outline: 2px solid var(--brand); outline-offset: 0; }
.cal-note { font-size: 11px; color: #c23b3b; margin: 0 0 4px 81px; }

/* Harita katmanları */
.map-chips { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.map-chips button { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; background: #fff; color: #0b4f6c; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.map-chips button.on { background: #1587b3; color: #fff; }
.wx-arrow { background: none; border: 0; text-align: center; pointer-events: none; }
.wx-arrow div { font-size: 28px; line-height: 28px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.wx-arrow span { display: inline-block; font-size: 11px; font-weight: 700; color: #0b4f6c; background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 0 4px; }
.shop-pin { background: #fff; border-radius: 50%; border: 2px solid #1587b3; color: #1587b3; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.maptiler-logo { display: block; margin: 0 0 22px 8px; }
.maptiler-logo img { display: block; }

/* Mera taraması */
.map-chips .scan-chip { background: #0b4f6c; color: #fff; }
.map-chips .scan-chip.on { background: #14b5ee; }
.scan-pin { background: #e8590c; color: #fff; border: 2px solid #fff; border-radius: 50%; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.scan-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scan-rank { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e8590c; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.scan-main { flex: 1; min-width: 0; }
.scan-main strong { display: block; font-size: 15px; }
.scan-main small { color: var(--muted); }
.scan-main p { font-size: 12px; margin: 4px 0 8px; color: #46606c; }
.scan-actions { display: flex; gap: 8px; }
.scan-score { flex: none; min-width: 40px; text-align: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--lv); border-radius: 12px; padding: 6px 4px; }
