/* ========================================
   NobleHR Main Styles
   Base styles and utilities
   ======================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* Import Base Styles */
@import url('/css/base/reset.css');
@import url('/css/base/variables.css');

/* Import Layout Styles */
@import url('/css/layouts/header.css');
@import url('/css/layouts/footer.css');
@import url('/css/layouts/grid.css');

/* Import Component Styles */
@import url('/css/components/buttons.css');
@import url('/css/components/cards.css');
@import url('/css/components/forms.css');
@import url('/css/components/breadcrumb.css');

/* ========== CSS Variables ========== */
:root {
  /* Primary Colors */
  --noblehr-primary: #4F46E5;
  --noblehr-primary-dark: #4338CA;
  --noblehr-primary-light: #6366F1;
  --noblehr-primary-lighter: #818CF8;
  
  /* Secondary Colors */
  --noblehr-secondary: #10B981;
  --noblehr-accent: #F59E0B;
  --noblehr-success: #22C55E;
  --noblehr-error: #EF4444;
  
  /* Neutral Colors */
  --noblehr-white: #FFFFFF;
  --noblehr-gray-50: #F9FAFB;
  --noblehr-gray-100: #F3F4F6;
  --noblehr-gray-200: #E5E7EB;
  --noblehr-gray-300: #D1D5DB;
  --noblehr-gray-400: #9CA3AF;
  --noblehr-gray-500: #6B7280;
  --noblehr-gray-600: #4B5563;
  --noblehr-gray-700: #374151;
  --noblehr-gray-800: #1F2937;
  --noblehr-gray-900: #0e2044;
  --noblehr-dark: #0F172A;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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(--noblehr-gray-800);
  background-color: var(--noblehr-white);
  overflow-x: hidden;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--noblehr-gray-900);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
}

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

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

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

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

p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

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

a:hover {
  color: var(--noblehr-primary-dark);
}

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

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

/* ========== Lists ========== */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========== Images ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* ========== Utility Classes ========== */
.text-center {
  text-align: center;
}

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

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

.hidden {
  display: none !important;
}

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

/* ========== Focus Styles ========== */
*:focus {
  outline: 2px solid var(--noblehr-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

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

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--noblehr-gray-100);
}

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

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

/* ========== Print Styles ========== */
@media print {
  body {
    background: white;
  }
  
  .no-print {
    display: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
