:root {
  --main-color: #F1E0C5;    /* 배경색 */
  --sub-color: #71816D;     /* 주요 강조색 (버튼, 제목 등) */
  --card-bg: #ffffff;
  --text-color: #333333;
  --light-text: #666666;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --main-color: #1a1a1a;
  --sub-color: #8fa38a;
  --card-bg: #2d2d2d;
  --text-color: #f1f1f1;
  --light-text: #cccccc;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--main-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 90%;
  max-width: 400px;
  transition: transform 0.3s ease, background-color 0.3s;
}

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

h1 {
  color: var(--sub-color);
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
}

.subtitle {
  color: var(--light-text);
  font-size: 14px;
  margin-bottom: 30px;
}

/* 업로드 섹션 */
.upload-container {
  margin-bottom: 20px;
}

.upload-btn {
  background-color: var(--sub-color);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(113, 129, 109, 0.3);
}

.upload-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* 이미지 미리보기 */
#preview {
  margin-top: 25px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* 결과창 */
#result {
  margin-top: 25px;
  padding: 20px;
  border-radius: 16px;
  background-color: rgba(113, 129, 109, 0.05);
  text-align: left;
  border-left: 4px solid var(--sub-color);
}

#flower-name-display {
  font-weight: 700;
  color: var(--sub-color);
  margin-bottom: 5px;
  font-size: 18px;
}

#flower-description {
  font-size: 15px;
  line-height: 1.6;
}

/* 제휴 문의 섹션 */
.contact-section {
    margin-top: 30px;
}

.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin-bottom: 25px;
}

.contact-section h3 {
    font-size: 16px;
    color: var(--sub-color);
    margin-bottom: 15px;
}

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

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.contact-form textarea {
    height: 80px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sub-color);
}

input[type="file"] {
  display: none;
}
