:root {
  --bg-color: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-color: #3b82f6;
  --white: #ffffff;
  --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-deep: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Lotto Ball Colors */
  --ball-yellow: #facc15;
  --ball-blue: #3b82f6;
  --ball-red: #ef4444;
  --ball-gray: #9ca3af;
  --ball-green: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  line-height: 1.5;
  padding: 2rem 0;
}

.main-nav {
  margin-bottom: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background-color: var(--white);
  box-shadow: var(--shadow-soft);
}

.main-nav a:hover {
  color: var(--accent-color);
  box-shadow: var(--shadow-deep);
}

/* Drag and Drop Zone */
.drop-zone {
  max-width: 100%;
  height: 200px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  border: 2px dashed #e5e7eb;
  border-radius: 1rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.drop-zone--over {
  border-color: var(--accent-color);
  background-color: #f0f7ff;
}

.drop-zone__input {
  display: none;
}

.drop-zone__prompt {
  line-height: 1.4;
}

.image-preview-container {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-deep);
  width: 100%;
  max-width: 500px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.ball-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  min-height: 80px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.placeholder-text {
  color: var(--text-secondary);
  font-style: italic;
  display: flex;
  align-items: center;
}

.controls {
  display: flex;
  justify-content: center;
}

.primary-btn {
  background-color: var(--text-primary);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background-color: #000;
  box-shadow: var(--shadow-deep);
}

.primary-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container {
    margin: 1rem;
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .ball-container {
    gap: 0.5rem;
  }
}

/* AI Scanner Styles */
.ai-scanner-section {
  margin-top: 3rem;
  text-align: center;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.upload-container {
  margin-bottom: 1.5rem;
}

.file-input {
  display: none;
}

.image-preview-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
}

.label-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.label-container div {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  color: var(--text-primary);
}

/* Contact Form Styles */
.contact-section {
  margin-top: 3rem;
  text-align: left;
}

.divider {
  height: 1px;
  background-color: #eee;
  margin-bottom: 2rem;
}

.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.secondary-btn {
  background-color: #f3f4f6;
  color: var(--text-primary);
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background-color: #e5e7eb;
}

.comments-section {
  margin-top: 3rem;
}

.comments-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
