/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b9d;
  --primary-dark: #e85a8a;
  --secondary: #ffd93d;
  --accent: #6bcb77;
  --bg-gradient: linear-gradient(135deg, #fff5f8 0%, #fff9e6 50%, #f0fff4 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
  --shadow-hover: 0 15px 50px rgba(255, 107, 157, 0.3);
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* 접근성: 본문 바로가기 링크 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 500;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ========================================
   사이트 헤더
   ======================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.1);
}

.nav-link.active {
  color: white;
  background: var(--primary);
}

/* 헤더 반응형 */
@media (max-width: 600px) {
  .nav-container {
    padding: 12px 15px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ========================================
   사이트 푸터
   ======================================== */
.site-footer {
  background: #2d3436;
  color: #b2bec3;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b2bec3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* 푸터 반응형 */
@media (max-width: 600px) {
  .site-footer {
    padding: 40px 15px 15px;
    margin-top: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1rem;
  }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screens */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Start Screen */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(5px);
}

/* Dessert Preview */
.dessert-preview {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  font-size: 2.5rem;
}

.dessert-preview span {
  animation: float 3s ease-in-out infinite;
}

.dessert-preview span:nth-child(1) { animation-delay: 0s; }
.dessert-preview span:nth-child(2) { animation-delay: 0.2s; }
.dessert-preview span:nth-child(3) { animation-delay: 0.4s; }
.dessert-preview span:nth-child(4) { animation-delay: 0.6s; }
.dessert-preview span:nth-child(5) { animation-delay: 0.8s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Quiz Screen */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.quiz-container {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.question-number {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.question {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-primary);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background: white;
  border: 2px solid #f0f0f0;
  padding: 18px 25px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 15px;
}

.option:hover {
  border-color: var(--primary);
  background: #fff5f8;
  transform: translateX(5px);
}

.option-icon {
  font-size: 1.5rem;
}

/* Result Screen */
.result-container {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.result-icon {
  font-size: 100px;
  margin-bottom: 20px;
  animation: celebrate 1s ease-in-out;
}

.result-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes celebrate {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.result-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 400;
}

.result-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.result-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tag {
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.result-tip {
  background: linear-gradient(135deg, #f0fff4, #e8f5e9);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #2e7d32;
  line-height: 1.6;
}

.result-tip::before {
  content: "💡 ";
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   공통 페이지 스타일 (about, desserts, privacy, terms)
   ======================================== */

.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.page-content {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* CTA 섹션 */
.cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  border-radius: 20px;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 공통 페이지 반응형 */
@media (max-width: 768px) {
  .page-container {
    padding: 20px 15px;
  }

  .page-content {
    padding: 30px 25px;
    border-radius: 20px;
  }

  .page-content h1 {
    font-size: 1.6rem;
  }

  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .cta-section {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 25px 18px;
  }

  .page-content h1 {
    font-size: 1.4rem;
  }

  .cta-section {
    padding: 25px 15px;
  }

  .cta-section h2 {
    font-size: 1.3rem;
  }
}

/* ========================================
   디저트 도감 페이지 스타일
   ======================================== */

/* 디저트 그리드 */
.desserts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* 디저트 카드 */
.dessert-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 디저트 카드 이미지 영역 - 고정 크기 */
.dessert-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
}

.dessert-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.dessert-card:hover .dessert-card-image img {
  transform: scale(1.05);
}

/* 디저트 카드 콘텐츠 */
.dessert-card-content {
  padding: 25px;
}

.dessert-card-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.dessert-card .dessert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.dessert-card .tag {
  font-size: 0.8rem;
  padding: 5px 12px;
}

.dessert-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 디저트 정보 */
.dessert-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.dessert-info .info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.dessert-info .info-item:last-child {
  border-bottom: none;
}

.dessert-info .info-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.dessert-info .info-item span {
  color: var(--text-secondary);
  text-align: right;
  max-width: 60%;
}

/* 디저트 팁 */
.dessert-tip {
  background: linear-gradient(135deg, #f0fff4, #e8f5e9);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #2e7d32;
  line-height: 1.5;
}

/* 필터 버튼 */
.dessert-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: white;
  border: 2px solid #eee;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 디저트 도감 반응형 - 태블릿 */
@media (max-width: 768px) {
  .desserts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dessert-card-image {
    height: 180px;
  }

  .dessert-card-content {
    padding: 20px;
  }
}

/* 디저트 도감 반응형 - 모바일 */
@media (max-width: 480px) {
  .desserts-grid {
    gap: 15px;
  }

  .dessert-card-image {
    height: 160px;
  }

  .dessert-card-content {
    padding: 18px;
  }

  .dessert-card-content h2 {
    font-size: 1.2rem;
  }

  .dessert-description {
    font-size: 0.9rem;
  }

  .dessert-info .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .dessert-info .info-item span {
    max-width: 100%;
    text-align: left;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ========================================
   소개 페이지 (About) 스타일
   ======================================== */

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 특징 그리드 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 디저트 리스트 그리드 */
.dessert-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.dessert-item {
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
}

.dessert-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 15px;
}

.dessert-note a {
  color: var(--primary);
}

/* 이용 방법 리스트 */
.how-to-list {
  counter-reset: step;
  list-style: none;
  margin: 20px 0;
}

.how-to-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
}

.how-to-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.how-to-list li strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.how-to-list li p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ 리스트 */
.faq-list {
  margin-top: 20px;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.95rem;
}

.faq-item a {
  color: var(--primary);
}

/* 연락처 정보 */
.contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* 인트로 카드 (메인 페이지) */
.intro-section {
  margin-top: 40px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.intro-section h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.intro-card {
  text-align: center;
  padding: 20px;
}

.intro-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.intro-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.intro-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 추가 정보 섹션 (결과 페이지) */
.more-info {
  margin-top: 30px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.more-info h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.more-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 정책 페이지 스타일 */
.policy-section {
  margin-bottom: 35px;
}

.policy-section h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.policy-section h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 15px 0 10px;
}

.policy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-section ul,
.policy-section ol {
  color: var(--text-secondary);
  padding-left: 25px;
  margin: 10px 0;
  line-height: 1.8;
}

.policy-section li {
  margin-bottom: 8px;
}

.last-updated {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.effective-date {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About/정책 페이지 반응형 */
@media (max-width: 600px) {
  .about-section h2 {
    font-size: 1.2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  .dessert-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-to-list li {
    padding-left: 45px;
  }

  .intro-cards {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .hero {
    padding: 35px 20px;
    border-radius: 25px;
  }

  .quiz-container {
    padding: 35px 25px;
    border-radius: 25px;
  }

  .result-container {
    padding: 40px 25px;
    border-radius: 25px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .container {
    padding: 12px;
    min-height: calc(100vh - 50px);
  }

  .hero {
    padding: 30px 18px;
    border-radius: 20px;
  }

  .hero-icon {
    font-size: 60px;
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding: 0 5px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .dessert-preview {
    font-size: 1.8rem;
    gap: 10px;
    margin-top: 25px;
  }

  /* Quiz Screen Mobile */
  .progress-bar {
    height: 6px;
    margin-bottom: 20px;
  }

  .quiz-container {
    padding: 25px 18px;
    border-radius: 20px;
  }

  .question-number {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .question {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .options {
    gap: 10px;
  }

  .option {
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    gap: 12px;
    /* 터치 친화적 크기 */
    min-height: 54px;
  }

  .option:hover {
    transform: none;
  }

  .option:active {
    transform: scale(0.98);
    border-color: var(--primary);
    background: #fff5f8;
  }

  .option-icon {
    font-size: 1.3rem;
  }

  /* Result Screen Mobile */
  .result-container {
    padding: 30px 18px;
    border-radius: 20px;
  }

  .result-icon {
    font-size: 70px;
    margin-bottom: 15px;
  }

  .result-image {
    width: 150px;
    height: 150px;
    border-radius: 15px;
  }

  .result-title {
    font-size: 1rem;
  }

  .result-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .result-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 5px;
  }

  .result-tags {
    gap: 8px;
    margin-bottom: 20px;
  }

  .tag {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .result-tip {
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-radius: 12px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  footer {
    padding: 15px;
    font-size: 0.8rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 360px) {
  .container {
    padding: 10px;
  }

  .hero {
    padding: 25px 15px;
  }

  .hero-icon {
    font-size: 50px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .dessert-preview {
    font-size: 1.5rem;
    gap: 8px;
  }

  .quiz-container {
    padding: 20px 15px;
  }

  .question {
    font-size: 1.05rem;
  }

  .option {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .result-container {
    padding: 25px 15px;
  }

  .result-image {
    width: 130px;
    height: 130px;
  }

  .result-name {
    font-size: 1.4rem;
  }

  .result-description {
    font-size: 0.9rem;
  }
}

/* iOS Safe Area 지원 */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* 터치 디바이스 호버 효과 제거 */
@media (hover: none) {
  .btn-primary:hover {
    transform: none;
  }

  .option:hover {
    transform: none;
    border-color: #f0f0f0;
    background: white;
  }
}

/* ========================================
   블로그 페이지 스타일
   ======================================== */

/* 블로그 인트로 */
.blog-intro {
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 40px;
  text-align: center;
}

.blog-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* 블로그 그리드 */
.blog-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* 블로그 카드 */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-image {
  height: 120px;
  background: linear-gradient(135deg, #fff5f8, #fff9e6, #f0fff4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-emoji {
  font-size: 3rem;
}

.blog-card-content {
  padding: 20px;
}

.blog-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: var(--primary);
}

.blog-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  color: #999;
  font-size: 0.8rem;
}

/* 카테고리 태그 */
.blog-categories {
  margin-bottom: 40px;
}

.blog-categories h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tag {
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-tag:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   블로그 아티클 페이지 스타일
   ======================================== */

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
}

/* 브레드크럼 */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* 아티클 헤더 */
.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.article-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 아티클 콘텐츠 */
.article-content {
  line-height: 1.9;
  color: var(--text-primary);
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* 목차 */
.table-of-contents {
  background: #f8f9fa;
  padding: 25px 30px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.table-of-contents h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.table-of-contents ol {
  margin: 0;
  padding-left: 20px;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: var(--primary);
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* 섹션 스타일 */
.article-content section {
  margin-bottom: 45px;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 25px 0 15px;
}

.article-content h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: var(--primary);
}

/* 팁 박스 */
.tip-box {
  background: linear-gradient(135deg, #f0fff4, #e8f5e9);
  padding: 20px 25px;
  border-radius: 12px;
  margin: 25px 0;
  border-left: 4px solid var(--accent);
}

.tip-box strong {
  display: block;
  color: #2e7d32;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.tip-box p {
  margin-bottom: 0;
  color: #2e7d32;
  font-size: 0.95rem;
}

.tip-box.warning {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-left-color: #ff9800;
}

.tip-box.warning strong,
.tip-box.warning p {
  color: #e65100;
}

/* 페어링 리스트 */
.pairing-list {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 10px;
  margin: 15px 0;
}

.pairing-list ul {
  margin-bottom: 0;
}

/* 요약 테이블 */
.summary-table {
  margin: 30px 0;
  overflow-x: auto;
}

.summary-table h3 {
  margin-bottom: 15px;
}

.summary-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-table th,
.summary-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.summary-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table tr:hover {
  background: #f8f9fa;
}

/* 아티클 푸터 */
.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.article-share {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.article-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 블로그 반응형 */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-article {
    padding: 30px 25px;
    border-radius: 20px;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-intro {
    padding: 20px;
    font-size: 1rem;
  }

  .table-of-contents {
    padding: 20px;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .summary-table {
    font-size: 0.9rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .blog-article {
    padding: 25px 18px;
  }

  .article-header h1 {
    font-size: 1.4rem;
  }

  .article-content h2 {
    font-size: 1.2rem;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav .btn-primary,
  .article-nav .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* 히어로 설명 텍스트 */
.hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  padding: 0 10px;
}
