/* ==========================================================================
   Lock Screen
   --------------------------------------------------------------------------
   Styled to match https://aakash-sharma.vercel.app's lock screen (measured
   directly from its rendered DOM): the SHARP, unblurred wallpaper — no
   backdrop-filter or glass card anywhere — solid-white "SF Pro Rounded"
   time at 110px/800 weight with a plain drop-shadow, the date in the same
   rounded family directly below it, and a light, quiet unlock hint near the
   bottom. Weather/battery (requested separately, not present on that
   reference) are folded into a small plain-icon row so they don't
   reintroduce the card/blur look this reference deliberately doesn't use.
   ========================================================================== */

.lock-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 98000;               /* above every app surface, below boot */
    display: none;
    overflow: hidden;
    opacity: 0;
    --lock-progress: 0;
    transition: opacity 0.5s ease;
}

.lock-screen-overlay.active {
    display: block;
    opacity: 1;
}

.lock-screen-overlay.unlocking {
    opacity: 0;
    transition: opacity 0.5s ease 0.05s;
}

/* The current wallpaper, full sharpness — no blur/dim filter. */
.lock-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* A very light bottom-heavy gradient only — just enough to keep the hint
   and account text legible over a bright sky, not a heavy scrim. */
.lock-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.22) 100%);
}

.lock-rounded-font {
    font-family: 'SF Pro Rounded', -apple-system, ui-rounded, 'Inter', 'Helvetica Neue', sans-serif;
}

/* ── Top-right status row — plain icons, no card, no blur ───────────────── */
.lock-status-bar {
    position: absolute;
    top: 22px;
    right: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'SF Pro Text', -apple-system, system-ui, 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.lock-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lock-status-item i { font-size: 13px; }

#lock-battery-icon.fa-bolt { color: #34c759; }

/* ── Center: huge time, date directly beneath it ─────────────────────────
   Positioned in the upper third (padding-top), not vertically centered —
   matches the reference's actual placement rather than a generic "middle
   of the screen" layout. */
.lock-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 11vh 24px 6vh;
    cursor: grab;
    touch-action: none;
    will-change: transform;
}

.lock-content:active { cursor: grabbing; }

.lock-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.lock-time {
    font-size: clamp(64px, 9.5vw, 110px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.lock-time-ampm {
    font-size: 0.26em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.lock-date {
    margin-top: 6px;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ── Bottom: account + unlock hint ───────────────────────────────────────
   The reference has no avatar/account block (it unlocks with a bare click,
   no identity shown) — kept here since it was asked for separately, but
   sized down so it doesn't compete with the time for visual weight. */
.lock-content-spacer { flex: 1; }

.lock-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.lock-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lock-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-account-name {
    font-family: 'SF Pro Text', -apple-system, system-ui, 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lock-swipe-hint {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: 'SF Pro Text', -apple-system, system-ui, 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 6px 16px 2px;
    opacity: calc(1 - var(--lock-progress, 0) * 1.4);
}

.lock-swipe-hint i {
    font-size: 12px;
    opacity: 0.7;
    animation: lockChevronBounce 2.2s ease-in-out infinite;
}

@keyframes lockChevronBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.lock-swipe-hint:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .lock-status-bar { top: 16px; right: 16px; gap: 12px; font-size: 12px; }
    .lock-content { padding: 9vh 16px 5vh; }
    .lock-avatar { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .lock-swipe-hint i { animation: none; }
    .lock-screen-overlay, .lock-content { transition: none; }
}
