/* ═══════════════════════════════════════════════════════════════════
   ProjectRoots — Page-specific overrides
   Inherits everything from ../style.css (main site)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Word Cycling Animation ────────────────────────────────────── */
.roots-word-cycle {
    display: inline-block;
    position: relative;
    min-width: 160px;
    text-align: left;
    vertical-align: bottom;
    height: 1.5em;
}

.roots-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.roots-word.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.roots-word.exit {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(4px);
}

/* ── Hero Note ─────────────────────────────────────────────────── */
.roots-preview-note {
    max-width: 620px;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

/* ── Password Input Overrides ──────────────────────────────────── */
#family-password-form {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#family-password-form:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] #family-password-form:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

#family-password::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ── Card Hover ────────────────────────────────────────────────── */
#options .glass-panel {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#options .glass-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] #options .glass-panel:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .roots-preview-note {
    background: rgba(255, 255, 255, 0.72);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .roots-preview-note {
        border-radius: 18px;
        padding: 16px;
    }
}

/* ── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .roots-word {
        transition-duration: 0.15s;
    }
}
