/*
 * FRPUnlocker - Core Theme Specs (Cyber Luxury)
 * Global Design Tokens, Utilities, and Component Classes
 */

:root {
    /* Core Dark Luxury Backgrounds */
    --bg-base: #030712;
    /* Deepest blue/black */
    --bg-surface: #0B1120;
    --bg-surface-glass: rgba(15, 23, 42, 0.65);
    --bg-surface-raised: rgba(30, 41, 59, 0.7);

    /* Neon Energy Accents */
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);

    /* Status Colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #0ea5e9;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    /* Fallback to Inter if SG not loaded */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Glassmorphism & Borders */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(6, 182, 212, 0.3);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glow-shadow: 0 0 20px var(--accent-cyan-glow);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base resets & typography */
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.04), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.04), transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* Utilities */
.text-cyan {
    color: var(--accent-cyan) !important;
}

.text-purple {
    color: var(--accent-purple) !important;
}

.text-blue {
    color: var(--accent-blue) !important;
}

/* Focus outlines for A11y */
*:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================
   COMPONENT: Cyber Navbar
   ========================================== */
.cyber-navbar {
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    min-height: 80px;
    transition: var(--transition-smooth);
    z-index: 1030;
}

.cyber-navbar.scrolled {
    min-height: 70px;
    background: rgba(3, 7, 18, 0.85);
    /* Darker on scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(6, 182, 212, 0.15);
}

/* ==========================================
   COMPONENT: Buttons
   ========================================== */
.btn-cyber-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff !important;
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-spring);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-cyber-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-cyber-primary:hover::before {
    opacity: 1;
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

.btn-cyber-primary:active {
    transform: translateY(1px);
}

.btn-cyber-outline {
    background: transparent;
    color: var(--accent-cyan) !important;
    border: 1px solid var(--accent-cyan);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-spring);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cyber-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: inset 0 0 10px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

/* ==========================================
   COMPONENT: Cards (Glassmorphism)
   ========================================== */
.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

/* Profile / Abstract Image fallback */
.cyber-avatar {
    background: linear-gradient(135deg, var(--bg-surface-raised), var(--bg-surface));
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   COMPONENT: Inputs & Forms
   ========================================== */
.cyber-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.cyber-input::placeholder {
    color: var(--text-muted);
}

.cyber-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-glow);
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-raised);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================
   ANIMATIONS & REVEALS
   ========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.reveal-fade.revealed {
    opacity: 1;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-up,
    .reveal-fade {
        opacity: 1;
        transform: none;
    }
}