/* Modern CSS Design System - 2024 Web Design Trends */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=optional');

/* Font Display Optimization - Subset Variable Font for CLS Prevention */
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 100 900; /* Variable font supports all weights */
  font-display: optional; /* Prevents FOIT/FOUT and minimizes CLS */
  src:
    local('Pretendard'),
    url('/static/fonts/PretendardVariable-subset.woff2') format('woff2-variations');
  font-named-instance: 'Regular';
}

:root {
  /* Lost Ark Color Palette - Gold & Blue Theme */
  --primary-50: #fefce8;
  --primary-100: #fef9c3;
  --primary-200: #fef08a;
  --primary-300: #fde047;
  --primary-400: #facc15;
  --primary-500: #eab308;
  --primary-600: #ca8a04;
  --primary-700: #a16207;
  --primary-800: #854d0e;
  --primary-900: #713f12;
  --primary-950: #422006;

  /* Lost Ark Accent Color - Deep Blue */
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;
  --accent-300: #93c5fd;
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --accent-800: #1e40af;
  --accent-900: #1e3a8a;
  --accent-950: #172554;

  /* Semantic Colors */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  --success-800: #166534;
  --success-900: #14532d;

  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;

  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-200: #fecaca;
  --error-300: #fca5a5;
  --error-400: #f87171;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  --error-800: #991b1b;
  --error-900: #7f1d1d;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  /* Modern Typography */
  --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Font Sizes (Tailwind-inspired scale) */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing Scale (Tailwind-inspired) */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem; /* 2px */
  --space-1: 0.25rem; /* 4px */
  --space-1-5: 0.375rem; /* 6px */
  --space-2: 0.5rem; /* 8px */
  --space-2-5: 0.625rem; /* 10px */
  --space-3: 0.75rem; /* 12px */
  --space-3-5: 0.875rem; /* 14px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem; /* 32px */
  --space-9: 2.25rem; /* 36px */
  --space-10: 2.5rem; /* 40px */
  --space-11: 2.75rem; /* 44px */
  --space-12: 3rem; /* 48px */
  --space-14: 3.5rem; /* 56px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-28: 7rem; /* 112px */
  --space-32: 8rem; /* 128px */

  /* 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-3xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition-none: none;
  --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Easing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  --gradient-success: linear-gradient(135deg, var(--success-500), var(--success-600));
  --gradient-warning: linear-gradient(135deg, var(--warning-500), var(--warning-600));
  --gradient-error: linear-gradient(135deg, var(--error-500), var(--error-600));
  --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  /* Glass Morphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);

  /* Dark Theme Colors */
  --dark-bg-primary: #0f172a;
  --dark-bg-secondary: #1e293b;
  --dark-bg-tertiary: #334155;
  --dark-text-primary: #f8fafc;
  --dark-text-secondary: #cbd5e1;
  --dark-text-tertiary: #94a3b8;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--dark-text-primary);
  background: var(--dark-bg-primary);
  min-height: 100vh;
  overflow-x: auto; /* 스크롤 허용으로 변경 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--dark-text-primary);
}

h1 {
  font-size: var(--text-4xl);
}

/* Main Logo Styles */
.main-logo {
  display: block;
  margin: 0 auto;
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}

p {
  color: var(--dark-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Modern Button System */
.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-sans);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  line-height: var(--leading-none);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

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

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--gray-400) !important;
  color: var(--gray-600) !important;
  border-color: var(--gray-400) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Button Variants */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--dark-bg-secondary);
  color: var(--dark-text-primary);
  border-color: var(--gray-600);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--dark-bg-tertiary);
  border-color: var(--gray-500);
  transform: translateY(-1px);
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--primary-500);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--dark-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--dark-bg-secondary);
  color: var(--dark-text-primary);
}

/* Button Sizes */
.btn-xs {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

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

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
  border-radius: var(--radius-2xl);
}

/* Modern Card System */
.card {
  background: var(--dark-bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-700);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-600);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-700);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-700);
  background: var(--dark-bg-tertiary);
}

/* Modern Input System */
.input {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
  color: var(--dark-text-primary);
  background: var(--dark-bg-secondary);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.input:hover:not(:focus) {
  border-color: var(--gray-500);
}

.input::placeholder {
  color: var(--dark-text-tertiary);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-800);
}

/* Select Styling */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-10);
}

/* Modern Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--dark-text-primary);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--error-500);
}

.form-help {
  font-size: var(--text-sm);
  color: var(--dark-text-tertiary);
}

/* Modern Grid System */
.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));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

/* Modern Flexbox Utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}

/* Modern Spacing Utilities */
.m-0 {
  margin: 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: 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: 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: 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);
}

/* Modern Text Utilities */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}

