/* ═══════════════════════════════════════════
   PromoTech Deals — Design System
   Dark theme elegante (baseado na dashboard)
   ═══════════════════════════════════════════ */

:root {
    /* Backgrounds */
    --bg: #0B0F1A;
    --bg-raised: #111826;
    --card: #121826;
    --card-hover: #1a2035;

    /* Text */
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;

    /* Accent */
    --purple: #8b5cf6;
    --purple-hover: #7c3aed;
    --purple-dim: rgba(139, 92, 246, 0.15);
    --purple-glow: rgba(139, 92, 246, 0.25);

    /* Semantic */
    --green: #22C55E;
    --discount: #FF5A2C;
    --discount-dim: rgba(255, 90, 44, 0.15);
    --green-dim: rgba(16, 185, 129, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --yellow: #f59e0b;
    --yellow-dim: rgba(245, 158, 11, 0.15);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --cyan: #06b6d4;

    /* Borders */
    --border: #2a2a3a;
    --border-hover: #3a3a4a;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.7rem;
    --font-sm: 0.8rem;
    --font-base: 0.875rem;
    --font-md: 0.95rem;
    --font-lg: 1.1rem;
    --font-xl: 1.3rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
}

/* ═══════════ Reset ═══════════ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text);
    background: linear-gradient(180deg, #0B0F1A, #0F172A);
    background-attachment: fixed;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--purple-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════ Scrollbar ═══════════ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ═══════════ Animations ═══════════ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}
