/* WoW Classic X5 - Light Design System with Tailwind-inspired variables */

/* CSS Custom Properties (Tailwind-inspired) */
/* WoW Classic X5 – Improved Color Palette for Better Readability */

@layer base {
  :root {
    /* Neutral parchment background for reduced glare */
    --background: 45 33% 97%; /* parchment off‑white */
    --foreground: 25 15% 12%; /* near‑black warm brown */

    /* Surface layers */
    --card: 42 35% 95%; /* slightly darker parchment */
    --card-foreground: 25 15% 12%;

    --popover: 42 40% 96%;
    --popover-foreground: 25 15% 12%;

    /* Primary WoW orange accent */
    --primary: 37 85% 48%; /* rich golden‑orange */
    --primary-foreground: 45 100% 99%; /* almost white for contrast */

    /* Secondary soft gold */
    --secondary: 48 95% 88%; /* pastel yellow */
    --secondary-foreground: 25 20% 20%;

    /* Muted neutrals */
    --muted: 42 25% 90%; /* light cream */
    --muted-foreground: 30 15% 40%; /* muted brown‑grey */

    /* Accent gold */
    --accent: 45 90% 55%; /* highlight gold */
    --accent-foreground: 25 20% 15%;

    /* Destructive (errors) */
    --destructive: 0 70% 50%;
    --destructive-foreground: 45 100% 97%;

    /* Lines & inputs */
    --border: 42 20% 82%; /* gentle parchment edge */
    --input: 45 25% 94%; /* light input background */
    --ring: 37 85% 48%; /* orange focus ring */

    /* Special gold */
    --gold: 45 95% 50%;
    --gold-foreground: 25 20% 15%;

    /* Gradients tuned for smoother blend */
    --gradient-parchment: linear-gradient(135deg, hsl(45 33% 97%), hsl(42 30% 92%));
    --gradient-stone: linear-gradient(135deg, hsl(35 25% 88%), hsl(30 20% 82%));
    --gradient-wow-orange: linear-gradient(135deg, hsl(37 85% 48%), hsl(30 85% 45%));

    /* Shadows with softer hue */
    --shadow-parchment: 0 4px 16px hsl(30 20% 60% / 0.15);
    --shadow-deep: 0 8px 32px hsl(30 20% 50% / 0.25);
    --shadow-glow: 0 0 20px hsl(37 85% 48% / 0.3);

    /* Motion & radius (unchanged) */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --radius: 0.5rem;
  }
}

/* NOTE: All other style rules remain unchanged; this block can replace the original :root section or be appended after it to override colors. */


/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  min-height: 100vh;
}

/* Typography */
.font-heading {
  font-family: 'Cinzel', serif;
}

.font-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
}

.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)); }

/* Responsive grid utilities */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

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

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Spacing utilities */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Additional spacing */
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.p-3 { padding: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.pl-5 { padding-left: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Space utilities */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Font utilities */
.font-mono { font-family: 'Courier New', 'Monaco', 'Consolas', monospace; }

/* Display utilities */
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.cursor-pointer { cursor: pointer; }

/* List utilities */
.list-disc { list-style-type: disc; }

/* Width utilities */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Size utilities */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

/* Flex utilities */
.flex-shrink-0 { flex-shrink: 0; }

/* Height utilities */
.min-h-screen { min-height: 100vh; }

/* Other utilities */
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Text utilities */
.leading-relaxed { line-height: 1.625; }

/* Gap utilities */
.gap-8 { gap: 2rem; }

/* Last child utilities */
.last\\:border-b-0:last-child { border-bottom: none; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

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

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }

/* Background utilities */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }

/* Special gradients */
.bg-gradient-parchment { background: var(--gradient-parchment); }
.bg-gradient-wow-orange { background: var(--gradient-wow-orange); }

/* Border utilities */
.border { border: 1px solid hsl(var(--border)); }
.border-2 { border: 2px solid hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-border { border-color: hsl(var(--border)); }
.border-accent { border-color: hsl(var(--accent)); }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Transition utilities */
.transition { transition: var(--transition-fast); }
.transition-all { transition: var(--transition-smooth); }

/* Hover utilities */
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-primary-foreground:hover { color: hsl(var(--primary-foreground)); }

/* ===============================
   COMPONENT STYLES
   =============================== */

/* Card component */
.card {
  background-color: hsl(30, 30%, 93%);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-parchment);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-deep);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin: 0;
}

