/**
 * KICDA Design System - Design Tokens
 *
 * 로컬 환경(localhost:8083)에서 자동 추출된 디자인 토큰
 * 생성일: 2025-10-10
 * 추출 소스: Playwright 자동화 분석
 *
 * 이 파일은 픽셀 퍼펙트 디자인을 위한 기준값을 제공합니다.
 */

:root {
  /* ===================================
     1. Color Palette
     =================================== */

  /* Primary Colors - Phase 3 WCAG AAA 7:1 Enhanced */
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #60a5fa;

  --kicda-primary: #1d4ed8;
  --kicda-primary-dark: #1e3a8a;
  --kicda-primary-light: #60a5fa;
  --kicda-primary-50: #eff6ff;
  --kicda-primary-100: #dbeafe;
  --kicda-primary-500: #1d4ed8;
  --kicda-primary-600: #1d4ed8;
  --kicda-primary-700: #1e40af;
  --kicda-primary-800: #1e3a8a;
  --kicda-primary-900: #1e3a8a;

  /* Secondary Colors - Phase 3 WCAG AAA 7:1 Enhanced */
  --secondary: #0e7490;
  --kicda-secondary: #0e7490;
  --kicda-secondary-dark: #155e75;
  --kicda-secondary-light: #22d3ee;

  /* Status Colors - Phase 3 WCAG AAA 7:1 Enhanced */
  --success: #047857;
  --kicda-success: #047857;
  --kicda-success-dark: #065f46;
  --kicda-success-light: #34d399;

  --danger: #b91c1c;
  --kicda-danger: #b91c1c;
  --kicda-danger-dark: #991b1b;
  --kicda-danger-light: #f87171;

  --warning: #b45309;
  --kicda-warning: #b45309;
  --kicda-warning-dark: #92400e;
  --kicda-warning-light: #fbbf24;

  --kicda-info: #3b82f6;
  --kicda-info-dark: #2563eb;
  --kicda-info-light: #60a5fa;

  /* Neutral Colors - Complete Gray Scale (Tailwind-inspired) */

  /* Gray Scale - 11 steps from darkest to lightest */
  --kicda-gray-950: #030712;   /* Almost black */
  --kicda-gray-900: #111827;   /* Very dark gray */
  --kicda-gray-800: #1f2937;   /* Dark gray */
  --kicda-gray-700: #374151;   /* Medium-dark gray */
  --kicda-gray-600: #374151;   /* Medium gray - Enhanced for WCAG AAA */
  --kicda-gray-500: #6b7280;   /* Base gray */
  --kicda-gray-400: #9ca3af;   /* Medium-light gray */
  --kicda-gray-300: #d1d5db;   /* Light gray */
  --kicda-gray-200: #e5e7eb;   /* Very light gray */
  --kicda-gray-100: #f3f4f6;   /* Almost white */
  --kicda-gray-50: #f9fafb;    /* Lightest gray */

  /* Pure colors */
  --kicda-white: #ffffff;
  --kicda-black: #000000;

  /* Bootstrap/Legacy Compatibility */
  --kicda-gray-bootstrap-600: #6c757d;   /* Bootstrap gray-600 (slightly different from Tailwind) */
  --kicda-blue-medium: #0066cc;          /* Medium blue variant for legacy support */

  /* Legacy Neutral Color Aliases (backward compatibility) */
  --dark: #111827;
  --kicda-dark: var(--kicda-gray-900);
  --kicda-dark-light: var(--kicda-gray-700);

  --gray: #4a4a4a;
  --kicda-gray: var(--kicda-gray-500);
  --kicda-gray-light: var(--kicda-gray-400);

  --light-gray: #f3f4f6;
  --kicda-light-gray: var(--kicda-gray-100);
  --kicda-light-gray-dark: var(--kicda-gray-200);

  --white: #ffffff;

  /* ===================================
     2. Typography
     =================================== */

  /* Font Families */
  --kicda-font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --kicda-font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --kicda-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Font Sizes - Desktop */
  --kicda-text-xs: 0.75rem;      /* 12px */
  --kicda-text-sm: 0.875rem;     /* 14px */
  --kicda-text-base: 1rem;       /* 16px */
  --kicda-text-lg: 1.125rem;     /* 18px */
  --kicda-text-xl: 1.25rem;      /* 20px */
  --kicda-text-2xl: 1.5rem;      /* 24px */
  --kicda-text-3xl: 1.875rem;    /* 30px */
  --kicda-text-4xl: 2.25rem;     /* 36px */
  --kicda-text-5xl: 3rem;        /* 48px */

  /* Font Sizes - Mobile */
  --kicda-mobile-h1: 2rem;       /* 32px */
  --kicda-mobile-h2: 1.75rem;    /* 28px */
  --kicda-mobile-h3: 1.5rem;     /* 24px */
  --kicda-mobile-h4: 1.25rem;    /* 20px */
  --kicda-mobile-h5: 1.125rem;   /* 18px */
  --kicda-mobile-h6: 1rem;       /* 16px */

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

  /* Line Heights */
  --kicda-leading-tight: 1.25;
  --kicda-leading-normal: 1.5;
  --kicda-leading-relaxed: 1.625;
  --kicda-leading-loose: 2;

  /* ===================================
     3. Spacing
     =================================== */

  /* Tailwind CSS Standard Spacing Scale */
  --kicda-space-0: 0;            /* 0px */
  --kicda-space-0\.5: 0.125rem;  /* 2px */
  --kicda-space-1: 0.25rem;      /* 4px */
  --kicda-space-1\.5: 0.375rem;  /* 6px */
  --kicda-space-2: 0.5rem;       /* 8px */
  --kicda-space-2\.5: 0.625rem;  /* 10px */
  --kicda-space-3: 0.75rem;      /* 12px */
  --kicda-space-3\.5: 0.875rem;  /* 14px */
  --kicda-space-4: 1rem;         /* 16px */
  --kicda-space-4\.5: 1.125rem;  /* 18px */
  --kicda-space-5: 1.25rem;      /* 20px */
  --kicda-space-6: 1.5rem;       /* 24px */
  --kicda-space-7: 1.75rem;      /* 28px */
  --kicda-space-7\.5: 1.875rem;  /* 30px */
  --kicda-space-8: 2rem;         /* 32px */
  --kicda-space-10: 2.5rem;      /* 40px */
  --kicda-space-12: 3rem;        /* 48px */
  --kicda-space-15: 3.75rem;     /* 60px */
  --kicda-space-16: 4rem;        /* 64px */
  --kicda-space-20: 5rem;        /* 80px */
  --kicda-space-24: 6rem;        /* 96px */
  --kicda-space-25: 6.25rem;     /* 100px */

  /* ===================================
     4. Shadows (Tailwind CSS Standard)
     =================================== */

  /* Standard Shadow System - Use these in new code */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 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);

  /* KICDA Prefixed Variants (Backward Compatibility) */
  --kicda-shadow-sm: var(--shadow-sm);
  --kicda-shadow: var(--shadow);
  --kicda-shadow-md: var(--shadow-md);
  --kicda-shadow-lg: var(--shadow-lg);
  --kicda-shadow-xl: var(--shadow-xl);
  --kicda-shadow-2xl: var(--shadow-2xl);

  /* Colored Shadows (Special Purpose) */
  --shadow-primary: 0 4px 12px rgba(37, 99, 235, 0.3);
  --shadow-primary-lg: 0 8px 20px rgba(37, 99, 235, 0.4);

  /* ===================================
     5. Border Radius
     =================================== */

  --kicda-radius-sm: 0.125rem;   /* 2px */
  --kicda-radius: 0.25rem;       /* 4px */
  --kicda-radius-md: 0.375rem;   /* 6px */
  --kicda-radius-lg: 0.5rem;     /* 8px */
  --kicda-radius-xl: 0.75rem;    /* 12px */
  --kicda-radius-2xl: 1rem;      /* 16px */
  --kicda-radius-full: 9999px;

  /* ===================================
     6. Transitions
     =================================== */

  --kicda-transition-fast: 150ms ease-in-out;
  --kicda-transition: 200ms ease-in-out;
  --kicda-transition-slow: 300ms ease-in-out;

  /* ===================================
     7. Menu-Specific Tokens
     =================================== */

  --menu-bg: #ffffff;
  --menu-text: var(--kicda-gray-900);
  --menu-text-hover: #2563eb;
  --menu-border: #e5e5e5;
  --menu-shadow: var(--shadow);
  --menu-shadow-hover: var(--shadow-md);
  --menu-font-size: 15px;
  --menu-font-weight: 500;
  --menu-letter-spacing: -0.02em;
  --menu-line-height: 1.5;
  --menu-padding-x: 24px;
  --menu-padding-y: 16px;
  --menu-gap: 32px;
  --menu-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --menu-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --menu-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   8. Extracted Component Values
   =================================== */

