/* ===== Word Clock Theme ===== */

.wc-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);
}

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

.wc-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;
}

.wc-switch:focus-visible {
    outline: 2px solid rgba(168, 85, 247, 0.6);
    outline-offset: 2px;
}

.wc-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;
}

.wc-switch[aria-pressed="true"] {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.wc-switch[aria-pressed="true"] .wc-switch-thumb {
    transform: translateX(18px);
    background: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

/* ===== Stage ===== */
.wc-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 20px;
}

.wc-grid {
    --cell: clamp(18px, 3.6vw, 34px);
    --gap: 4px;

    display: grid;
    grid-template-columns: repeat(12, var(--cell));
    grid-template-rows: repeat(11, var(--cell));
    gap: var(--gap);
    padding: 18px;
    border-radius: 16px;
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 18px 40px -20px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(168, 85, 247, 0.05);
    backdrop-filter: blur(8px);
}

.wc-cell {
    width: var(--cell);
    height: var(--cell);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Menlo", "Monaco", "Consolas", monospace;
    font-weight: 600;
    font-size: calc(var(--cell) * 0.5);
    color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    transition:
        color 320ms ease,
        background-color 320ms ease,
        border-color 320ms ease,
        box-shadow 320ms ease,
        transform 320ms ease;
}

.wc-cell.space {
    background: transparent;
    border-color: transparent;
}

.wc-cell.on {
    color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85) 0%, rgba(192, 132, 252, 0.85) 60%, rgba(232, 121, 249, 0.85) 100%);
    border-color: rgba(232, 121, 249, 0.5);
    box-shadow:
        0 0 8px rgba(168, 85, 247, 0.55),
        0 0 18px rgba(192, 132, 252, 0.35),
        inset 0 0 6px rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

.wc-readout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(13px, 1.6vw, 16px);
    letter-spacing: 0.12em;
    color: rgba(232, 221, 248, 0.85);
    text-transform: uppercase;
    text-align: center;
    min-height: 1.4em;
    transition: opacity 320ms ease;
}

@media (max-width: 640px) {
    .wc-grid {
        --cell: clamp(13px, 6.5vw, 20px);
        --gap: 3px;
        padding: 10px;
    }
    .wc-toolbar { gap: 6px 12px; padding: 5px 10px; }
    .wc-toggle-label { font-size: 11px; }
}