/* 과천시 벡터형 인재 진단 시스템 - 녹색 배경 + 핑크 강조 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 녹색 테마 */
  --primary-green: #2E7D32;
  --primary-green-light: #4CAF50;
  --primary-green-dark: #1B5E20;
  --green-bg: #E8F5E9;
  --green-hover: #66BB6A;
  
  /* 핑크 강조색 */
  --accent-pink: #FF4081;
  --accent-pink-light: #FF80AB;
  --accent-pink-dark: #F50057;
  --pink-bg: #FCE4EC;
  
  /* 보조 색상 */
  --secondary-color: #1B5E20;
  --text-primary: #1B3A1D;
  --text-secondary: #558B2F;
  --text-light: #689F38;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F1F8E9;
  --bg-accent: #E8F5E9;
  --border-color: #A5D6A7;
  
  /* 그림자 */
  --shadow-light: 0 2px 8px rgba(46, 125, 50, 0.1);
  --shadow-medium: 0 4px 16px rgba(46, 125, 50, 0.15);
  --shadow-heavy: 0 8px 24px rgba(46, 125, 50, 0.2);
  --shadow-pink: 0 4px 16px rgba(255, 64, 129, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 
               'Apple SD Gothic Neo', sans-serif;
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* 컨테이너 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 헤더 */
.header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  opacity: 0.15;
  border-radius: 50%;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: var(--green-hover);
  opacity: 0.1;
  border-radius: 50%;
}

.header-content {
  position: relative;
  z-index: 1;
}

.main-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.main-title .icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  font-weight: 400;
  margin-bottom: 8px;
}

.description {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 800px;
}

/* 랜딩 페이지 스타일 */
.landing-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
  color: white;
  padding: 80px 40px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-heavy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--accent-pink);
  opacity: 0.15;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 48px;
  opacity: 0.9;
}

/* 벡터 설명 섹션 */
.vector-explanation {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--accent-pink);
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.explanation-card {
  background: var(--green-bg);
  padding: 32px;
  border-radius: 16px;
  border-left: 5px solid var(--accent-pink);
  transition: all 0.3s ease;
}

.explanation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.explanation-card h3 {
  font-size: 1.6rem;
  color: var(--primary-green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.explanation-card .icon {
  font-size: 2rem;
}

.explanation-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 액션 버튼 그룹 */
.action-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-dark) 100%);
  color: white;
  border: none;
  padding: 24px 56px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 64, 129, 0.4);
}

.btn-primary .icon {
  font-size: 1.6rem;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-hover) 100%);
  color: white;
  border: none;
  padding: 24px 56px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(46, 125, 50, 0.4);
}

/* 카드 스타일 */
.info-card,
.result-card,
.dashboard-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover,
.result-card:hover,
.dashboard-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
  border-color: var(--accent-pink);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--accent-pink);
  display: inline-block;
}

.info-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.info-text strong {
  color: var(--accent-pink);
  font-weight: 700;
}

/* 평가 폼 */
.assessment-form {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-light);
  margin-bottom: 28px;
  border: 2px solid var(--primary-green-light);
}

.question-item {
  margin-bottom: 36px;
  padding: 28px;
  background: var(--green-bg);
  border-radius: 12px;
  border-left: 5px solid var(--accent-pink);
  transition: all 0.3s ease;
}

.question-item:hover {
  background: var(--bg-accent);
  box-shadow: var(--shadow-light);
  border-left-color: var(--accent-pink-dark);
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.question-number {
  background: var(--accent-pink);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-pink);
}

.question-text {
  flex: 1;
}

.question-content {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.question-category {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.question-category::before {
  content: '🔹 ';
}

.rating-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.rating-btn {
  width: 64px;
  height: 64px;
  border: 3px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rating-btn:hover {
  border-color: var(--accent-pink);
  transform: scale(1.15);
  box-shadow: var(--shadow-pink);
}

.rating-btn.active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
  transform: scale(1.2);
  box-shadow: var(--shadow-pink);
}

/* 제출 섹션 */
.submit-section {
  text-align: center;
  margin-top: 48px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-dark) 100%);
  color: white;
  border: none;
  padding: 20px 56px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.submit-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 64, 129, 0.5);
}

.submit-button .arrow {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.submit-button:hover .arrow {
  transform: translateX(8px);
}

/* 결과 카드 */
.grade-card {
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--bg-accent) 100%);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  border: 4px solid var(--accent-pink);
  box-shadow: var(--shadow-heavy);
  margin-bottom: 36px;
}

