/* theme.css - Variáveis de tema compartilhadas */
:root, [data-theme="dark"] {
    --bg: #080808;
    --surface: #111111;
    --surface2: #1a1a1a;
    --border: #252525;
    --text: #ffffff;
    --muted: #8a8a9a;
    --red: #ff1a1a;
    --red-dark: #e60000;
    --red-glow: rgba(255,26,26,0.55);
    --green: #00e676;
    --green-dark: #00c853;
    --gold: #ffd600;
    --shadow: 0 10px 30px -5px rgba(0,0,0,0.7);
}

[data-theme="light"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface2: #f7f8fa;
    --border: #e0e3e8;
    --text: #0a0a0a;
    --muted: #5a5a72;
    --red: #ff1a1a;
    --red-dark: #e60000;
    --red-glow: rgba(255,26,26,0.4);
    --green: #00c853;
    --green-dark: #00a846;
    --gold: #f59f00;
    --shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease; }

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Botão tema fixo */
.theme-toggle {
    position: fixed;
    top: 14px; right: 16px;
    z-index: 999;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    transition: transform 0.2s !important;
    overflow: hidden;
}
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}
.theme-toggle:hover {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.5);
}
.theme-toggle:active { transform: scale(0.93); }

/* Botão CTA padrão */
.btn-red {
    width: 100%;
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(255,0,0,0.5), 0 0 0 1px rgba(255,80,80,0.15);
    transition: transform 0.15s, box-shadow 0.15s !important;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.3px;
}
.btn-red::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: shimmer 2.2s infinite;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(255,0,0,0.65), 0 0 0 1px rgba(255,80,80,0.2); }
.btn-red:active { transform: scale(0.97); }

@keyframes shimmer { 0% { left:-100%; } 100% { left:200%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.fade-in   { animation: fadeInUp 0.5s ease both; }
.delay-1   { animation-delay: 0.1s; }
.delay-2   { animation-delay: 0.2s; }
.delay-3   { animation-delay: 0.3s; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
