/* ===========================
   Nupik Global CSS
   공통 스타일 시트
   =========================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f8f9fa; color: #1a1a2e; line-height: 1.6; }

/* ===========================
   Typography
   =========================== */
a { color: #6c5ce7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================
   Focus Indicator (WCAG)
   =========================== */
:focus-visible {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #6c5ce7;
  outline-offset: 2px;
}

/* ===========================
   Navigation
   =========================== */
.global-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-weight: 700; font-size: 17px; color: #6c5ce7; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-logo span { background: linear-gradient(135deg, #6c5ce7, #a29bfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; gap: 8px; list-style: none; }
.nav-menu a { text-decoration: none; color: #555; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-menu a:hover, .nav-menu a.active { color: #6c5ce7; background: #f0eeff; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger svg { width: 22px; height: 22px; color: #333; }
.nav-mobile-overlay { display: none; }

/* Admin / Survey dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; color: #999 !important; }
.nav-dropdown > a .lock-icon { font-size: 12px; }
.nav-dropdown > a .arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover > a, .nav-dropdown > a:hover { color: #6c5ce7 !important; background: #f0eeff; }
.nav-dropdown.nav-dropdown-survey > a { color: #555 !important; }
.nav-dropdown:hover > a .arrow { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); min-width: 180px; padding: 6px; z-index: 1001; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 9px 14px; font-size: 13px; color: #555; text-decoration: none; border-radius: 7px; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.nav-dropdown-menu a:hover { color: #6c5ce7; background: #f0eeff; }

/* Mobile nav */
.nav-mobile-divider { height: 1px; background: #e8e8e8; margin: 8px 0; }
.nav-mobile-admin-label { font-size: 12px; color: #999; font-weight: 600; padding: 8px 16px 4px; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile-overlay.open { display: flex; position: fixed; inset: 0; top: 56px; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 20px 24px; gap: 4px; z-index: 999; }
  .nav-mobile-overlay a { text-decoration: none; color: #333; font-size: 16px; font-weight: 500; padding: 14px 16px; border-radius: 10px; transition: background 0.2s; }
  .nav-mobile-overlay a:hover, .nav-mobile-overlay a.active { color: #6c5ce7; background: #f0eeff; }
}

/* ===========================
   Footer
   =========================== */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid #e8e8e8; }
.footer p { font-size: 12px; color: #aaa; }
.footer a { color: #aaa; text-decoration: none; }
.footer a:hover { color: #6c5ce7; text-decoration: underline; }

/* ===========================
   Common Components
   =========================== */

/* Buttons */
.btn-primary { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; border: none; padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,92,231,0.35); }
.btn-secondary { background: white; color: #6c5ce7; border: 1.5px solid #6c5ce7; padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-block; }
.btn-secondary:hover { background: #f0eeff; }

/* Section */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-subtitle { font-size: 16px; color: #6b6b6b; text-align: center; margin-bottom: 48px; }

/* Cards */
.card { background: white; border-radius: 12px; padding: 28px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; }

/* Tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; margin: 1px 2px; }
.tag-purple { background: #f0eeff; color: #6c5ce7; }
.tag-green { background: #eafff6; color: #00b894; }
.tag-orange { background: #fff5e6; color: #e17055; }
.tag-blue { background: #eef6ff; color: #0984e3; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: #333; }
.faq-q:hover { color: #6c5ce7; }
.faq-arrow { font-size: 18px; color: #aaa; transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-a-inner { padding: 0 0 20px; font-size: 14px; color: #666; line-height: 1.8; }

/* ===========================
   Dropdown Touch Support (Mobile)
   =========================== */
.nav-dropdown.dropdown-open .nav-dropdown-menu { display: block; }
