/* ═══════════════════════════════════════
   ADPR Global Base Styles
   Shared across all pages
   ═══════════════════════════════════════ */

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

:root {
  --white: #FFFFFF;
  --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;

  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  --green-50: #ECFDF5;
  --green-500: #10B981;
  --green-600: #059669;

  --amber-50: #FFFBEB;
  --amber-500: #F59E0B;

  --orange-50: #FFF7ED;
  --orange-500: #F97316;

  --red-50: #FEF2F2;
  --red-500: #EF4444;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-height: 64px;
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }

/* ─── LOGO ─── */
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--gray-900);
}

.logo-sub {
  color: var(--gray-400);
  font-weight: 400;
  font-size: 12px;
  margin-left: 5px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  padding: 0 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  background: none;
  border: none;
  font-family: var(--font);
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-50); }
.nav-link i { font-size: 11px; transition: transform 0.2s; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.nav-dropdown.dropdown-compact { min-width: 200px; }

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s;
}
.dropdown-link:hover { background: var(--gray-50); }
.dropdown-link > i {
  font-size: 18px;
  color: var(--gray-400);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.dropdown-link:hover > i { color: var(--blue-600); }
.dropdown-link div { display: flex; flex-direction: column; gap: 1px; }
.dropdown-link strong { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.dropdown-link span { font-size: 11px; color: var(--gray-400); }
.dropdown-compact .dropdown-link { gap: 10px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cta {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--gray-900);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gray-700); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-700);
  padding: 8px;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-600);
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-nav-group { margin-bottom: 28px; }
.mobile-nav-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 4px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-link i { font-size: 18px; color: var(--gray-400); width: 24px; text-align: center; }

.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--blue-600);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-outline:hover { border-color: var(--gray-300); background: var(--gray-50); }

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 10px; }

/* ─── FOOTER ─── */
.footer {
  padding: 56px 24px 36px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gray-900); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-400);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--gray-400); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--gray-600); }

/* ─── UTILITIES ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
