/* 저녁 메뉴 추천 사이트 스타일 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f3e0ff 0%, #d8b3ff 100%);
  color: #333;
  padding: 1rem;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

#refresh-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  font-size: 1.5em;
  color: #8e44ad;
}

#refresh-indicator.visible {
  transform: translateY(0);
}

h1 {
  color: #8e44ad;
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
  color: #8e44ad;
  font-size: 1.8em;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.08);
}

.subtitle {
  color: #666;
  font-size: 1em;
  margin-bottom: 2rem;
  text-align: center;
}

#suggestion-button {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

#suggestion-button:hover, #suggestion-button:active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(142, 68, 173, 0.5);
}

#suggestions-container {
  margin-top: 2rem;
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  opacity: 0;
}

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

#suggestions-container.visible {
  animation: fadeIn 0.5s forwards;
}

/* 메인 추천 스타일 */
.main-recommendation {
  background: linear-gradient(45deg, #ede0ff, #d8b3ff);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  text-align: center;
  color: #8e44ad;
  border: 2px solid #8e44ad;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.main-text {
  font-size: 1.2em;
}

.main-text strong {
  font-size: 1.4em;
  display: block;
  margin-top: 5px;
}

.main-desc {
  font-size: 0.95em;
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
}

/* 메뉴 리스트 스타일 */
#suggestions-container ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

#suggestions-container li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
  border-left: 4px solid #8e44ad;
  transition: transform 0.2s, box-shadow 0.2s;
}

#suggestions-container li:hover {
  transform: translateX(5px);
  background: #f3e0ff;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.2);
}

/* 메뉴 이미지 */
.menu-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* 메뉴 정보 */
.menu-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-info strong {
  color: #8e44ad;
  font-size: 1.1em;
}

.category {
  color: #999;
  font-size: 0.85em;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
}

.menu-desc {
  font-size: 0.85em;
  color: #777;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* Recommendation Form Styles */
.recommendation-form-section {
  margin-top: 3rem;
  padding: 25px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.recommendation-form .subtitle {
  margin-bottom: 1.5rem;
  font-size: 0.95em;
  color: #555;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #8e44ad;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #8e44ad;
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
  outline: none;
}

.recommendation-form button[type="submit"] {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  margin-top: 1.5rem;
}

.recommendation-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}


/* Comments Section (Disqus) */
.comments-section {
  margin-top: 3rem;
  padding: 25px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

#disqus_thread {
  min-height: 200px;
}

/* Footer Styles */
.site-footer {
  margin-top: 3rem;
  padding: 25px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.site-footer p {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.footer-nav {
  font-size: 0.9em;
}

.footer-nav a {
  color: #8e44ad;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #6c3483;
  text-decoration: underline;
}

/* Page Container for sub-pages */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.content-section {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 2rem;
}

.content-section h2 {
  text-align: left;
  font-size: 1.4em;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #f3e0ff;
  padding-bottom: 0.5rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  color: #8e44ad;
  font-size: 1.1em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.content-section p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section a {
  color: #8e44ad;
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 15px;
  background: #faf5ff;
  border-radius: 10px;
}

.faq-item h3 {
  margin-top: 0;
}

.faq-item p {
  margin-bottom: 0;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6em;
  }

  .subtitle {
    font-size: 0.9em;
    padding: 0 1rem;
  }

  body {
    padding: 0.5rem;
  }

  #suggestion-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  #suggestions-container {
    width: 95%;
    padding: 15px;
  }

  .main-recommendation {
    padding: 15px;
  }

  .main-image {
    height: 150px;
  }

  .main-text {
    font-size: 1.1em;
  }

  #suggestions-container li {
    padding: 10px;
    gap: 12px;
  }

  .menu-image {
    width: 60px;
    height: 60px;
  }

  .menu-info strong {
    font-size: 1em;
  }

  .recommendation-form-section {
    padding: 15px;
    width: 95%;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    width: calc(100% - 20px);
  }

  .comments-section {
    padding: 15px;
    width: 95%;
  }

  .site-footer {
    padding: 15px;
    width: 95%;
  }

  .page-container {
    padding: 1rem;
  }

  .content-section {
    padding: 20px;
  }

  .content-section h2 {
    font-size: 1.2em;
  }
}
