body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding-top: 70px; /* 네비게이션 바 높이 고려 */
  line-height: 1.6;
}

/* 네비게이션 바 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #e67e22;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #34495e;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e67e22;
}

.container {
  width: 90%;
  max-width: 850px;
  margin: 40px auto;
  background-color: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.section {
  padding: 40px 0;
}

h1, h2, h3 {
  color: #2c3e50;
}

h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}

.section-desc {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 15px;
}

/* 히어로 섹션 */
.hero {
  text-align: center;
  padding: 40px 0;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 20px;
}

.value-props {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.prop-item {
  background: #fdf2e9;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  color: #d35400;
}

/* AI 레시피 */
.api-key-container {
  margin-bottom: 30px;
  text-align: left;
}

.api-key-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

#api-key {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  box-sizing: border-box;
}

.input-container {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

#ingredients {
  flex-grow: 1;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-size: 16px;
}

#get-recipes {
  padding: 14px 30px;
  background-color: #e67e22;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#get-recipes:hover {
  background-color: #d35400;
}

.recipe {
  background: #fcfcfc;
  padding: 30px;
  border-radius: 15px;
  border-left: 6px solid #e67e22;
  text-align: left;
}

/* 문의 폼 섹션 */
.contact-section {
  background-color: #fdfdfd;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #34495e;
  font-size: 14px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
  background-color: #fff;
}

#my-form-button {
  width: 100%;
  padding: 16px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#my-form-button:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#my-form-button:active {
  transform: translateY(0);
}

#my-form-status {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.success { color: #27ae60; }
.error { color: #e74c3c; }

/* 정책 섹션 */
.policy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.policy-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.policy-item p {
  font-size: 14px;
  color: #666;
}

/* 푸터 */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 50px 0;
  text-align: center;
  margin-top: 60px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  margin: 0 10px;
}

.footer-info {
  font-size: 13px;
  color: #7f8c8d;
}

/* 공통 요소 */
.divider {
  border: 0;
  height: 1px;
  background-color: #eee;
  margin: 40px 0;
}

.hidden { display: none; }

.spinner {
  width: 40px; height: 40px;
  border: 4px solid #f3f3f3; border-top: 4px solid #e67e22;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* 반응형 */
@media (max-width: 768px) {
  .policy-content { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container { padding: 30px; }
}

/* SNS 공유 버튼 */
.share-section {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background-color: #fcfcfc;
  border-radius: 15px;
  border: 1px dashed #e67e22;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
  border: none;
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.share-btn:hover {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.share-kakao { background-color: #FEE500; }
.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #000000; }
.share-copy { background-color: #7f8c8d; }

.share-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.share-kakao svg { fill: #3C1E1E; }

/* 토스트 메시지 */
#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 30px;
  font-size: 14px;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
