/* ==========================================================================
   Uçuş Saati Hesap Makinesi (flight-time.php) — 28 Eylül 2026.
   home.css'in --hb-* değişkenlerini kullanır (nav-home içinde). Kapsam:
   yalnızca .ft-page altına yazılmıştır, başka sayfayı etkilemez.
   ========================================================================== */

.ft-hero { padding-bottom: 28px; }
.ft-container { max-width: 880px; }

.ft-body-sec { padding: 0 0 60px; }

/* ---- Sekmeler ---- */
.ft-tabs { display: flex; gap: 22px; margin: 4px 0 20px; border-bottom: 1px solid var(--hb-border); }
.ft-tab-btn { appearance: none; border: 0; background: transparent; color: var(--hb-muted); font: 700 .85rem 'Manrope', sans-serif; padding: 10px 2px; cursor: pointer; position: relative; letter-spacing: .01em; }
.ft-tab-btn:hover { color: #dbe9f6; }
.ft-tab-btn.active { color: #fff; }
.ft-tab-btn.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--hb-blue-light); border-radius: 2px; }
.ft-tab-panel { display: none; }
.ft-tab-panel.active { display: block; animation: ft-fadein .25s ease; }
@keyframes ft-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- Kart (wx-card zaten home.css'te tanımlı; sadece iç düzen burada) ---- */
.ft-card-head { color: #cfe2f2; }
.ft-hint { color: var(--hb-muted-soft); font-size: .72rem; }
.ft-card-body { padding: 18px; }

/* ---- Uçuş süresi satırları ---- */
.ft-row-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ft-row { display: grid; grid-template-columns: 1fr 104px 32px; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--hb-border); border-radius: 9px; background: rgba(2, 16, 32, .4); }
.ft-row-note { grid-column: 1; width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: rgba(2, 16, 32, .6); color: #fff; font: 600 .85rem 'Manrope', sans-serif; }
.ft-row-note::placeholder { color: #5d7a93; }
.ft-time-input { grid-column: 2; }
.ft-row-time { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--hb-border-soft); border-radius: 7px; background: rgba(2, 16, 32, .6); color: #fff; font: 700 1rem var(--hb-mono); letter-spacing: .04em; text-align: center; }
.ft-row-note:focus, .ft-row-time:focus { outline: none; border-color: var(--hb-blue-light); box-shadow: 0 0 0 3px rgba(79, 166, 255, .18); }
.ft-row-time.invalid { border-color: var(--hb-red); box-shadow: 0 0 0 3px rgba(255, 107, 107, .15); }
.ft-row-del { grid-column: 3; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--hb-muted-soft); cursor: pointer; font-size: .95rem; }
.ft-row-del:hover { color: var(--hb-red); background: rgba(255, 107, 107, .1); }

.ft-add-row-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px dashed var(--hb-border-soft); border-radius: 8px; background: rgba(2, 16, 32, .3); color: var(--hb-muted); font: 700 .8rem 'Manrope', sans-serif; cursor: pointer; }
.ft-add-row-btn:hover { color: #fff; border-color: var(--hb-blue-light); background: rgba(2, 16, 32, .55); }

.ft-total-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--hb-border-soft); border-radius: 12px; background: rgba(10, 32, 56, .8); }
.ft-total-label { color: var(--hb-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ft-total-value { font: 800 2rem var(--hb-mono); color: #f7fbff; letter-spacing: .02em; }
.ft-total-value .unit { font-size: 1rem; color: var(--hb-muted); font-weight: 700; margin-left: 6px; }
.ft-total-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 700; font-size: .85rem; white-space: nowrap; cursor: pointer; border: 1px solid transparent; }
.ft-btn-primary { color: #fff; background: var(--hb-blue); border-color: var(--hb-blue); box-shadow: 0 9px 24px rgba(47, 139, 245, .28); }
.ft-btn-primary:hover:not(:disabled) { background: #2679da; transform: translateY(-1px); }
.ft-btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ft-btn-outline { color: #eaf3ff; background: rgba(2, 16, 32, .35); border-color: rgba(148, 178, 205, .4); }
.ft-btn-outline:hover { color: #fff; border-color: #8fb8dd; background: rgba(2, 16, 32, .6); }

.ft-save-note { margin-top: 10px; color: var(--hb-muted-soft); font-size: .78rem; text-align: right; }
.ft-save-note.ok { color: var(--hb-green); }
.ft-save-note.err { color: var(--hb-red); }
.ft-save-note a { color: var(--hb-blue-light); font-weight: 700; }

.ft-spin { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ft-spin .7s linear infinite; vertical-align: -2px; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* ---- Kayıtlı toplamlar ---- */
.ft-log-section { margin-top: 24px; }
.ft-log-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 800 .8rem 'Manrope', sans-serif; color: var(--hb-muted); letter-spacing: .06em; text-transform: uppercase; }
.ft-log-list { display: flex; flex-direction: column; gap: 8px; }
.ft-log-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--hb-border); border-radius: 9px; background: rgba(2, 16, 32, .4); transition: opacity .15s ease; }
.ft-li-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ft-li-time { font: 800 1.1rem var(--hb-mono); color: var(--hb-green); flex: 0 0 auto; }
.ft-li-meta { display: flex; flex-direction: column; min-width: 0; }
.ft-li-note { color: #dce9f5; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.ft-li-date { color: var(--hb-muted-soft); font-size: .68rem; }
.ft-li-del { background: transparent; border: 0; color: var(--hb-muted-soft); cursor: pointer; width: 32px; height: 32px; border-radius: 6px; flex: 0 0 auto; }
.ft-li-del:hover { color: var(--hb-red); background: rgba(255, 107, 107, .1); }
.ft-log-empty { padding: 22px; text-align: center; color: var(--hb-muted-soft); font-size: .82rem; border: 1px dashed var(--hb-border); border-radius: 10px; }
.ft-log-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hb-border); }
.ft-log-grand { color: var(--hb-muted); font-size: .78rem; }
.ft-log-grand b { color: #fff; font: 800 1rem var(--hb-mono); margin-left: 6px; }

/* ---- Birim çevirici ---- */
.ft-conv-groups { display: flex; flex-direction: column; gap: 14px; }
.ft-conv-group { border: 1px solid var(--hb-border); border-radius: 11px; background: rgba(2, 16, 32, .35); overflow: hidden; }
.ft-conv-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font: 700 .82rem 'Manrope', sans-serif; color: #dbe9f6; }
.ft-conv-group summary::-webkit-details-marker { display: none; }
.ft-conv-group summary .cg-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; font-size: .85rem; flex: 0 0 auto; }
.ft-conv-group summary .chev { margin-left: auto; color: var(--hb-muted-soft); transition: transform .2s ease; font-size: .8rem; }
.ft-conv-group[open] summary .chev { transform: rotate(180deg); }
.ft-conv-group[open] summary { border-bottom: 1px solid var(--hb-border); }
.cg-blue .cg-icon { background: rgba(47, 139, 245, .16); color: var(--hb-blue-light); }
.cg-green .cg-icon { background: rgba(46, 209, 155, .16); color: var(--hb-green); }
.cg-amber .cg-icon { background: rgba(245, 166, 35, .16); color: var(--hb-amber); }
.cg-violet .cg-icon { background: rgba(155, 140, 255, .16); color: var(--hb-violet); }
.cg-red .cg-icon { background: rgba(255, 107, 107, .16); color: var(--hb-red); }

.ft-conv-body { padding: 16px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.ft-conv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ft-conv-field label { color: var(--hb-muted-soft); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ft-in-wrap { display: flex; border: 1px solid var(--hb-border-soft); border-radius: 8px; overflow: hidden; background: rgba(2, 16, 32, .6); }
.ft-in-wrap input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; background: transparent; color: #fff; font: 700 .95rem var(--hb-mono); }
.ft-in-wrap input:focus { outline: none; }
.ft-in-wrap:focus-within { box-shadow: 0 0 0 3px rgba(79, 166, 255, .18); border-color: var(--hb-blue-light); }
.ft-in-wrap select { border: 0; border-left: 1px solid var(--hb-border); background: rgba(10, 32, 56, .9); color: #cfe2f2; font: 700 .74rem 'Manrope', sans-serif; padding: 0 8px; }
.ft-conv-swap { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hb-border-soft); background: rgba(2, 16, 32, .5); color: var(--hb-muted); cursor: pointer; margin-bottom: 3px; flex: 0 0 auto; }
.ft-conv-swap:hover { color: #fff; border-color: var(--hb-blue-light); }
.ft-conv-arrow { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 3px; color: var(--hb-muted-soft); opacity: .5; }
.ft-conv-sub { padding: 0 16px 16px; }
.ft-conv-sub .ft-conv-body { padding: 14px 0 0; border-top: 1px dashed var(--hb-border); margin-top: 4px; }

.ft-foot-note { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--hb-border); border-radius: 10px; background: rgba(2, 16, 32, .3); color: var(--hb-muted-soft); font-size: .76rem; line-height: 1.6; }

@media (max-width: 600px) {
    .ft-row { grid-template-columns: 1fr 92px 28px; }
    .ft-conv-body { grid-template-columns: 1fr; }
    .ft-conv-swap { justify-self: center; transform: rotate(90deg); margin: 2px 0; }
    .ft-conv-arrow { justify-self: center; transform: rotate(90deg); }
    .ft-total-value { font-size: 1.6rem; }
    .ft-li-note { max-width: 180px; }
}

/* ==========================================================================
   Mobil dokunma ergonomisi — 30 Eylül 2026
   Uçuş süresi satırı telefonda iki kademeye ayrılır (not üstte tam genişlik,
   süre + sil altta), tüm girişler 48px/16px olur (16px, iOS Safari'nin
   odaklanınca yaptığı otomatik yakınlaştırmayı engeller) ve eylem butonları
   tam genişliğe geçer. Seçiciler .ft-page ile kapsanarak üstteki kurallardan
   daha özel yapıldı.
   ========================================================================== */
@media (max-width: 575.98px) {
    /* --- Sekmeler --- */
    .ft-page .ft-tabs { gap: 14px; }
    .ft-page .ft-tab-btn { flex: 1 1 0; min-height: 48px; font-size: .92rem; }

    /* --- Uçuş süresi satırları: not üstte, süre + sil altta --- */
    .ft-page .ft-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; padding: 10px; }
    .ft-page .ft-row-note { grid-column: 1 / -1; height: 48px; font-size: 16px; }
    .ft-page .ft-time-input { grid-column: 1; }
    .ft-page .ft-row-time { height: 48px; font-size: 18px; }
    .ft-page .ft-row-del { grid-column: 2; width: 48px; height: 48px; font-size: 1.1rem; }

    .ft-page .ft-add-row-btn { width: 100%; min-height: 48px; justify-content: center; font-size: .9rem; }

    /* --- Toplam çubuğu ve eylemler --- */
    .ft-page .ft-total-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
    .ft-page .ft-total-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ft-page .ft-btn { width: 100%; height: 48px; font-size: .9rem; }
    .ft-page .ft-save-note { text-align: left; }

    /* --- Kayıtlı toplamlar --- */
    .ft-page .ft-li-del { width: 44px; height: 44px; }
    .ft-page .ft-li-note { max-width: none; white-space: normal; }
    .ft-page .ft-log-item { align-items: flex-start; }

    /* --- Birim çevirici --- */
    .ft-page .ft-conv-group summary { min-height: 52px; padding: 14px 16px; }
    .ft-page .ft-in-wrap input { height: 48px; font-size: 16px; padding: 0 12px; }
    .ft-page .ft-in-wrap select { min-height: 48px; font-size: .82rem; padding: 0 10px; }
    .ft-page .ft-conv-swap { width: 44px; height: 44px; }
    .ft-page .ft-conv-arrow { height: 28px; }
}
