/* ===== RESET & BASE LAYOUT =====
 * GetAdvice v5.7 — Reset, body layout, selection color, and global styles.
 * File: css/base.css
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    height: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    height: var(--app-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ── v5.6: Selection color ── */
::selection {
    background: rgba(124, 92, 252, 0.35);
    color: #fff;
}

::-moz-selection {
    background: rgba(124, 92, 252, 0.35);
    color: #fff;
}

/* ===== CONSENT OVERLAY ===== */
.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 2, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.4s var(--ease-out);
}
.consent-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.consent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow, rgba(124, 92, 252, 0.25));
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: consentSlideUp 0.5s var(--ease-spring) both;
}
@keyframes consentSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.consent-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.consent-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.consent-text strong {
    color: var(--text-primary);
}
.consent-disclaimer {
    color: var(--accent-light);
    font-style: italic;
    padding: 10px;
    background: rgba(124, 92, 252, 0.08);
    border-radius: 10px;
    margin-top: 8px;
}
.consent-links {
    margin: 16px 0;
}
.consent-links a {
    color: var(--accent-light);
    font-size: 13px;
    text-decoration: none;
}
.consent-links a:hover {
    text-decoration: underline;
}
.consent-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-out);
}
.consent-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 92, 252, 0.4);
}
.consent-btn:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}
.consent-btn:active {
    transform: scale(0.98);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
