/*
 * Rifqa Super Platform — Brand Theme CSS
 * Brand Guidelines: Emerald (#0F3E36, #173D32), Gold (#C5A880, #D9C18B), Ivory/Slate (#F8FAFC, #F4F0E7)
 * Typography: local Noto Sans Arabic and Montserrat fonts from the Rifqa identity kit.
 */

@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('/static/assets/fonts/NotoSansArabic-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/static/assets/fonts/Montserrat-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Primary Brand Palette */
  --color-emerald-deep: #0F3E36;
  --color-emerald-primary: #173D32;
  --color-emerald-light: #E8F2EF;
  --color-emerald-hover: #134B3E;
  --color-emerald-surface: #F0F6F4;

  /* Accent Gold Palette */
  --color-gold-warm: #C5A880;
  --color-gold-noble: #D9C18B;
  --color-gold-subtle: #F6F1E8;
  --color-gold-hover: #B8996F;
  --color-gold-border: rgba(197, 168, 128, 0.4);

  /* Backgrounds & Neutral Surfaces */
  --color-bg-main: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-subtle: #EEF2F6;

  /* Typography Colors */
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-subtle: #64748B;
  --color-text-light: #94A3B8;
  --color-text-inverse: #FFFFFF;
  --color-text-gold: #96764B;

  /* State & Alert Colors */
  --color-success: #059669;
  --color-success-bg: #ECFDF5;
  --color-warning: #D97706;
  --color-warning-bg: #FFFBEB;
  --color-danger: #DC2626;
  --color-danger-bg: #FEF2F2;
  --color-info: #0284C7;
  --color-info-bg: #F0F9FF;

  /* 30m Soft-Lock Timer Progression */
  --color-timer-safe: #059669;
  --color-timer-warning: #D97706;
  --color-timer-danger: #DC2626;

  /* Fonts */
  --font-arabic: 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Montserrat', 'Segoe UI', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 62, 54, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(15, 62, 54, 0.08), 0 2px 4px -2px rgba(15, 62, 54, 0.05);
  --shadow-elevated: 0 10px 25px -5px rgba(15, 62, 54, 0.12), 0 8px 10px -6px rgba(15, 62, 54, 0.08);
  --shadow-gold: 0 4px 14px 0 rgba(197, 168, 128, 0.35);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.mono {
  font-family: var(--font-mono);
  direction: ltr;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