.card-description {
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.card-content {
  padding: 1.5rem;
}

/* Button component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.625rem 1rem;
}

.btn-primary {
  background: var(--gradient-wow-orange);
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(30, 85%, 50%), hsl(35, 80%, 45%));
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  border: 1px solid hsl(var(--primary));
  background-color: transparent;
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Input component */
.input {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--input));
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.input:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-color: hsl(var(--primary));
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Label component */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

/* Badge component */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.badge-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-gold {
  background: linear-gradient(135deg, hsl(var(--gold)), hsl(45, 85%, 45%));
  color: hsl(var(--gold-foreground));
}

/* ===============================
   NAVIGATION
   =============================== */

.navbar {
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: hsl(var(--card) / 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.nav-brand h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0;
  transition: var(--transition-fast);
}

.nav-brand h1:hover {
  color: hsl(var(--accent));
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.nav-menu li a:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--primary));
}

.nav-menu li a.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.language-switcher .lang-link-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.1);
  transition: var(--transition-fast);
  min-width: 2.5rem;
  text-decoration: none;
}

.language-switcher .lang-link-compact:hover {
  background-color: hsl(var(--primary) / 0.2);
}

.lang-code {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Online status block */
.online-status {
  margin-left: 0.5rem;
}

.online-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(120, 50%, 50%);
  border-radius: var(--radius);
  background-color: hsl(120, 50%, 95%);
  transition: var(--transition-fast);
}

.online-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(120, 70%, 50%);
  box-shadow: 0 0 4px hsl(120, 70%, 50%);
  animation: pulse 2s infinite;
}

.online-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(120, 70%, 40%);
}

.online-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(120, 50%, 45%);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 hsl(120, 70%, 50%, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px hsl(120, 70%, 50%, 0);
  }
  100% {
    box-shadow: 0 0 0 0 hsl(120, 70%, 50%, 0);
  }
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===============================
   HERO SECTION
   =============================== */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://worldofclassic.ru/assets/images/wow-classic-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===============================
   SPECIAL COMPONENTS
   =============================== */

/* Realmlist block */
.realmlist-block {
  background: var(--gradient-stone);
  border: 2px solid hsl(var(--primary));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.realmlist-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.realmlist-input-group {
  display: flex;
  max-width: 32rem;
  margin: 0 auto;
  gap: 0.5rem;
}

.realmlist-input {
  flex: 1;
  text-align: center;
  font-family: 'Monaco', 'Consolas', monospace;
  font-weight: 500;
}

.copy-btn {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: 1px solid hsl(var(--accent));
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background-color: hsl(var(--accent) / 0.9);
  box-shadow: var(--shadow-glow);
}

.copy-btn.copy-success {
  background-color: hsl(120, 60%, 50%);
  color: white;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.field-hint {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Messages */
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.message-success {
  background-color: hsl(120, 60%, 95%);
  color: hsl(120, 60%, 25%);
  border-left-color: hsl(120, 60%, 50%);
}

.message-error {
  background-color: hsl(0, 70%, 95%);
  color: hsl(0, 70%, 25%);
  border-left-color: hsl(0, 70%, 50%);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: hsl(var(--card));
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid hsl(var(--border));
    gap: 0.5rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .language-switcher,
  .online-status {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .online-block {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .realmlist-input-group {
    flex-direction: column;
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .nav-brand h1 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ===============================
   UTILITY ANIMATIONS
   =============================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}