/* ============================================================
   DIGITAL CLOCK — style.css
   Light mode default. Dark mode via [data-theme="dark"]
   ============================================================ */

.page-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.clock-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 3rem;
}

/* ── Clock Display ── */
.clock-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 4rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.8rem;
    position: relative;
    transition: background 0.3s ease;
}

.clock-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.2), transparent 60%);
    pointer-events: none;
}

#clock {
    font-family: var(--font-mono);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(79, 110, 247, 0.15);
}

/* ── Colon blink ── */
.colon {
    animation: blink 1s step-start infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Date ── */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

/* ── Seconds progress bar ── */
.seconds-bar-wrap {
    width: 280px;
    margin: 1.5rem auto 0;
    height: 4px;
    background: var(--surface2);
    border-radius: 999px;
    overflow: hidden;
}

.seconds-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #7b96ff);
    border-radius: 999px;
    transition: width 0.95s linear;
}