/* branding.css — Unified Brand Layer (MVP v1.3 + W7 Vars) */

/* 🌿 Brand Variables */
:root {
  --brand-green: #006b3c;
  --brand-gold: #ffd700;
  --brand-blue: #007bff;
  --brand-soft-blue: #eef6fb;
  --brand-muted: #f9f9f9;
  --brand-warning: #cc0000;
  --brand-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --brand-text: #222;
  --brand-gray: #666;
}

/* 🌱 Base Styling */
body {
  background-color: var(--brand-muted);
  font-family: var(--brand-font);
  color: var(--brand-text);
  line-height: 1.6;
  padding: 40px 20px;
  max-width: 720px;
  margin: 0 auto;
}

/* 🧭 Navigation */
nav {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

nav a {
  margin-right: 15px;
  text-decoration: none;
  color: var(--brand-blue);
}

nav a:hover {
  text-decoration: underline;
}

/* 📄 Headings */
h1, h2, h3 {
  color: var(--brand-text);
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* 🧩 Forms */
textarea, input, select {
  width: 100%;
  margin: 6px 0 16px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: white;
}

select {
  background-color: white;
}

label {
  font-weight: bold;
}

/* 🌈 Buttons */
button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: var(--brand-green);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #004d2a;
}

#exportBtn {
  background-color: #eaeaea;
  color: #333;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* 🪄 Pro Badge */
.pro-badge {
  background-color: var(--brand-gold);
  color: #333;
  font-size: 0.75rem;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* 📊 Progress Bar */
#progressBar {
  width: 100%;
  background-color: #eee;
  border-radius: 8px;
  margin: 20px auto 10px;
  height: 12px;
  overflow: hidden;
  max-width: 500px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#progressFill {
  background-color: var(--brand-green);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

#progressText,
#progressLabel {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
  font-style: italic;
}

/* 💬 Quote + Tip Bar */
#quoteBar,
.quote-bar {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brand-gray);
  margin-top: 24px;
  padding-top: 8px;
  text-align: center;
  border-top: 1px dashed #ccc;
}

/* 📬 Referral */
#referralBanner {
  background-color: #e6f3ff;
  color: #004080;
  padding: 12px 16px;
  margin-top: 30px;
  border: 1px solid #b3d1f2;
  border-radius: 8px;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 🧠 Output + Feedback */
#outputBox {
  white-space: pre-wrap;
  background-color: var(--brand-soft-blue);
  border-left: 4px solid var(--brand-green);
  padding: 18px;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-top: 20px;
}

#reactionButtons {
  margin-top: 12px;
}

.reaction-buttons button {
  font-size: 1.2rem;
  margin-right: 12px;
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
}

#submitFeedback {
  margin-top: 12px;
  display: none;
}

#feedbackBox {
  margin-top: 20px;
}

.star-rating {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  direction: rtl;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}

/* 🧾 Profile Warning */
#profileWarning {
  color: var(--brand-warning);
  background-color: #fff3f3;
  padding: 12px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.95rem;
  border: 1px solid #f5c6cb;
}

/* 🛠 Extras */
#advancedFields {
  display: none;
  margin-top: 10px;
}

#draftSaved {
  font-size: 0.9rem;
  color: green;
  margin: -12px 0 10px;
}

#toggleAdvanced {
  font-size: 0.9rem;
  background: none;
  border: none;
  color: var(--brand-blue);
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 12px;
}

footer {
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
  color: #888;
}

/* 📱 Responsive */
@media screen and (max-width: 600px) {
  body {
    margin: 20px auto;
    font-size: 0.95rem;
  }

  button, textarea, input, select {
    font-size: 0.95rem;
    padding: 10px;
  }

  nav {
    font-size: 0.9rem;
  }

  .pro-badge {
    font-size: 0.7rem;
    margin-left: 4px;
  }

  #referralBanner {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  #quoteBar {
    font-size: 0.85rem;
  }

  #progressLabel,
  #progressText {
    font-size: 0.8rem;
  }
}