/* =============================================
   BASE STYLES - Variables, Reset, Typography
   ============================================= */

/* CSS Variables */
:root {
    /* Colors - Medieval Theme */
    --color-bg-dark: #0d0a08;
    --color-bg-medium: #1a1512;
    --color-bg-light: #2d231a;
    --color-bg-card: #3a2e22;
    
    --color-gold: #ffd700;
    --color-gold-light: #ffe44d;
    --color-gold-dark: #b8860b;
    
    --color-cream: #f5e6d3;
    --color-cream-dark: #e0d5c0;
    
    --color-red: #c0392b;
    --color-blue: #2980b9;
    --color-green: #27ae60;
    --color-purple: #8e44ad;
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-cream);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gold);
}

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section */
.section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-cream-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   RTL (Right-to-Left) Support for Arabic
   ============================================= */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-menu {
    flex-direction: row-reverse;
}

body.rtl .nav-actions {
    flex-direction: row-reverse;
}

body.rtl .hero-actions {
    flex-direction: row-reverse;
}

body.rtl .features-grid,
body.rtl .factions-row,
body.rtl .modes-grid,
body.rtl .turn-steps {
    direction: rtl;
}

body.rtl .stat-bar-fill {
    transform-origin: right;
}

body.rtl .step-arrow {
    transform: scaleX(-1);
}

body.rtl .carousel-btn.prev {
    right: auto;
    left: -50px;
}

body.rtl .carousel-btn.next {
    left: auto;
    right: -50px;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .social-links {
    flex-direction: row-reverse;
}
