/* ==========================================================================
   Meydan sayfaları (meydan.php) ve METAR Antrenörü (metar-antrenor.php) — 26 Eylül 2026
   home.css (--hb-* değişkenleri) ve metar-taf.css üzerine kurulu.
   ========================================================================== */
.my-container { max-width: 980px !important; margin-left: auto; margin-right: auto; }
.my-hero { padding-bottom: 30px; }
.my-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.my-hero .home-lede a { color: var(--hb-blue-light); }
.my-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--hb-muted); font-size: .8rem; }
.my-crumb a { color: var(--hb-muted); }
.my-crumb a:hover { color: #fff; }
.my-crumb i { font-size: .65rem; opacity: .7; }
.my-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.my-facts span { display: flex; flex-direction: column; min-width: 86px; padding: 8px 12px; border: 1px solid var(--hb-border); border-radius: 8px; background: rgba(2, 16, 32, .45); }
.my-facts small { color: var(--hb-muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.my-facts b { color: #fff; font: 700 1rem var(--mt-mono, monospace); }

.my-card { margin-bottom: 16px; }
.my-row { margin-bottom: 0; }
.my-row .my-card { margin-bottom: 0; }
.my-row + * { margin-top: 16px; }
.my-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #f7fbff; font-size: 1.08rem !important; font-weight: 800; }
.my-h2 small { color: var(--hb-muted); font-size: .8rem; font-weight: 700; }
.my-h2 i { color: var(--hb-blue-light); }
.mt-res-head .my-h2 { margin: 0; }
.my-h3 { margin: 16px 0 4px; color: #eaf3ff; font-size: .98rem !important; font-weight: 800; }
.my-p { margin: 0; color: #c4d6e6; font-size: .92rem; line-height: 1.65; }
.my-sub { margin: -4px 0 14px; color: var(--hb-muted); font-size: .88rem; }
.my-note { margin: 10px 0 0; color: var(--hb-muted-soft); font-size: .78rem; line-height: 1.55; }
.my-hint { color: var(--hb-muted-soft); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .72rem; }
.my-mono { font-family: var(--mt-mono, 'JetBrains Mono', monospace); }
.my-refresh, .my-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: transparent; color: #dbe9f6; font-size: .82rem; font-weight: 700; }
.my-refresh:hover, .my-link-btn:hover { border-color: var(--hb-blue-light); color: #fff; }

/* Tıklanabilir METAR grupları */
.my-raw { line-height: 2.1; }
.my-tok { display: inline; margin: 0 1px; padding: 1px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 4px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.my-tok:hover, .my-tok.on { background: rgba(79, 166, 255, .16); }
.my-tok.g-wind { border-bottom-color: rgba(79, 166, 255, .7); }
.my-tok.g-vis, .my-tok.g-rvr { border-bottom-color: rgba(46, 209, 155, .7); }
.my-tok.g-cloud { border-bottom-color: rgba(155, 140, 255, .8); }
.my-tok.g-wx { border-bottom-color: rgba(245, 166, 35, .8); }
.my-tok.g-temp, .my-tok.g-qnh { border-bottom-color: rgba(255, 107, 107, .7); }
/* 1 Kasım 2026: her grup tıklanabilir görünsün (trend, RMK, pist durumu, başlık grupları) */
.my-tok.g-trend { border-bottom-color: rgba(0, 210, 220, .8); }
.my-tok.g-rwy { border-bottom-color: rgba(46, 209, 155, .7); }
.my-tok.g-rmk, .my-tok.g-type, .my-tok.g-station, .my-tok.g-time, .my-tok.g-other { border-bottom: 2px dotted rgba(200, 215, 235, .5); }
.my-explain { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--hb-amber); border-radius: 6px; background: rgba(245, 166, 35, .08); color: #f2f7ff; font-size: .92rem; }
.my-decoded { margin-top: 12px; }
.my-decoded .mt-row { grid-template-columns: 170px 1fr; }
.my-gloss-w { display: inline-block; margin-left: 6px; font-size: .8rem; font-weight: 500; color: var(--hb-muted, #93aec6); }
.my-gloss { color: #7cc4ff; text-decoration: none; border-bottom: 1px dotted rgba(124, 196, 255, .6); margin-left: 4px; white-space: nowrap; }
.my-gloss:hover { color: #fff; border-bottom-style: solid; }

/* Pist / rüzgâr */
.my-rwy-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.my-dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#myDial { width: 100%; max-width: 250px; height: auto; }
#myDial .d-ring { fill: rgba(2, 16, 32, .6); stroke: rgba(140, 180, 220, .35); stroke-width: 1.5; }
#myDial .d-tick { stroke: rgba(140, 180, 220, .5); stroke-width: 1.2; }
#myDial .d-card { fill: var(--hb-muted); font: 800 11px 'Manrope', sans-serif; text-anchor: middle; }
#myDial .d-rwy { stroke: #cfdceb; stroke-width: 8; stroke-linecap: butt; opacity: .85; }
#myDial .d-lbl { fill: #fff; font: 700 9px 'JetBrains Mono', monospace; text-anchor: middle; }
#myDial .d-wind { stroke: var(--hb-amber); stroke-width: 3; }
#myDial .d-wind-h { fill: var(--hb-amber); }
#myDial .d-wtxt { fill: var(--hb-amber); font: 700 11px 'JetBrains Mono', monospace; text-anchor: middle; }
.my-wind-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.my-wind-in label { display: flex; flex-direction: column; gap: 4px; color: var(--hb-muted); font-size: .7rem; font-weight: 700; }
.my-wind-in input, .my-filter { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: rgba(2, 16, 32, .6); color: #fff; font: 600 .95rem 'JetBrains Mono', monospace; }
.my-wind-in input:focus, .my-filter:focus { outline: none; border-color: var(--hb-blue-light); }
.my-best { margin-bottom: 10px; padding: 10px 14px; border: 1px solid rgba(46, 209, 155, .35); border-radius: 8px; background: rgba(46, 209, 155, .08); color: #eaf3ff; font-size: .92rem; }
.my-best i { color: var(--hb-green); }
.my-table-wrap { overflow-x: auto; }
.my-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.my-table th { padding: 8px 10px; border-bottom: 1px solid var(--hb-border-soft); color: var(--hb-muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.my-table td { padding: 8px 10px; border-bottom: 1px dashed var(--hb-border); color: #eaf3ff; white-space: nowrap; }
.my-table td small { color: var(--hb-muted); }
.my-table tr.is-best td { background: rgba(46, 209, 155, .08); }
.my-pos { color: var(--hb-green); font-weight: 700; }
.my-neg { color: var(--hb-red); font-weight: 700; }

.my-near { margin: 0; padding: 0; list-style: none; }
.my-near a { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--hb-border); color: #eaf3ff; }
.my-near li:last-child a { border-bottom: 0; }
.my-near a:hover { color: #fff; background: rgba(79, 166, 255, .08); }
.my-near b { color: var(--hb-blue-light); }
.my-near span { overflow: hidden; font-size: .9rem; white-space: nowrap; text-overflow: ellipsis; }
.my-near small { color: var(--hb-muted); font-weight: 700; }

.my-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.my-disclaimer { margin: 14px 0 0; color: var(--hb-muted-soft); font-size: .8rem; }

/* Liste (hub) */
.my-filter { height: 48px; font-family: 'Manrope', system-ui, sans-serif; font-size: 1rem; }
.my-group { margin-bottom: 22px; }
.my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.my-item { display: grid; grid-template-columns: 56px 1fr; gap: 0 10px; padding: 12px 14px; border: 1px solid var(--hb-border); border-radius: 10px; background: var(--hb-card-soft); color: #eaf3ff; transition: border-color .15s, transform .15s; }
.my-item:hover { border-color: var(--hb-blue-light); color: #fff; transform: translateY(-2px); }
.my-item b { grid-row: span 2; align-self: center; color: var(--hb-blue-light); font-size: 1rem; }
.my-item span { overflow: hidden; font-weight: 700; font-size: .92rem; white-space: nowrap; text-overflow: ellipsis; }
.my-item small { color: var(--hb-muted); font-size: .76rem; }
.my-item[hidden], .my-group[hidden] { display: none; }
.my-empty { color: var(--hb-muted); }
.my-empty a, .my-disclaimer a { color: var(--hb-blue-light); }

@media (max-width: 767px) {
    .my-rwy-grid { grid-template-columns: 1fr; }
    .my-decoded .mt-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 575px) {
    .my-facts span { min-width: 0; flex: 1 1 28%; }
    .my-cta .home-btn { flex: 1 1 100%; }
    .my-table { font-size: .84rem; }
}

/* ---- METAR Antrenörü ---- */
.ma-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-stats span { display: flex; flex-direction: column; min-width: 110px; padding: 8px 12px; border: 1px solid var(--hb-border); border-radius: 8px; background: rgba(2, 16, 32, .45); }
.ma-stats small { color: var(--hb-muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ma-stats b { color: #fff; font: 800 1.15rem 'Manrope', sans-serif; }
.ma-modes { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--hb-border); border-radius: 9px; background: rgba(2, 16, 32, .5); }
.ma-modes button { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--hb-muted); font-size: .86rem; font-weight: 700; }
.ma-modes button.on { background: var(--hb-blue); color: #fff; }
.ma-modes button:not(.on):hover { color: #fff; }
.ma-pick { margin-bottom: 14px; }
.ma-pick select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: #0a2038; color: #fff; font-weight: 600; }
.ma-code { display: flex; gap: 8px; margin-bottom: 14px; }
.ma-code input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: #0a2038; color: #fff; font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }
.ma-code input::placeholder { text-transform: none; letter-spacing: 0; font: 500 14px/1 inherit; color: var(--hb-muted); }
.ma-code button { flex: none; height: 42px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--hb-blue); color: #fff; font-weight: 700; white-space: nowrap; }
.ma-code-err { margin: -6px 0 14px; color: #ffb4a8; font-size: .88rem; }
.ma-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--hb-muted); font-size: .9rem; }
.ma-head b { color: #fff; font-size: 1.2rem; margin-right: 6px; }
.ma-q { margin-top: 16px; }
.ma-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--hb-muted); font-size: .78rem; font-weight: 700; }
.ma-progress i { flex: 1; height: 6px; border-radius: 6px; background: rgba(140, 180, 220, .14); overflow: hidden; }
.ma-progress b { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--hb-blue-light); transition: width .3s; }
.ma-question { margin: 0 0 12px; color: #fff; font-size: 1.12rem !important; font-weight: 800; line-height: 1.4; }
.ma-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ma-opt { padding: 12px 14px; border: 1px solid var(--hb-border-soft); border-radius: 9px; background: rgba(2, 16, 32, .55); color: #eaf3ff; font-size: .93rem; font-weight: 600; text-align: left; transition: border-color .15s, background .15s; }
.ma-opt:hover:not(:disabled) { border-color: var(--hb-blue-light); background: rgba(79, 166, 255, .1); }
.ma-opt:disabled { cursor: default; opacity: .75; }
.ma-opt.ok { border-color: var(--hb-green); background: rgba(46, 209, 155, .14); color: #fff; opacity: 1; }
.ma-opt.bad { border-color: var(--hb-red); background: rgba(255, 107, 107, .12); color: #fff; opacity: 1; }
.ma-feedback { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .92rem; line-height: 1.55; }
.ma-feedback.ok { border: 1px solid rgba(46, 209, 155, .4); background: rgba(46, 209, 155, .08); color: #e6fff5; }
.ma-feedback.ok i { color: var(--hb-green); }
.ma-feedback.bad { border: 1px solid rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .08); color: #ffecec; }
.ma-feedback.bad i { color: var(--hb-red); }
.ma-next { margin-top: 12px; }
.ma-done { margin-top: 16px; }
.ma-guide td { white-space: normal; }
.ma-guide td:first-child { white-space: nowrap; }
.ma-page code { color: #eaf3ff; background: rgba(2, 16, 32, .6); padding: 2px 6px; border-radius: 4px; white-space: normal; }
.my-note a { color: var(--hb-blue-light); }
@media (max-width: 575px) {
    .ma-opts { grid-template-columns: 1fr; }
    .ma-stats span { min-width: 0; flex: 1 1 30%; }
}
/* [hidden] her zaman gizlesin (.mt-status gibi display:flex kuralları hidden'ı eziyordu) */
.my-page [hidden] { display: none !important; }

/* ==========================================================================
   Mobil dokunma ergonomisi — 30 Eylül 2026
   METAR Antrenörü (metar-antrenor.php) ve meydan sayfaları için ortak.
   Dokunma hedefleri 48px, seçim kutusu 16px yazı (iOS otomatik yakınlaştırma
   engeli) ve "METAR nasıl okunur" rehber tablosu dar ekranda kart görünümü.
   ========================================================================== */
.my-link-btn, .my-refresh { min-height: 40px; }

@media (max-width: 575.98px) {
    /* --- Kontroller --- */
    .ma-pick select { height: 48px; font-size: 16px; padding: 0 12px; }
    .ma-modes { flex-wrap: nowrap; }
    .ma-modes button { min-height: 48px; padding: 8px 6px; font-size: .8rem; }
    .ma-opt { min-height: 52px; font-size: .95rem; }
    .my-link-btn, .my-refresh { min-height: 44px; padding: 8px 14px; }
    .my-cta .home-btn, .ma-next { min-height: 48px; width: 100%; justify-content: center; }

    /* --- Rehber tablosu (Grup / Anlamı) → kart görünümü --- */
    .ma-guide, .ma-guide tbody { display: block; width: 100%; }
    .ma-guide thead { display: none; }
    .ma-guide tr {
        display: block; margin-bottom: 8px; padding: 10px 12px;
        border: 1px solid var(--hb-border); border-radius: 10px;
        background: rgba(2, 16, 32, .45);
    }
    .ma-guide td { display: block; padding: 2px 0; border-bottom: 0; white-space: normal; }
    .ma-guide td:first-child { margin-bottom: 4px; white-space: normal; }
    .ma-guide td:last-child { color: var(--hb-muted); font-size: .86rem; line-height: 1.6; }
}

/* 2 Kasım 2026: dar ekranda pist rüzgârı bölümü ve bilgi kutuları sağdan taşıyordu (ızgara öğeleri içerik genişliğine uzuyordu) */
.my-rwy-grid > * { min-width: 0; }
@media (max-width: 767px) { .my-rwy-grid { grid-template-columns: minmax(0, 1fr); } }
.my-facts span { min-width: 0; max-width: 100%; }
.my-facts b { overflow-wrap: anywhere; }
.my-wind-in label { min-width: 0; }
.my-dial-wrap svg { max-width: 100%; height: auto; }
@media (max-width: 575px) { .my-table th, .my-table td { padding: 6px 6px; font-size: .82rem; } }
.my-tok.sel { background: rgba(79, 166, 255, .3); }