/* Navigation */
.navbar,
nav,
header {
  --nav-height: 73px;
  --nav-bg: rgb(255, 255, 255);
  --nav-text: rgb(17, 24, 39);
  --nav-shadow: rgba(0, 0, 0, 0.08) 0px 2px 8px 0px;
  --nav-padding-x: 0px;
  --nav-padding-y: 0px;
}

/* Hero Section */
.hero,
.banner {
  --hero-padding-top: 25px;
  --hero-padding-bottom: 25px;
  --hero-padding-left: 20px;
  --hero-padding-right: 20px;
  --hero-bg: transparent;
}

/* Typography */
h1 {
  font-family: var(--kicda-font-primary);
  font-size: 48px;
  font-weight: 700;
  line-height: 57.6px;
  color: rgb(17, 24, 39);
  margin: 0 0 20px;
}

h2 {
  font-family: var(--kicda-font-primary);
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  color: rgb(17, 24, 39);
  margin: 0 0 30px;
}

h3 {
  font-family: var(--kicda-font-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: rgb(17, 24, 39);
  margin: 20px 0 16px;
}

body {
  font-family: var(--kicda-font-primary);
  font-size: 16px;
  line-height: 24px;
  color: rgb(17, 24, 39);
  background-color: rgb(255, 255, 255);
}

/* Navigation Links */
/* 주석 처리: kicda-menu-2025.css의 --menu-font-size 변수 사용을 위해 */
/*
nav a,
.navbar a {
  font-size: 24px;
  font-weight: 700;
  color: rgb(26, 26, 26);
  padding: 0;
  margin: 0;
}
*/

/* Button Variants */
.btn-primary {
  background-color: rgb(37, 99, 235);
  color: rgb(255, 255, 255);
  border-color: rgb(37, 99, 235);
}

.btn-outline-primary {
  background-color: transparent;
  color: rgb(37, 99, 235);
  border-color: rgb(37, 99, 235);
}

.btn-secondary {
  background-color: rgb(6, 182, 212);
  color: rgb(255, 255, 255);
  border-color: rgb(6, 182, 212);
}

.btn-outline-white {
  background-color: transparent;
  color: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
}

.btn-white {
  background-color: rgb(255, 255, 255);
  color: rgb(37, 99, 235);
  border-color: rgb(37, 99, 235);
}

.btn-gray {
  background-color: rgb(240, 240, 240);
  color: rgb(153, 153, 153);
  border-color: transparent;
}

.btn-yellow {
  background-color: rgb(254, 229, 0);
  color: rgb(60, 30, 30);
  border-color: rgb(60, 30, 30);
}

/* ===================================
   9. Utility Classes
   =================================== */

/* Spacing Utilities */
.p-hero {
  padding-top: var(--hero-padding-top);
  padding-bottom: var(--hero-padding-bottom);
  padding-left: var(--hero-padding-left);
  padding-right: var(--hero-padding-right);
}

.p-nav {
  padding-left: var(--nav-padding-x);
  padding-right: var(--nav-padding-x);
  padding-top: var(--nav-padding-y);
  padding-bottom: var(--nav-padding-y);
}

/* Shadow Utilities */
.shadow-nav {
  box-shadow: var(--nav-shadow);
}

.shadow-menu {
  box-shadow: var(--menu-shadow);
}

.shadow-menu-hover:hover {
  box-shadow: var(--menu-shadow-hover);
}

/* Transition Utilities */
.transition-fast {
  transition: var(--kicda-transition-fast);
}

.transition {
  transition: var(--kicda-transition);
}

.transition-slow {
  transition: var(--kicda-transition-slow);
}

.transition-menu-fast {
  transition: var(--menu-transition-fast);
}

.transition-menu {
  transition: var(--menu-transition-normal);
}

.transition-menu-slow {
  transition: var(--menu-transition-slow);
}