.font-light {
  font-weight: var(--font-light);
}
.font-normal {
  font-weight: var(--font-normal);
}
.font-medium {
  font-weight: var(--font-medium);
}
.font-semibold {
  font-weight: var(--font-semibold);
}
.font-bold {
  font-weight: var(--font-bold);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Modern Color Utilities */
.text-primary {
  color: var(--primary-500);
}
.text-success {
  color: var(--success-500);
}
.text-warning {
  color: var(--warning-500);
}
.text-error {
  color: var(--error-500);
}
.text-gray {
  color: var(--gray-500);
}

.bg-primary {
  background-color: var(--primary-500);
}
.bg-success {
  background-color: var(--success-500);
}
.bg-warning {
  background-color: var(--warning-500);
}
.bg-error {
  background-color: var(--error-500);
}

/* Modern Border Utilities */
.border {
  border: 1px solid var(--gray-600);
}
.border-primary {
  border-color: var(--primary-500);
}
.border-success {
  border-color: var(--success-500);
}
.border-warning {
  border-color: var(--warning-500);
}
.border-error {
  border-color: var(--error-500);
}

.rounded-none {
  border-radius: var(--radius-none);
}
.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded {
  border-radius: var(--radius-base);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-2xl {
  border-radius: var(--radius-2xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* Modern Shadow Utilities */
.shadow-none {
  box-shadow: none;
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow {
  box-shadow: var(--shadow-base);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}
.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}

/* Modern Animation Utilities */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Modern Responsive Design */
@media (max-width: 640px) {
  .sm\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:text-sm {
    font-size: var(--text-sm);
  }
  .sm\:text-base {
    font-size: var(--text-base);
  }
  .sm\:p-4 {
    padding: var(--space-4);
  }
}

@media (max-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));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:text-lg {
    font-size: var(--text-lg);
  }
  .md\:text-xl {
    font-size: var(--text-xl);
  }
}

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

/* Modern 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: 0;
}

/* Focus Management */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--primary-500);
}

.focus\:ring-offset-2:focus {
  box-shadow:
    0 0 0 2px var(--dark-bg-primary),
    0 0 0 4px var(--primary-500);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Modern Selection */
::selection {
  background: var(--primary-500);
  color: white;
}

::-moz-selection {
  background: var(--primary-500);
  color: white;
}
/ * ===== API Status Indicators ===== */ .modern-status-container {
  display: flex;
  justify-content: center;
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.modern-status-indicators {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.modern-status-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.modern-status-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.modern-status-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.modern-status-dot.connected {
  background: var(--success-500);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.modern-status-dot.disconnected {
  background: var(--error-500);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.modern-status-dot.unknown {
  background: var(--warning-500);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.modern-status-dot.checking {
  background: var(--primary-400);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}

.modern-status-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  white-space: nowrap;
}

/* Status indicator animations */
@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes statusShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

@keyframes recoveryPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--success-400);
  }
  25% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
  }
  75% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modern-status-dot.checking {
  animation: statusPulse 1s infinite;
}

.modern-status-dot.recovery-pulse {
  animation: recoveryPulse 2s ease-out;
}

.modern-status-dot.unknown {
  animation: breathe 2s infinite;
}

/* Enhanced hover effects */
.modern-status-item[data-status='connected']:hover .modern-status-dot {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.modern-status-item[data-status='disconnected']:hover .modern-status-dot {
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.modern-status-item[data-status='unknown']:hover .modern-status-dot {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.modern-status-item[data-status='checking']:hover .modern-status-dot {
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
}

/* Loading spinner for checking state */
.modern-status-item[data-status='checking'] .modern-status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--primary-200);
  border-radius: 50%;
  border-top-color: var(--primary-500);
  animation: spin 1s linear infinite;
}

/* Responsive design for status indicators */
@media (max-width: 768px) {
  .modern-status-indicators {
    gap: var(--space-4);
  }

  .modern-status-item {
    padding: var(--space-1) var(--space-2);
  }

  .modern-status-label {
    font-size: var(--text-xs);
  }

  .modern-status-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .modern-status-indicators {
    gap: var(--space-2);
  }

  .modern-status-label {
    display: none;
  }

  .modern-status-item {
    padding: var(--space-2);
  }
}

/* Accessibility improvements */
.modern-status-item:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.modern-status-item[aria-pressed='true'] {
  background: rgba(14, 165, 233, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .modern-status-dot.connected {
    background: #00aa00;
    border: 2px solid #ffffff;
  }

  .modern-status-dot.disconnected {
    background: #cc0000;
    border: 2px solid #ffffff;
  }

  .modern-status-dot.unknown {
    background: #ff8800;
    border: 2px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .modern-status-dot,
  .modern-status-item {
    animation: none !important;
    transition: none !important;
  }
}
/* Utility Classes */
.hidden {
  display: none;
}

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

.focus-visible:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Game Navigation Styles */
.game-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  margin-bottom: 20px;
}

.game-link {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
}

.game-link:hover {
  color: #333;
  background: #e9ecef;
}

.game-link.active {
  color: #facc15;
  background: #fffbeb;
  font-weight: 600;
}

/* Game Tabs Styles */
.game-tabs {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.game-tab-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--dark-text-secondary);
  background: var(--dark-bg-secondary);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.game-tab-btn:hover {
  color: var(--dark-text-primary);
  background: var(--dark-bg-tertiary);
  border-color: var(--gray-600);
}

.game-tab-btn.active {
  color: var(--primary-400);
  background: rgba(250, 204, 21, 0.1);
  border-color: var(--primary-500);
  font-weight: var(--font-semibold);
}

.game-tab-btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Gallery and Ranking Header with Tabs */
.gallery-header,
.ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.gallery-title,
.ranking-title {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-nav {
    gap: 8px;
    padding: 10px 15px;
  }

  .game-link {
    padding: 5px 12px;
    font-size: 12px;
  }

  .game-tabs {
    gap: var(--space-1);
  }

  .game-tab-btn {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }

  .gallery-header,
  .ranking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .game-tabs {
    margin-left: 0;
    width: 100%;
  }

  .game-tab-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .game-nav {
    gap: 6px;
    padding: 8px 10px;
  }

  .game-link {
    padding: 4px 10px;
    font-size: 11px;
  }
}