.grade-emoji {
  font-size: 6rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.grade-level {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.grade-score {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 20px 0;
}

.grade-summary {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 28px;
  padding: 16px 32px;
  background: var(--bg-primary);
  border-radius: 60px;
  display: inline-block;
  border: 2px solid var(--accent-pink-light);
}

.grade-description {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-primary);
  margin-top: 20px;
}

/* 차원별 점수 */
.dimensions-section {
  margin-top: 40px;
}

.dimension-item {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--green-bg);
  border-radius: 12px;
  border: 2px solid var(--primary-green-light);
}

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

.dimension-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-green);
}

.dimension-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-pink);
}

.dimension-bar {
  height: 28px;
  background: var(--bg-primary);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border-color);
}

.dimension-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-pink-light) 100%);
  border-radius: 14px;
  transition: width 1.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

/* 관리자 대시보드 */
.admin-dashboard {
  margin-top: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-hover) 100%);
  color: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent-pink);
}

.stat-card.highlight {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-dark) 100%);
  box-shadow: var(--shadow-pink);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 600;
}

/* 차트 컨테이너 */
.chart-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--primary-green-light);
}

/* 푸터 */
.footer {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
  color: white;
  text-align: center;
  padding: 32px;
  border-radius: 16px;
  margin-top: 60px;
  box-shadow: var(--shadow-medium);
}

.footer p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* 반응형 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .main-title {
    font-size: 2rem;
    flex-direction: column;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .rating-btn {
    width: 56px;
    height: 56px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-item,
.stat-card,
.explanation-card {
  animation: fadeInUp 0.6s ease-out;
}

/* 로딩 애니메이션 */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 벡터형 인재 4가지 유형 페이지 */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.type-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-pink-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent-pink);
}

.type-card:hover::before {
  opacity: 1;
}

.type-complete {
  border-color: var(--primary-green-light);
}

.type-complete:hover {
  border-color: var(--primary-green);
}

.type-direction {
  border-color: #90CAF9;
}

.type-direction:hover {
  border-color: #42A5F5;
}

.type-execution {
  border-color: #FFB74D;
}

.type-execution:hover {
  border-color: #FFA726;
}

.type-potential {
  border-color: #AED581;
}

.type-potential:hover {
  border-color: #9CCC65;
}

.type-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--green-bg);
}

.type-header .emoji {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.type-header h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.type-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--green-bg);
  color: var(--primary-green);
  border: 2px solid var(--primary-green-light);
}

.type-complete .type-badge {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--green-hover) 100%);
  color: white;
  border-color: var(--primary-green);
}

.type-direction .type-badge {
  background: linear-gradient(135deg, #42A5F5 0%, #90CAF9 100%);
  color: white;
  border-color: #42A5F5;
}

.type-execution .type-badge {
  background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
  color: white;
  border-color: #FFA726;
}

.type-potential .type-badge {
  background: linear-gradient(135deg, #9CCC65 0%, #AED581 100%);
  color: white;
  border-color: #9CCC65;
}

.type-body {
  padding: 20px 0;
}

.type-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

.type-features {
  margin: 28px 0;
}

.type-features h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.type-features h4::before {
  content: '✨';
  font-size: 1.5rem;
}

.type-features ul {
  list-style: none;
  padding: 0;
}

.type-features li {
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.type-features li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: var(--accent-pink);
  font-weight: 900;
  font-size: 1.3rem;
}

.type-strategy {
  margin-top: 28px;
  padding: 24px;
  background: var(--green-bg);
  border-radius: 12px;
  border-left: 5px solid var(--accent-pink);
}

.type-strategy h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.type-strategy h4::before {
  content: '🎯';
  font-size: 1.5rem;
}

.type-strategy p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 600;
}

/* 유형 분류 기준 카드 */
.classification-info {
  background: linear-gradient(135deg, var(--green-bg) 0%, var(--bg-accent) 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  border: 3px solid var(--accent-pink);
  box-shadow: var(--shadow-medium);
}

.classification-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.classification-info .criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.criteria-item {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--primary-green-light);
}

.criteria-item .emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.criteria-item h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.criteria-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 성장 경로 섹션 */
.growth-path {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 40px;
  margin-top: 48px;
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--primary-green-light);
}

.growth-path h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.growth-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.growth-step {
  background: var(--green-bg);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 5px solid var(--accent-pink);
  transition: all 0.3s ease;
}

.growth-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-light);
}

.growth-step .step-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.growth-step .step-content {
  flex: 1;
}

.growth-step h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.growth-step p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 네비게이션 버튼 그룹 */
.nav-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.nav-buttons .btn-primary,
.nav-buttons .btn-secondary {
  padding: 20px 48px;
  font-size: 1.3rem;
}
