/* Online Alarm Clock Styles */

.alarm-grid-bg {
    background-image: radial-gradient(rgba(244, 63, 94, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.dark .alarm-grid-bg {
    background-image: radial-gradient(rgba(244, 63, 94, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.alarm-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: rgb(71 85 105);
}

.dark .alarm-label {
    color: rgb(203 213 225);
}

.alarm-input,
.alarm-select {
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.8);
    color: rgb(15 23 42);
    transition: all 0.15s ease-in-out;
}

.dark .alarm-input,
.dark .alarm-select {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: rgb(241 245 249);
}

.alarm-input:focus,
.alarm-select:focus {
    outline: none;
    border-color: rgb(244, 63, 94);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.alarm-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(241, 245, 249, 0.9);
    color: rgb(51 65 85);
    border: 1px solid rgba(203, 213, 225, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dark .alarm-chip {
    background: rgba(30, 41, 59, 0.7);
    color: rgb(203, 213, 225);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.alarm-chip:hover {
    background: rgba(244, 63, 94, 0.15);
    color: rgb(225, 29, 72);
    border-color: rgba(244, 63, 94, 0.3);
}

.dark .alarm-chip:hover {
    background: rgba(244, 63, 94, 0.2);
    color: rgb(251, 113, 133);
    border-color: rgba(244, 63, 94, 0.4);
}

.alarm-period-btn {
    padding: 0.625rem 0.875rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(241, 245, 249, 0.7);
    color: rgb(100 116 139);
    transition: all 0.15s ease;
}

.dark .alarm-period-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
    color: rgb(148 163 184);
}

.alarm-period-active {
    background: rgb(244, 63, 94) !important;
    color: rgb(255 255 255) !important;
    border-color: rgb(244, 63, 94) !important;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.3);
}

.alarm-chip-active {
    background: rgba(244, 63, 94, 0.2) !important;
    color: rgb(225, 29, 72) !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
}

.dark .alarm-chip-active {
    background: rgba(244, 63, 94, 0.25) !important;
    color: rgb(251, 113, 133) !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
}

.alarm-title-chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: rgba(244, 244, 245, 0.9);
    color: rgb(82 82 91);
    border: 1px solid rgba(228, 228, 231, 0.8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dark .alarm-title-chip {
    background: rgba(39, 39, 42, 0.6);
    color: rgb(212 212 216);
    border-color: rgba(255, 255, 255, 0.08);
}

.alarm-title-chip:hover {
    background: rgba(244, 63, 94, 0.12);
    color: rgb(225, 29, 72);
    border-color: rgba(244, 63, 94, 0.3);
}

.dark .alarm-title-chip:hover {
    background: rgba(244, 63, 94, 0.2);
    color: rgb(251, 113, 133);
}

/* Fullscreen Nightstand Clock: isolates ONLY time and date */
.clock-stage.is-fullscreen {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    background: #ffffff !important;
    color: #09090b !important;
    border: none !important;
    box-shadow: none !important;
}

html.dark .clock-stage.is-fullscreen {
    background: #09090b !important;
    color: #ffffff !important;
}

.clock-stage.is-pseudo-fs {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    height: 100vh !important;
    height: 100dvh !important;
}

.clock-stage.is-fullscreen .alarm-stage-header {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    left: 1.5rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* In fullscreen, hide header non-clock items */
.clock-stage.is-fullscreen .alarm-live-badge,
.clock-stage.is-fullscreen #btnClockFormat {
    display: none !important;
}

/* Fullscreen active alarm display with live countdown timer */
.clock-stage.is-fullscreen #activeAlarmCard {
    margin-top: 2rem !important;
    max-width: 32rem !important;
    width: 90% !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 1.25rem !important;
    background: rgba(244, 63, 94, 0.08) !important;
    border: 1px solid rgba(244, 63, 94, 0.25) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

html.dark .clock-stage.is-fullscreen #activeAlarmCard {
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.clock-stage.is-fullscreen #activeAlarmLabel {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #18181b !important;
}

html.dark .clock-stage.is-fullscreen #activeAlarmLabel {
    color: #ffffff !important;
}

.clock-stage.is-fullscreen #activeAlarmCountdown {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #e11d48 !important;
}

html.dark .clock-stage.is-fullscreen #activeAlarmCountdown {
    color: #fb7185 !important;
}

/* Fullscreen huge time digits */
.clock-stage.is-fullscreen #clockCurrentTime {
    font-size: min(18vw, 24vh) !important;
    line-height: 1 !important;
    margin: 0 !important;
    letter-spacing: -0.04em !important;
    color: #09090b !important;
}

html.dark .clock-stage.is-fullscreen #clockCurrentTime {
    color: #ffffff !important;
}

/* Fullscreen clean date */
.clock-stage.is-fullscreen #clockCurrentDate {
    font-size: min(4vw, 5vh) !important;
    margin-top: 1.5rem !important;
    color: #71717a !important;
    font-weight: 500 !important;
}

html.dark .clock-stage.is-fullscreen #clockCurrentDate {
    color: #a1a1aa !important;
}

/* Mobile responsive refinements */
@media (max-width: 639px) {
    .alarm-chip {
        padding: 0.28rem 0.5rem;
        font-size: 0.6875rem;
    }

    .alarm-input,
    .alarm-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Pulsing Ringing Animation */
@keyframes alarmPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 20px rgba(244, 63, 94, 0);
    }
}

.alarm-ringing-box {
    animation: alarmPulse 1.2s infinite ease-in-out;
}

/* Canonical FAQ Accordion styles */
.tool-guide .tg-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(113 113 122);
}
.tool-guide .tg-eyebrow::before {
    content: "— ";
}

