/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #111827;
  background: #f3f4f6;
}

/* Layout basics */
.site-header {
  padding: 1rem 1.5rem;
  background: #111827;
  color: #f9fafb;
}

.logo {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Buttons */
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.primary-button {
  background: #2563eb;
  color: #f9fafb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.secondary-button {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.secondary-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

button:disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.full-width {
  width: 100%;
}

/* Landing page */
.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.landing-card {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  text-align: center;
}

.landing-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.landing-card p {
  margin-bottom: 2rem;
  color: #4b5563;
}

/* Design page layout */
.design-main {
  padding: 2rem 1rem 3rem;
}

.design-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.design-left,
.design-right {
  flex: 1 1 320px;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.design-left h2,
.design-right h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.helper-text {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.prompt-input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  resize: vertical;
  min-height: 140px;
  margin-bottom: 1rem;
}

.prompt-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Image preview */
.image-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #f9fafb;
  margin-bottom: 1rem;
  overflow: hidden;
}

.generated-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

.hidden {
  display: none;
}

#imagePlaceholderText {
  text-align: center;
  color: #9ca3af;
  padding: 0.5rem;
}

/* Store page */
.store-main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.store-card {
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.store-card h2 {
  margin-top: 0;
}

/* Utilities */
.tiny-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .landing-card {
    padding: 2rem 1.5rem;
  }

  .site-header {
    text-align: center;
  }
}
