/* ==========================================================================
   Flixora — Main CSS (Variables, Reset, Typography)
   ========================================================================== */

:root {
  --bg-primary:    #0D0F14;
  --bg-secondary:  #141720;
  --bg-card:       #1A1E2E;
  --gold:          #E8B84B;
  --gold-soft:     #f0c955;
  --orange:        #C2410C;
  --text-primary:  #F0F0F0;
  --text-muted:    #A0A0B0;
  --border:        #2A2F45;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.25s ease;
  --container-w:   1200px;
  --shadow-card:   0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover:  0 8px 32px rgba(232, 184, 75, 0.15);
}

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

html {
  direction: rtl;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.9;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-soft);
}

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

ul, ol {
  list-style: none;
}

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

/* Container */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Utility */
.gold       { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Selection */
::selection {
  background: var(--gold);
  color: #0D0F14;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  html { font-size: 15px; }
}
