﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Dark Neon Palette ─────────────────── */
  --primary:       #f2792a;   /* orange – language domains */
  --primary-light: #ff9d52;
  --primary-dark:  #c25a14;
  --primary-bg:    #2a1a0c;

  --green:         #03aad6;   /* cyan – image domains */
  --green-light:   #29c4e8;
  --green-bg:      #0c1e2a;

  --accent-sky:    #ff9d52;
  --accent-blue:   #f2792a;

  /* Domain colors */
  --d-memory:    #f2792a;   /* orange – 논리적 언어 인지 */
  --d-memory-bg: #2a1a0c;
  --d-attn:      #ff9d52;   /* light orange – 정서적 언어 인지 */
  --d-attn-bg:   #2a1f0f;
  --d-exec:      #03aad6;   /* cyan – 분석적 이미지 인지 */
  --d-exec-bg:   #0c1e2a;
  --d-lang:      #29c4e8;   /* light cyan – 예술적 이미지 인지 */
  --d-lang-bg:   #0c1c25;

  /* Surface */
  --bg:          #0e0f21;
  --bg-white:    #141527;
  --text:        #dde1f5;
  --text-secondary: #7b87bb;
  --text-light:  #4d5880;
  --border:      #252840;
  --border-light:#1c1e34;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 6px rgba(0,0,0,0.3);
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);

  --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────── */
h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-secondary); }
a  { text-decoration: none; color: inherit; }

/* ── Layout ────────────────────────────── */
.container    { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px;  margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 820px;  margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────── */
.site-header {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.vgb-logo-img { display: block; height: 40px; width: auto; border-radius: 8px; }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { display: block; }

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

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(242,121,42,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(242,121,42,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { background: var(--border-light); color: var(--text); }

.btn-lg    { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm    { padding: 8px 16px;  font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Cards ──────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.card-sm { padding: 18px; border-radius: var(--radius); }

/* ── Progress Bar ───────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Form elements ──────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242,121,42,0.15);
}

select.form-control { cursor: pointer; }
.form-control::placeholder { color: var(--text-light); }

/* ── Likert Scale ───────────────────────── */
.likert-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.likert-option { display: none; }

.likert-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-white);
  transition: var(--transition);
  min-width: 88px;
  flex: 1;
  max-width: 110px;
  text-align: center;
}

.likert-label:hover {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.likert-option:checked + .likert-label {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(242,121,42,0.22);
  transform: translateY(-2px);
}

.likert-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.likert-option:checked + .likert-label .likert-num {
  color: var(--primary-dark);
}

.likert-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ── Domain Cards ───────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.domain-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.domain-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.domain-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.domain-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.domain-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.score-bar {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ── Badge ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: var(--primary-bg);   color: var(--primary-light); }
.badge-warning { background: var(--d-attn-bg);  color: var(--d-attn); }
.badge-danger  { background: var(--d-exec-bg);   color: var(--green-light); }

/* ── Section header ─────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Table ──────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--border-light); }
th { padding: 12px 16px; font-weight: 600; text-align: left; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--border-light); }

/* ── Modal ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* ── Animations ─────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; }               to { opacity: 1; }            }
@keyframes slideUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.fade-in-up { animation: fadeInUp 0.4s ease forwards; }

/* ── Utilities ──────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-secondary); }
.font-bold    { font-weight: 700; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Charts ─────────────────────────────── */
.chart-wrap {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ── Rec grid ───────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: #08091a;
  color: rgba(255,255,255,0.65);
  padding: 32px 0;
  margin-top: 80px;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { color: rgba(255,255,255,0.65); font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--primary-light); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .container, .container-sm, .container-md { padding: 0 16px; }
  .domain-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .domain-card { padding: 16px; }
  .likert-group { gap: 8px; }
  .likert-label { min-width: 62px; padding: 10px 6px; }
  .likert-num   { font-size: 1.2rem; }
  .likert-text  { font-size: 0.65rem; }
  .modal-box { padding: 24px 20px; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .header-inner { height: 56px; }
  .rec-grid { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .domain-grid { grid-template-columns: 1fr; }
}
