:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --bg-color: #f7f7f7;
  --container-bg: #ffffff;
  --text-color: #333333;
  --muted-text: #666666;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --container-bg: #2d2d2d;
  --text-color: #f0f0f0;
  --muted-text: #aaaaaa;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background-color: var(--container-bg);
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.lang-switcher a {
  text-decoration: none;
  color: var(--muted-text);
  font-weight: bold;
  font-size: 0.9rem;
}

.lang-switcher a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.menu-container {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  padding: 20px;
}

/* Recommended Menu Card */
.recommended-menu-card {
  animation: fadeIn 0.5s ease-out;
  text-align: left;
  width: 100%;
}

.menu-name {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
}

.menu-desc {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: center;
}

.menu-tip-box {
  background-color: rgba(78, 205, 196, 0.1);
  border-left: 4px solid var(--secondary-color);
  padding: 15px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.placeholder-text, .loading-text {
  color: var(--muted-text);
  font-size: 1.2rem;
  font-style: italic;
}

#recommend-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 40px;
}

#recommend-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#recommend-btn:active {
  transform: translateY(0);
}

#recommend-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-color);
  padding-bottom: 10px;
}

.history-list {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.history-list li {
  padding: 10px;
  border-bottom: 1px solid var(--bg-color);
  animation: slideIn 0.3s ease-out;
}

.history-list li:first-child {
  font-weight: bold;
  color: var(--primary-color);
}

.partnership-section {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  background-color: var(--container-bg);
  color: var(--text-color);
}

.submit-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.site-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-color);
  font-size: 0.85rem;
  color: var(--muted-text);
}

.site-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Policy Content */
.policy-content {
  text-align: left;
  margin-top: 30px;
}

.policy-content section {
  margin-bottom: 30px;
}

.policy-content h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }
  h1 {
    font-size: 2rem;
  }
}
