/* ============================== */
/* GLOBAL */
/* ============================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: #fff7fa;
  color: #33272a;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

/* ============================== */
/* HERO */
/* ============================== */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffddec 0%, #fff3f9 100%);
  border-bottom: 1px solid #ffd1e4;
}

.hero h1 {
  font-size: 30px;
  font-weight: 800;
  color: #d94f87;
}

.subtitle {
  font-size: 15px;
  max-width: 350px;
  margin: 10px auto 0;
  color: #6e4b57;
}

/* ============================== */
/* MAIN */
/* ============================== */
.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 90px;
}

/* ============================== */
/* FORM CARD */
/* ============================== */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px;
  margin-top: -18px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  border: 1px solid #ffe3f0;
  animation: fadeIn 0.7s ease;
}

.form-card h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #d94f87;
}

/* Inputs */
form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 13px;
  color: #644b53;
}

form input,
form select {
  width: 100%;
  padding: 15px 14px;
  border-radius: 14px;
  border: 1px solid #ffc9df;
  background: #fff;
  margin-top: 6px;
  font-size: 15px;
}

form input:focus,
form select:focus {
  border-color: #d94f87;
  box-shadow: 0 0 0 3px rgba(220,100,140,0.18);
}

/* ============================== */
/* BUTTON */
/* ============================== */
.generate-btn {
  margin-top: 24px;
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #d94f87, #bf3d75);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s;
}

.generate-btn:active {
  transform: scale(0.97);
}

/* Loader */
.loader {
  display: none;
  margin-top: 12px;
  text-align: center;
  color: #b3396d;
  font-size: 14px;
}

/* ============================== */
/* RESULTS */
/* ============================== */
.results {
  margin-top: 30px;
}

.result-section {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ffe3ee;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.05);
  animation: fadeIn 0.5s ease;
}

.result-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #d94f87;
}

/* lists */
.result-section ul {
  padding-left: 18px;
}

.result-section li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* copy buttons */
.copy-btn {
  background: #ffd1e4;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: #8b2e57;
  font-size: 13px;
  margin-bottom: 10px;
  cursor: pointer;
}

/* palette */
.palette {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff0f5;
  padding: 10px 12px;
  border-radius: 12px;
}

.swatch-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #e4b3c6;
}

/* ============================== */
/* INFO CARD */
/* ============================== */
.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-top: 10px;
  border: 1px solid #ffe3ee;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.05);
}

.info-card h2 {
  margin-top: 0;
  color: #d94f87;
  font-size: 20px;
}

/* ============================== */
/* BOTTOM NAV */
/* ============================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #ffd1e4;
  z-index: 10;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #d94f87;
  padding: 8px 14px;
  border-radius: 10px;
}

.nav-btn.active {
  background: #ffe3ef;
}

/* ============================== */
/* DESKTOP OVERRIDES */
/* ============================== */
@media (min-width: 700px) {
  .hero h1 {
    font-size: 38px;
  }

  .subtitle {
    font-size: 16px;
  }

  .form-card {
    padding: 30px;
  }

  .result-section,
  .info-card {
    padding: 26px;
  }
}
