/* css/base.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Color Palette - Premium Dark Mode */
    --bg-primary: #080a0f;
    --bg-secondary: #0d1117;
    --bg-card: #151a23;
    --bg-card-hover: #1c232e;
    --accent: #00e676;
    --accent-dim: rgba(0, 230, 118, 0.1);
    --accent-glow: rgba(0, 230, 118, 0.4);
    
    --text-primary: #f0f2f5;
    --text-secondary: #9ba3af;
    --text-muted: #64748b;
    
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --live-red: #ff334b;
    --live-red-glow: rgba(255, 51, 75, 0.3);
    
    --glass-bg: rgba(21, 26, 35, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 119, 255, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-ar);
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 var(--live-red-glow); }
    70% { box-shadow: 0 0 0 6px rgba(255, 51, 75, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 75, 0); }
}

body.loading {
    opacity: 0;
}

body.ready {
    opacity: 1;
    transition: opacity 0.5s ease;
}
