/* 
   P2P KOLs - Base Styles
   CSS Variables, Reset, Typography
*/

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

/* ================= CSS VARIABLES ================= */
:root {
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222233;
    --bg-input: #15151f;
    --bg-surface: #0a0a0f;
    --bg-dark: #030306;
    
    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    /* Accent Colors */
    --accent-primary: #00ff88;
    --accent-secondary: #00ccff;
    --accent-purple: #9966ff;
    --accent-orange: #ff6600;
    --accent-red: #ff3366;
    --accent-cyan: #00f0ff;
    --accent-green: #00ff88;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #00ff88 0%, #00ccff 50%, #9966ff 100%);
    --gradient-dark: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    --gradient-blogger: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    --gradient-client: linear-gradient(135deg, var(--accent-purple), #ff6b9d);
    --gradient-admin: linear-gradient(135deg, #ff6600, #ff3366);
    
    /* Glows */
    --glow-cyan: rgba(0,240,255,0.2);
    --glow-purple: rgba(168,85,247,0.2);
    --glow-green: rgba(0,255,136,0.2);
    
    /* Borders */
    --border-color: rgba(255,255,255,0.08);
    --border-glow: rgba(0,255,136,0.3);
    --border: rgba(255,255,255,0.06);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(0,255,136,0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0,255,136,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(153,102,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0,204,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================= UTILITY CLASSES ================= */
.text-green { color: var(--accent-primary); }
.text-blue { color: var(--accent-secondary); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }

.mono { font-family: var(--font-mono); }

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: 0.5rem;
}

/* ================= ANIMATIONS ================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

