/* ============================================================
   Live Tracker — components.css'e eklenecek
   ============================================================ */

/* ── Overlay ── */
.lt-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ── Ekran ── */
.lt-screen {
    width: 100%;
    max-width: 430px;
    min-height: 80vh;
    background: var(--surface);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-top: 2px solid rgba(255,106,0,.3);
    padding: 0 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,.72,0,1);
}
.lt-screen-in  { transform: translateY(0); }
.lt-screen-out { transform: translateY(100%); }

/* ── Topbar ── */
.lt-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px;
}
.lt-topbar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.lt-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.lt-close-btn:hover { background: var(--border); color: var(--text); }

/* ── Büyük timer ── */
.lt-timer-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.lt-timer-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.lt-timer {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(72px, 22vw, 96px);
    color: var(--accent);
    line-height: 1;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(255,106,0,.3);
    transition: color .3s;
}
.lt-timer.paused { color: var(--score); }
.lt-status {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: .5px;
    transition: color .3s;
}

/* ── GPS satırı ── */
.lt-gps-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    width: 100%;
    margin-bottom: 12px;
    opacity: .4;
    transition: opacity .4s;
}
.lt-gps-cell {
    flex: 1;
    text-align: center;
}
.lt-gps-val {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    color: var(--cyan);
    line-height: 1;
}
.lt-gps-lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: .5px;
}
.lt-gps-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 16px;
}
.lt-gps-note {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* ── Kontroller ── */
.lt-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lt-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .15s, box-shadow .2s;
}
.lt-btn:active { transform: scale(.97); }

.lt-btn-start {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px rgba(255,106,0,.4);
}
.lt-btn-start:hover { box-shadow: 0 0 48px rgba(255,106,0,.55); }

.lt-btn-icon {
    font-size: 18px;
}

.lt-btn-pause {
    background: rgba(245,197,24,.1);
    border: 1px solid rgba(245,197,24,.3);
    color: var(--score);
    font-size: 18px;
}

.lt-btn-stop {
    background: rgba(232,64,64,.1);
    border: 1px solid rgba(232,64,64,.3);
    color: var(--health);
    font-size: 18px;
}

/* ── Alt not ── */
.lt-hint {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* ── FAB Seçim Menüsü ── */
.lt-fab-menu {
    position: fixed;
    bottom: 160px;
    right: max(16px, calc(50% - 215px + 16px));
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    animation: fadeUp .2s ease both;
}
.lt-fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px 10px 12px;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: border-color .2s, background .2s;
}
.lt-fab-item:hover {
    border-color: rgba(255,106,0,.4);
    background: var(--surface-alt);
}
.lt-fab-item-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.lt-fab-item-icon.accent { background: var(--accent); }
.lt-fab-item-icon.green  { background: var(--green);  }

/* FAB üzerinde aktif sürüş pulse göstergesi */
.lt-fab-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg);
    animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .4; transform: scale(.7); }
}
