/* ============================================
   🎨 Al-Hour V2 Design Tokens
   Color palette + Typography + Spacing
   ============================================ */

:root {
    /* Brand Colors - Teal */
    --c-primary: #33b7a2;
    --c-primary-dark: #2a9d8a;
    --c-primary-light: #5cc7b5;
    --c-primary-50: #F0FDF9;
    --c-primary-100: #D4F5EC;
    
    --c-dark: #0F4F46;
    --c-dark-light: #1a6b5e;
    
    --c-accent: #FFC44D;
    --c-accent-dark: #E5A82D;
    --c-accent-50: #FFFBEB;
    
    /* Neutrals */
    --c-cream: #F5F5F0;
    --c-white: #FFFFFF;
    --c-text: #0F4F46;
    --c-text-light: #4a6863;
    --c-muted: #8b8b85;
    --c-border: #e5e5e0;
    --c-border-light: #f0f0eb;
    
    /* Semantic */
    --c-success: #16a34a;
    --c-success-bg: #dcfce7;
    --c-error: #dc2626;
    --c-error-bg: #fee2e2;
    --c-warning: #d97706;
    --c-warning-bg: #fef3c7;
    --c-info: #2563eb;
    --c-info-bg: #dbeafe;
    
    /* Typography */
    --font-sans: 'Tajawal', system-ui, sans-serif;
    --font-display: 'Reem Kufi', 'Tajawal', sans-serif;
    --font-numeric: 'Cairo', monospace;
    
    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    
    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-full: 9999px;
    
    /* Shadows */
    --sh-sm: 0 1px 2px rgba(15,79,70,0.05);
    --sh-md: 0 4px 12px rgba(15,79,70,0.08);
    --sh-lg: 0 8px 24px rgba(15,79,70,0.12);
    --sh-primary: 0 4px 12px rgba(51,183,162,0.25);
    
    /* Transitions */
    --tr-fast: 0.15s ease;
    --tr-base: 0.2s ease;
    --tr-slow: 0.3s ease;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-cream);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tr-base);
}

a:hover {
    color: var(--c-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* ============ Typography Helpers ============ */
.text-num {
    font-family: var(--font-numeric);
    direction: ltr;
    display: inline-block;
}

.text-display {
    font-family: var(--font-display);
}

/* ============ Container ============ */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* ============ Utility ============ */
.scrollable-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.scrollable-x::-webkit-scrollbar {
    display: none;
}
.scrollable-x {
    scrollbar-width: none;
}
