/* ==========================================================================
   Bunny - Base Styles & CSS Variables
   Premium Dark Theme 2026
   ========================================================================== */

/* Fontes carregadas via preload no base.html - não usar @import aqui */

:root {
    /* Dark Palette */
    --color-bg: #0a0a0a;
    --color-bg-elevated: #0d0d0d;
    --color-surface: #0f0f0f;
    --color-surface-light: #1a1a1a;
    --color-surface-hover: #151515;
    --color-surface-active: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.1);

    /* Primary - Hot Pink */
    --color-primary: #fe06bd;
    --color-primary-hover: #ff2dc9;
    --color-primary-light: rgba(254, 6, 189, 0.3);
    --color-primary-glow: rgba(254, 6, 189, 0.4);
    --color-primary-subtle: rgba(254, 6, 189, 0.08);
    --color-primary-gradient: linear-gradient(135deg, #fe06bd 0%, #d946ef 50%, #a855f7 100%);
    --color-primary-gradient-hover: linear-gradient(135deg, #ff2dc9 0%, #e879f9 50%, #c084fc 100%);

    /* Text */
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    --color-text-disabled: rgba(255, 255, 255, 0.2);

    /* Semantic */
    --color-success: #00d26a;
    --color-success-subtle: rgba(0, 210, 106, 0.1);
    --color-warning: #ffb800;
    --color-warning-subtle: rgba(255, 184, 0, 0.1);
    --color-error: #ff4757;
    --color-error-subtle: rgba(255, 71, 87, 0.1);
    --color-info: #3b82f6;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.6875rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.9375rem;
    --font-size-lg: 1.0625rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
    --shadow-glow-sm: 0 0 20px var(--color-primary-glow);

    /* Glass Effect */
    --glass-bg: rgba(15, 15, 15, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(8px);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;

    /* Alpha/Opacity Scale (white) */
    --alpha-white-2: rgba(255, 255, 255, 0.02);
    --alpha-white-3: rgba(255, 255, 255, 0.03);
    --alpha-white-5: rgba(255, 255, 255, 0.05);
    --alpha-white-8: rgba(255, 255, 255, 0.08);
    --alpha-white-12: rgba(255, 255, 255, 0.12);
    --alpha-white-15: rgba(255, 255, 255, 0.15);
    --alpha-white-50: rgba(255, 255, 255, 0.5);
    --alpha-white-70: rgba(255, 255, 255, 0.7);
    --alpha-white-85: rgba(255, 255, 255, 0.85);
    --alpha-white-90: rgba(255, 255, 255, 0.9);

    /* Alpha/Opacity Scale (black) */
    --alpha-black-10: rgba(0, 0, 0, 0.1);
    --alpha-black-20: rgba(0, 0, 0, 0.2);
    --alpha-black-40: rgba(0, 0, 0, 0.4);
    --alpha-black-50: rgba(0, 0, 0, 0.5);
    --alpha-black-60: rgba(0, 0, 0, 0.6);
    --alpha-black-70: rgba(0, 0, 0, 0.7);
    --alpha-black-80: rgba(0, 0, 0, 0.8);

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Extra Spacing & Radius */
    --spacing-2xs: 0.125rem;
    --radius-xs: 2px;

    /* Solid Text Muted */
    --color-text-muted-solid: #9ca3af;
}

/* Light Theme */
[data-theme="light"] {
    --color-bg: #f5f5f5;
    --color-bg-elevated: #eeeeee;
    --color-surface: #ffffff;
    --color-surface-light: #f0f0f0;
    --color-surface-hover: #e8e8e8;
    --color-surface-active: #e0e0e0;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    --color-text: #1a1a1a;
    --color-text-secondary: rgba(0, 0, 0, 0.6);
    --color-text-muted: rgba(0, 0, 0, 0.4);
    --color-text-disabled: rgba(0, 0, 0, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; }
h2 { font-size: var(--font-size-3xl); font-weight: 700; }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

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

/* Selection */
::selection {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

/* Focus States */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.25);
    outline-offset: 2px;
}

/* Lists */
ul, ol { list-style: none; }

/* Images */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button Reset */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Input Reset */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

input::placeholder, textarea::placeholder {
    color: var(--color-text-muted);
}

/* Utility Classes */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Grid */
.grid { display: grid; }

/* Gradient Text */
.gradient-text {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow {
    box-shadow: var(--shadow-glow);
}

.glow-sm {
    box-shadow: var(--shadow-glow-sm);
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}
