/*
===============================================================================
  AGE OF EMPIRES IV REVIEW PORTAL - BASE CSS
  Cinematic | Imperial | Regal | Tactical | Grid-based | Responsive
===============================================================================
*/

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Imperial Color Palette */
  --color-bg-primary: #1a1612;
  --color-bg-secondary: #2a2420;
  --color-bg-tertiary: #3a3430;
  --color-bg-overlay: rgba(26, 22, 18, 0.95);
  
  --color-text-primary: #e8e4df;
  --color-text-secondary: #b8b0a8;
  --color-text-muted: #8a8278;
  
  --color-crimson: #8b1a1a;
  --color-crimson-light: #a82828;
  --color-crimson-dark: #6b0f0f;
  
  --color-gold: #d4af37;
  --color-gold-light: #f0cb5c;
  --color-gold-dark: #b8941f;
  
  --color-stone: #6b6558;
  --color-stone-light: #8a8070;
  --color-stone-dark: #4a453a;
  
  --color-success: #5a7a3a;
  --color-warning: #c07a20;
  --color-danger: #a82828;
  --color-info: #4a6a8a;
  
  /* Neutral Grays */
  --color-gray-100: #f5f3f0;
  --color-gray-200: #e8e4df;
  --color-gray-300: #c8c0b8;
  --color-gray-400: #a89f95;
  --color-gray-500: #8a8278;
  --color-gray-600: #6b6558;
  --color-gray-700: #4a453a;
  --color-gray-800: #2a2420;
  --color-gray-900: #1a1612;
  
  /* Typography */
  --font-primary: 'Cinzel', 'Georgia', 'Times New Roman', serif;
  --font-secondary: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-mono: 'Courier New', 'Courier', monospace;
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.75;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;  /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-base: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 32px 0 rgba(0, 0, 0, 0.7);
  --shadow-2xl: 0 24px 48px 0 rgba(0, 0, 0, 0.8);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  --shadow-crimson: 0 0 20px rgba(139, 26, 26, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --transition-slowest: 500ms ease-in-out;
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  
  /* Layout */
  --container-max-width: 1440px;
  --container-padding: var(--space-6);
  --grid-gap: var(--space-6);
  
  /* Borders */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-color: var(--color-stone-dark);
  --border-color-light: var(--color-stone);
}

/* ===========================
   CSS RESET & NORMALIZE
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===========================
   BASE TYPOGRAPHY
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-6);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  h4 { font-size: var(--font-size-xl); }
  h5 { font-size: var(--font-size-lg); }
  h6 { font-size: var(--font-size-base); }
}

p {
  margin-bottom: var(--space-4);
  max-width: 75ch;
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong,
b {
  font-weight: var(--font-weight-bold);
  color: var(--color-gold-light);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}

code {
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
}

pre {
  padding: var(--space-4);
  background-color: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-base);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

blockquote {
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
  border-left: 4px solid var(--color-gold);
  font-style: italic;
  color: var(--color-text-secondary);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

hr {
  border: none;
  height: var(--border-width);
  background: linear-gradient(90deg, transparent, var(--color-stone), transparent);
  margin: var(--space-8) 0;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (max-width: 768px) {
  .container {
    --container-padding: var(--space-4);
  }
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-12) 0;
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-6 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ===========================
   COMPONENT: BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border-width-thick) solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-dark));
  color: var(--color-text-primary);
  border-color: var(--color-crimson-light);
  box-shadow: var(--shadow-base), var(--shadow-crimson);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-crimson-light), var(--color-crimson));
  box-shadow: var(--shadow-md), var(--shadow-crimson);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-gray-900);
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-base), var(--shadow-gold);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-stone);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* ===========================
   COMPONENT: FORMS
   =========================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-base);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), var(--shadow-gold);
  background-color: var(--color-bg-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-bg-tertiary);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-danger);
}

.form-error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
}

.form-help {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: var(--space-2);
  cursor: pointer;
  accent-color: var(--color-gold);
}

/* ===========================
   COMPONENT: CARDS
   =========================== */
.card {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-crimson), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-stone-light);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-width) solid var(--border-color);
}

.card-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--border-color);
}

/* Card Variants */
.card-bordered {
  border-width: var(--border-width-thick);
  border-color: var(--color-gold);
}

.card-flat {
  box-shadow: none;
  border: none;
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:active {
  transform: translateY(-2px);
}

/* ===========================
   COMPONENT: BADGES
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background-color: var(--color-stone);
  color: var(--color-text-primary);
}

.badge-primary {
  background-color: var(--color-crimson);
  color: var(--color-text-primary);
}

.badge-secondary {
  background-color: var(--color-gold);
  color: var(--color-gray-900);
}

.badge-success {
  background-color: var(--color-success);
  color: var(--color-text-primary);
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--color-gray-900);
}

.badge-danger {
  background-color: var(--color-danger);
  color: var(--color-text-primary);
}

/* ===========================
   COMPONENT: ALERTS
   =========================== */
.alert {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
  border-radius: var(--radius-base);
  background-color: var(--color-bg-secondary);
}

.alert-info {
  border-color: var(--color-info);
  background-color: rgba(74, 106, 138, 0.1);
}

.alert-success {
  border-color: var(--color-success);
  background-color: rgba(90, 122, 58, 0.1);
}

.alert-warning {
  border-color: var(--color-warning);
  background-color: rgba(192, 122, 32, 0.1);
}

.alert-danger {
  border-color: var(--color-danger);
  background-color: rgba(168, 40, 40, 0.1);
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gold);
  color: var(--color-gray-900);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  border-radius: var(--radius-base);
  z-index: var(--z-modal);
}

.skip-link:focus {
  top: var(--space-4);
  left: var(--space-4);
}

*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

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

/* ===========================
   UTILITY CLASSES
   =========================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }
.text-crimson { color: var(--color-crimson); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

/* Background Colors */
.bg-primary { background-color: var(--color-bg-primary); }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-tertiary { background-color: var(--color-bg-tertiary); }
.bg-crimson { background-color: var(--color-crimson); }
.bg-gold { background-color: var(--color-gold); }

/* Spacing Utilities */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Width Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Max Width */
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-full { max-width: 100%; }

/* Border Utilities */
.border { border: var(--border-width) solid var(--border-color); }
.border-gold { border-color: var(--color-gold); }
.border-crimson { border-color: var(--color-crimson); }
.rounded { border-radius: var(--radius-base); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-gold { box-shadow: var(--shadow-gold); }
.shadow-crimson { box-shadow: var(--shadow-crimson); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */
@media (max-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
}

@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}

@media (max-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
}

/* ===========================
   CINEMATIC ENHANCEMENTS
   =========================== */

/* Imperial Divider */
.divider-imperial {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-8) 0;
}

.divider-imperial::before,
.divider-imperial::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
}

.divider-imperial::before {
  left: 0;
}

.divider-imperial::after {
  right: 0;
}

/* Tactical Grid Overlay */
.grid-overlay {
  position: relative;
}

.grid-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(107, 101, 88, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 101, 88, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* Regal Border */
.border-regal {
  border: var(--border-width-thick) solid;
  border-image: linear-gradient(135deg, var(--color-crimson), var(--color-gold), var(--color-crimson)) 1;
}

/* Cinematic Fade */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

/* Glow Effect */
.glow-gold {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.glow-crimson {
  box-shadow: 0 0 20px rgba(139, 26, 26, 0.6);
}
