/* ===== Planet (Three.js) Clock Theme ===== */

/* Toolbar */
.pl-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
}

.pl-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted, #6b7280);
    letter-spacing: 0.02em;
    user-select: none;
}

.pl-switch {
    position: relative;
    width: 38px;
    height: 20px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pl-switch:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.6);
    outline-offset: 2px;
}

.pl-switch-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease,
                box-shadow 0.25s ease;
}

.pl-switch[aria-pressed="true"] {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.pl-switch[aria-pressed="true"] .pl-switch-thumb {
    transform: translateX(18px);
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* ===== Stage ===== */
body:has(.pl-stage) { background: #03050d; }

.pl-stage {
    position: fixed;
    inset: var(--header-height, 80px) 0 0 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at center, #0a0f1e 0%, #03050d 70%, #000 100%);
    overflow: hidden;
}

.pl-canvas {
    position: absolute;
    inset: 0;
}

/* ===== Readout (centered) ===== */
.pl-readout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.pl-time {
    font-family: "Menlo", "Monaco", "Consolas", "Courier New", monospace;
    font-size: clamp(44px, 6.5vw, 68px);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.08em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(0, 0, 0, 0.45);
}

.pl-date {
    margin-top: 6px;
    font-family: "Menlo", "Monaco", "Consolas", "Courier New", monospace;
    font-size: clamp(10px, 1.3vw, 13px);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Corner brackets */
.pl-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(56, 189, 248, 0.5);
    z-index: 3;
    pointer-events: none;
}
.pl-corner-tl { top: 12px;    left: 12px;    border-right: none;  border-bottom: none; }
.pl-corner-tr { top: 12px;    right: 12px;   border-left: none;   border-bottom: none; }
.pl-corner-bl { bottom: 12px; left: 12px;    border-right: none;  border-top: none; }
.pl-corner-br { bottom: 12px; right: 12px;   border-left: none;   border-top: none; }

@media (max-width: 640px) {
    .pl-toolbar { gap: 6px 12px; padding: 5px 10px; }
    .pl-toggle-label { font-size: 11px; }
}
