﻿/* ============================================
   Phoenix Activation System - CSS Variables
   Modern Color Palette & Design Tokens
   ============================================ */

:root {
    /* ========== Primary Colors ========== */
    /* The -rgb tokens hold the channels for rgba(var(--...-rgb), a); keep them equal to the hex value. */
    --color-primary: #2563eb;
    --color-primary-rgb: 37, 99, 235;
    --color-primary-dark: #1e40af;
    --color-primary-light: #dbeafe;
    --color-primary-hover: #1d4ed8;
    /* ========== Accent Colors ========== */
    --color-success: #10b981;
    --color-success-rgb: 16, 185, 129;
    --color-success-dark: #059669;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-rgb: 245, 158, 11;
    --color-warning-dark: #d97706;
    --color-warning-light: #fef3c7;
    --color-danger: #ef4444;
    --color-danger-rgb: 239, 68, 68;
    --color-danger-dark: #dc2626;
    --color-danger-light: #fee2e2;
    --color-info: #8b5cf6;
    --color-info-rgb: 139, 92, 246;
    --color-info-dark: #7c3aed;
    --color-info-light: #ede9fe;
    /* ========== Status Colors (Subscription States) ========== */
    --status-active: #10b981;
    --status-pending: #f59e0b;
    --status-expired: #ef4444;
    --status-trial: #8b5cf6;
    --status-suspended: #6b7280;
    /* ========== Neutral Colors ========== */
    --color-dark: #1f2937;
    --color-medium: #6b7280;
    --color-light: #f3f4f6;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    /* ========== Background Colors ========== */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1f2937;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    /* ========== Text Colors ========== */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    --text-disabled: #d1d5db;
    /* ========== Spacing Scale ========== */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem; /* 32px */
    --space-2xl: 3rem; /* 48px */
    --space-3xl: 4rem; /* 64px */
    /* ========== Border Radius ========== */
    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-full: 9999px; /* Fully rounded */
    /* ========== Shadows ========== */
    /* The role shadows (T-20261030-03 D3) are the ones to use: a card at rest, a tappable card or button at
       hover (desktop only) or a pressed phone card, a window / sheet / dropdown / drawer / toast / bell panel, the focus ring of a
       form control. The five old size shadows are gone (T-20261124-01 C7): a new rule takes one of these four. */
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-raised: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-overlay: 0 12px 32px rgba(15, 23, 42, 0.18);
    --shadow-focus: 0 0 0 3px rgba(var(--color-primary-rgb), 0.25);
    /* ========== Gradients ========== */
    /* One brand gradient (T-20261030-03 D4): the page header icon, the avatar, a brand surface. The soft form
       is the tinted brand background. A status colour is flat (--color-success, ...), never a gradient. */
    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-info));
    --gradient-brand-soft: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.06), rgba(var(--color-info-rgb), 0.06));
    /* ========== Typography ========== */
    /* The font (T-20261030-03 D2): Inter from our own server (base.css @font-face), then the system fonts
       (they also give the Arabic letters). */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
    /* The type scale (T-20261030-03 D1; CONVENTIONS §4 maps a raw px value to a token).
       An icon glyph or an avatar letter keeps its own size. */
    --font-size-2xs: 0.6875rem; /* 11px: a count inside a badge circle, a tiny chip */
    --font-size-xs: 0.75rem; /* 12px: labels (uppercase), table header cells, chips */
    --font-size-caption: 0.8125rem; /* 13px: meta lines, hints, a drawer sub line */
    --font-size-sm: 0.875rem; /* 14px: table text, card text, toast text, the sidebar links, .btn-sm */
    --font-size-base: 1rem; /* 16px: body text, .btn, the form inputs */
    --font-size-lg: 1.125rem; /* 18px: the drawer title, the phone window title, the phone page title */
    --font-size-xl: 1.25rem; /* 20px: section and window titles, the list toolbar title, the title next to an open drawer */
    --font-size-2xl: 1.5rem; /* 24px: the desktop page title */
    --font-size-3xl: 1.875rem; /* 30px: a big number (a stat value, a key) */
    --font-size-4xl: 2.25rem; /* 36px: h1 only */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    /* ========== Transitions ========== */
    /* One motion rule (T-20261030-03 D5): fast = hover, press, colour; base = the open of a sheet, a panel,
       a window, a toast, a dropdown. A control uses --transition-control, never "transition: all".
       A hover lift (translateY) only inside @media (hover: hover). */
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --transition-fast: 150ms var(--ease-standard);
    --transition-base: 200ms var(--ease-standard);
    --transition-slow: 300ms var(--ease-standard);
    --transition-control: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
    /* ========== Tap size ========== */
    /* The smallest tap target on a touch screen (T-20261030-03 D7), inside @media (pointer: coarse). */
    --tap-min: 44px;
    /* ========== Z-Index Scale ========== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    /* ========== Sidebar & Layout ========== */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 56px; /* the fixed header .app-header (mobile.css) */
    /* ========== Container Widths ========== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}
