/* ============================================
   AURORA v1.0 — DESIGN SYSTEM
   Creative Suite by ShadowTrace
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    /* Aurora Color Palette */
    --aurora-violet: #7c3aed;
    --aurora-purple: #9d4edd;
    --aurora-blue: #3b82f6;
    --aurora-cyan: #06b6d4;
    --aurora-pink: #ec4899;
    --aurora-green: #10b981;
    --aurora-orange: #f59e0b;

    /* Gradients */
    --grad-aurora: linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
    --grad-violet: linear-gradient(135deg, #7c3aed, #9d4edd);
    --grad-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --grad-fire: linear-gradient(135deg, #ec4899, #f59e0b);
    --grad-green: linear-gradient(135deg, #10b981, #06b6d4);
    --grad-dark: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);

    /* Backgrounds */
    --bg-primary: #080810;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-strong: rgba(255, 255, 255, 0.1);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-glow-violet: rgba(124, 58, 237, 0.5);
    --border-glow-cyan: rgba(6, 182, 212, 0.5);

    /* Text */
    --text-primary: #f4f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    /* Shadows */
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow-violet: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.4); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.7); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ============ AURORA HUB BACK BUTTON ============ */
.hub-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hub-back-btn:hover {
    background: var(--bg-glass-strong);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.global-hub-btn {
    position: fixed; top: 20px; left: 20px; z-index: 99999;
    display: flex !important; align-items: center; gap: 10px;
    padding: 8px 24px; border-radius: 12px;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
    border: 2px solid var(--aurora-cyan);
    color: var(--aurora-cyan) !important; text-decoration: none !important;
    font-family: var(--font-display); font-size: 16px; font-weight: 800;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.global-hub-btn:hover {
    transform: scale(1.05);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    border-color: var(--aurora-violet);
    color: var(--aurora-violet) !important;
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-aurora);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-violet);
}

.btn-ghost {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(124, 58, 237, 0.4);
}

/* ============ INPUTS ============ */
input, textarea, select {
    background: rgba(15, 15, 25, 0.8) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--aurora-violet) !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2) !important;
    background: rgba(20, 20, 35, 0.9) !important;
}

/* Força estilo em botões de formulário */
button, .btn {
    font-family: var(--font-body);
}

::placeholder { color: var(--text-muted); opacity: 0.5; }

/* Range inputs Aurora */
input[type="range"] {
    padding: 0;
    height: 4px;
    appearance: none;
    background: var(--border-subtle);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--grad-aurora);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* ============ BADGE ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-violet {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #a78bfa;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
}

.badge-pink {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f9a8d4;
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }

.text-gradient {
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aurora-green);
    box-shadow: 0 0 8px var(--aurora-green);
    animation: pulse-glow 2s infinite;
    display: inline-block;
}

/* ============ ANIMATIONS ============ */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-scale-in { animation: scale-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* Delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============ RESPONSIVE HELPERS ============ */
@media (max-width: 768px) {
    .hub-back-btn {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }
}