/* ATIS Simülatörü (26 Eylül 2026) — sim.css üzerine, koyu tema. Tüm sınıflar at- önekli. */
.at-app, .at-dz, .at-mplayer { --at-bd: rgba(140,180,220,.2); --at-bd2: rgba(140,180,220,.32); --at-mu: #93aec6; --at-green: #2ed19b; --at-amber: #f5a623; --at-red: #ff6b6b; --at-violet: #9b8cff; --at-blue: #2f8bf5; --at-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.at-app { color: #eaf3ff; }
.at-app *, .at-dz *, .at-mplayer * { box-sizing: border-box; }
.at-app [hidden] { display: none !important; }
.at-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid rgba(245,166,35,.35); border-radius: 10px; background: rgba(245,166,35,.07); font-size: .86rem; color: #f3e3c4; margin: 0 0 16px; }
.at-warn a { color: var(--at-amber); text-decoration: underline; white-space: nowrap; cursor: pointer; }
.at-card { border: 1px solid var(--at-bd); border-radius: 14px; background: rgba(10,32,56,.55); padding: 20px; margin: 0 0 16px; }
.at-card h2, .at-acc > summary { font-size: 1.08rem; font-weight: 800; margin: 0 0 12px; color: #fff; }
.at-mu { color: var(--at-mu); } .at-small { font-size: .84rem; }
.at-acc { border: 1px solid var(--at-bd); border-radius: 14px; background: rgba(10,32,56,.55); margin: 0 0 16px; }
.at-acc > summary { list-style: none; cursor: pointer; padding: 16px 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.at-acc > summary::-webkit-details-marker { display: none; }
.at-acc > summary::after { content: '▾'; margin-left: auto; color: var(--at-mu); transition: transform .2s; }
.at-acc[open] > summary::after { transform: rotate(180deg); }
.at-acc > summary .at-sum { flex: 0 1 auto; min-width: 0; font: 600 .78rem var(--at-mono); color: var(--at-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-acc > .at-in { padding: 0 20px 20px; }
.at-sub { border: 1px solid var(--at-bd); border-radius: 10px; margin-top: 12px; background: rgba(2,16,32,.35); }
.at-sub > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-weight: 800; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.at-sub > summary::-webkit-details-marker { display: none; }
.at-sub > summary::after { content: '▾'; margin-left: auto; color: var(--at-mu); }
.at-sub[open] > summary::after { transform: rotate(180deg); }
.at-sub > .at-in { padding: 0 14px 14px; }
.at-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.2fr 1fr; gap: 10px; }
.at-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--at-mu); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.at-app select, .at-app input[type=text] { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--at-bd2); border-radius: 7px; background: #0a2038; color: #fff; font: 600 .92rem var(--at-mono); }
.at-app select:disabled { opacity: .55; }
.at-ro { height: 40px; display: flex; align-items: center; padding: 0 10px; border: 1px dashed var(--at-bd2); border-radius: 7px; color: #fff; font: 600 .9rem var(--at-mono); text-transform: none; letter-spacing: 0; }
.at-sw { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(245,166,35,.35); border-radius: 10px; background: rgba(245,166,35,.07); font-size: .88rem; cursor: pointer; margin: 14px 0 0; }
.at-sw input { width: 20px; height: 20px; accent-color: var(--at-amber); flex: none; }
.at-evs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.at-ev { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--at-bd2); border-radius: 999px; font-size: .82rem; cursor: pointer; user-select: none; margin: 0; }
.at-ev input { accent-color: var(--at-amber); }
.at-ev.on { border-color: var(--at-amber); background: rgba(245,166,35,.1); }
.at-ev.auto { border-color: var(--at-violet); background: rgba(155,140,255,.14); }
.at-ev.auto::after { content: 'otomatik'; font-size: .62rem; font-weight: 800; color: var(--at-violet); letter-spacing: .04em; }
.at-ev.na { opacity: .45; }
.at-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.at-b { min-height: 44px; height: auto; padding: 8px 16px; line-height: 1.25; white-space: normal; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid var(--at-blue); background: var(--at-blue); color: #fff; font-weight: 800; cursor: pointer; }
.at-b.o { background: transparent; border-color: var(--at-bd2); color: #dbe9f6; }
.at-b.g { background: var(--at-green); border-color: var(--at-green); color: #03211a; }
.at-b[aria-pressed=true] { border-color: var(--at-amber); color: var(--at-amber); }
.at-b:focus-visible, .at-ev:focus-within { outline: 2px solid #9fd0ff; outline-offset: 2px; }
.at-metar { font: 500 .92rem var(--at-mono); color: #cfe1f3; background: #020d19; border: 1px solid var(--at-bd); border-left: 3px solid #4fa6ff; border-radius: 8px; padding: 10px 12px; word-break: break-word; }
.at-src { font-size: .78rem; color: var(--at-mu); margin: 14px 0 6px; }
.at-note { font-size: .84rem; border-left: 3px solid var(--at-violet); padding: 8px 12px; background: rgba(155,140,255,.08); border-radius: 6px; margin: 12px 0 0; }
.at-radio { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--at-bd); border-radius: 12px; background: #020d19; margin-bottom: 12px; }
.at-radio .fq { font: 700 1.3rem var(--at-mono); color: var(--at-green); }
.at-radio .fq.muted { font-size: .85rem; color: var(--at-mu); }
.at-radio .nm { font: 700 .9rem var(--at-mono); color: #dbe9f6; }
.at-radio .ltr { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(245,166,35,.15); color: var(--at-amber); font: 800 1.7rem var(--at-mono); }
.at-bars { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.at-bars i { width: 4px; background: var(--at-green); border-radius: 2px; height: 4px; transition: height .1s; }
.at-atis { display: flex; flex-direction: column; gap: 6px; }
.at-sent { padding: 8px 12px; border-radius: 8px; background: rgba(2,16,32,.55); border: 1px solid var(--at-bd); }
.at-sent .en { font: 500 .95rem var(--at-mono); color: #f2f7ff; }
.at-sent .tr { font-size: .86rem; color: var(--at-mu); margin-top: 3px; }
.at-sent .tr::before { content: 'TR · '; font-weight: 800; color: #6d8aa3; font-size: .72rem; }
html[lang="en"] .at-sent .tr::before { content: 'NOTE · '; } /* 30 Ekim 2026: İngilizce sayfada açıklama İngilizce */
.at-sent.now { border-color: var(--at-green); background: rgba(46,209,155,.08); }
.at-sent.ev1 { border-left: 3px solid var(--at-amber); }
.at-sent.ev2 { border-left: 3px solid var(--at-violet); }
.at-hide .en { filter: blur(6px); user-select: none; }
.at-flash { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(46,209,155,.4); background: rgba(46,209,155,.08); font-size: .86rem; }
.at-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.at-pad .ok { border-color: var(--at-green) !important; background: rgba(46,209,155,.1) !important; }
.at-pad .bad { border-color: var(--at-red) !important; background: rgba(255,107,107,.1) !important; }
.at-pad small { display: block; color: var(--at-green); font: 600 .75rem var(--at-mono); min-height: 1em; text-transform: none; letter-spacing: 0; }
.at-pad .bad + small { color: #ffb3b3; }
.at-f.na { opacity: .5; }
.at-res { margin-top: 12px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--at-bd2); }
.at-save { margin-top: 6px; font-size: .84rem; color: var(--at-mu); }
.at-save a { color: #7cc0ff; }
.at-hist { margin: 12px 0 0; padding: 0; list-style: none; font: 500 .82rem var(--at-mono); color: #cfe1f3; }
.at-hist li { padding: 4px 0; border-bottom: 1px dashed var(--at-bd); }
.at-mplayer { display: none; }
/* İlk giriş uyarısı */
.at-dz { position: fixed; inset: 0; z-index: 2000; background: rgba(1,8,16,.82); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.at-dz[hidden] { display: none; }
.at-dz-box { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border: 1px solid rgba(245,166,35,.45); border-radius: 14px; background: #071a2e; box-shadow: 0 24px 60px rgba(0,0,0,.6); color: #eaf3ff; }
.at-dz-h { padding: 18px 20px 10px; font-weight: 800; font-size: 1.1rem; display: flex; gap: 10px; align-items: center; margin: 0; }
.at-dz-h span { color: #f5a623; }
.at-dz-b { padding: 0 20px; overflow-y: auto; font-size: .9rem; line-height: 1.65; color: #dbe9f6; }
.at-dz-b ul { padding-left: 1.1rem; } .at-dz-b li { margin: 6px 0; } .at-dz-b b { color: #fff; }
.at-dz-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px 18px; border-top: 1px solid rgba(140,180,220,.2); margin-top: 10px; }
.at-dz .at-b { height: 44px; }
@media (max-width: 560px) { .at-dz-f { flex-direction: column-reverse; } .at-dz-f .at-b { width: 100%; } }
@media (max-width: 991px) { .at-row { grid-template-columns: 1fr 1fr; } .at-row > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .at-acc > summary { padding: 14px 16px; font-size: .98rem; } .at-acc > .at-in { padding: 0 16px 16px; }
  .at-card { padding: 16px; }
  .at-row { grid-template-columns: 1fr; }
  .at-pad { grid-template-columns: 1fr 1fr; }
  .at-radio { grid-template-columns: auto 1fr; } .at-radio .at-bars { display: none; }
  .at-btns .at-b { flex: 1 1 calc(50% - 8px); }
  .at-mplayer { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; gap: 8px; align-items: center; padding: 10px 12px; background: rgba(3,14,27,.96); border-top: 1px solid rgba(140,180,220,.32); backdrop-filter: blur(6px); }
  .at-mplayer .ml { font: 800 1.2rem 'IBM Plex Mono', monospace; color: #f5a623; width: 38px; text-align: center; }
  .at-mplayer .mi { flex: 1; min-width: 0; font: 600 .78rem 'IBM Plex Mono', monospace; color: #dbe9f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .at-mplayer .at-b { min-height: 40px; padding: 0 14px; flex: none; }
  .at-btns .at-b { font-size: .88rem; padding: 8px 10px; }
  body.at-has-mplayer { padding-bottom: 70px; }
}
/* "Kısaca" kutusu — açılır/kapanır (27 Eylül 2026) */
.sim-answer-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sim-answer-acc > summary::-webkit-details-marker { display: none; }
.sim-answer-acc > summary::after { content: '▾'; margin-left: auto; color: #93aec6; transition: transform .2s; }
.sim-answer-acc[open] > summary::after { transform: rotate(180deg); }
.sim-answer-acc > p { margin: 10px 0 0; }

/* ==========================================================================
   Mobil dokunma ergonomisi — 30 Eylül 2026
   Seçim kutuları ve butonlar parmakla rahat kullanılacak boyuta çıkarıldı.
   16px yazı boyutu iOS Safari'nin odaklanınca yaptığı otomatik yakınlaştırmayı
   engeller. Seçiciler .at-app ile kapsandığı için üstteki kurallardan daha
   özeldir; dosya sırasından bağımsız kazanır.
   ========================================================================== */
@media (max-width: 575.98px) {
  /* 1) Form girişleri: 48px yükseklik + 16px yazı */
  .at-app .at-f select,
  .at-app .at-f input[type=text],
  .at-app .at-pad input[type=text] { height: 48px; font-size: 16px; padding: 0 12px; }
  .at-app .at-f .at-ro { height: 48px; font-size: 15px; }
  .at-app .at-f { font-size: .74rem; }

  /* 2) Butonlar tam genişlik ve 48px — .at-btns içindeki ikili gruplar alt alta */
  .at-app .at-btns { gap: 10px; }
  .at-app .at-btns .at-b { flex: 1 1 100%; min-height: 48px; font-size: .92rem; padding: 10px 14px; }

  /* 3) Olay çipleri ve anahtarı dokunma hedefine çıkar */
  .at-app .at-ev { min-height: 44px; padding: 8px 14px; }
  .at-app .at-sw { min-height: 52px; }
  .at-app .at-sw input { width: 24px; height: 24px; }

  /* 4) Akordiyon başlıkları ve alt akordiyon */
  .at-app .at-acc > summary { min-height: 56px; }
  .at-app .at-sub > summary { min-height: 48px; }

  /* 5) Not alma kâğıdı tek sütuna düşsün (2 sütunda alanlar çok dar kalıyordu) */
  .at-app .at-pad { grid-template-columns: 1fr; }

  /* 6) Ham METAR metni biraz daha okunaklı */
  .at-app .at-metar { font-size: .95rem; line-height: 1.75; padding: 12px 13px; }

  /* 7) Alt oynatıcı çubuğundaki butonlar da 44px */
  .at-mplayer .at-b { min-height: 44px; }
}
