/* ============================================================
   Sneaky Vegan Cookies — shared styles
   Palette + type inspired by the classic cookie aisle (deep
   package-blue, cream, chocolate, chip-red, chip-gold) without
   reproducing any specific brand's logo or wordmark.
   ============================================================ */

:root {
  --cookie-blue: #0B2D6B;
  --cookie-blue-dark: #071F4D;
  --cream: #FFF8E7;
  --cream-card: #FFFDF7;
  --choc-brown: #3D2314;
  --chip-red: #E63B2E;
  --chip-gold: #F2A93B;
  --mid-blue: #3E6FBF;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--cream);
  color: var(--choc-brown);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: var(--cookie-blue);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------- Header / package label ---------------- */

.package-header {
  background-color: var(--cookie-blue);
  color: var(--cream);
  padding: 32px 20px 28px;
  text-align: center;
  border-bottom: 6px solid var(--chip-gold);
}

.package-header .nav-link {
  color: var(--cream);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.header-button-row {
  margin-top: 14px;
  margin-bottom: 10px;
}

.nav-button-secondary {
  background-color: transparent;
  color: var(--cream) !important;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 20px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-button-secondary:hover {
  background-color: var(--cream);
  color: var(--cookie-blue) !important;
}

.report-link {
  display: inline-block;
  margin-bottom: 14px;
  opacity: 0.85;
}

.report-link:hover {
  opacity: 1;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.bite-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.wordmark {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--cream);
}

.tagline {
  font-family: 'Baloo 2', sans-serif;
  color: var(--chip-gold);
  font-size: 15px;
  margin: 4px 0 0;
}

.store-blurb {
  font-size: 12px;
  color: var(--cream);
  opacity: 0.85;
  margin-top: 10px;
}

/* ---------------- Page body ---------------- */

.page-body {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------- Search ---------------- */

#searchInput {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 14px 16px;
  margin: 18px auto 0;
  font-size: 16px;
  font-family: 'Nunito Sans', sans-serif;
  border: 3px solid var(--choc-brown);
  border-radius: 999px;
  background-color: var(--cream-card);
  color: var(--choc-brown);
}

#searchInput:focus {
  outline: none;
  border-color: var(--chip-red);
}

#searchInput::placeholder {
  color: #a89684;
}

#storeFilter {
  display: block;
  width: auto;
  max-width: 260px;
  margin: 12px auto 0;
  padding: 8px 36px 8px 16px;
  font-size: 14px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  border: 2px solid var(--choc-brown);
  border-radius: 999px;
  background-color: var(--cream-card);
  color: var(--choc-brown);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233D2314' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

#storeFilter:focus {
  outline: none;
  border-color: var(--chip-red);
}

#cookieList {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.cookieItem {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 2px solid var(--choc-brown);
  border-radius: 12px;
  background-color: var(--cream-card);
  color: var(--choc-brown);
  font-weight: 700;
}

/* ---------------- List page ---------------- */

.retailer-group {
  width: 100%;
  margin-bottom: 24px;
}

.retailer-tag {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--cream);
  margin-bottom: 10px;
}

.tag-walmart { background-color: var(--chip-red); }
.tag-kroger { background-color: var(--chip-gold); color: var(--choc-brown); }
.tag-dollar-general { background-color: var(--choc-brown); }
.tag-aldi { background-color: var(--mid-blue); }
.tag-target { background-color: var(--cookie-blue); border: 1px solid var(--chip-gold); }
.tag-heb { background-color: #D9A066; color: var(--choc-brown); }
.tag-safeway { background-color: #B23020; }
.tag-stop-shop { background-color: #4C8577; }
.tag-food-lion { background-color: #C98A2B; color: var(--choc-brown); }
.tag-winco { background-color: #6B7A8F; }

.cookie-row {
  padding: 10px 16px;
  border: 2px solid var(--choc-brown);
  border-top-width: 0;
  background-color: var(--cream-card);
  font-weight: 600;
}

.cookie-row:first-of-type {
  border-top-width: 2px;
  border-radius: 12px 12px 0 0;
}

.cookie-row:last-of-type {
  border-radius: 0 0 12px 12px;
}

/* ---------------- Forms (Add a cookie) ---------------- */

.form-field {
  width: 100%;
  margin-bottom: 18px;
  text-align: left;
}

.form-field label {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--choc-brown);
}

.form-field .hint {
  display: block;
  font-size: 12px;
  color: #8a7460;
  margin-top: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Nunito Sans', sans-serif;
  border: 3px solid var(--choc-brown);
  border-radius: 12px;
  background-color: var(--cream-card);
  color: var(--choc-brown);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--chip-red);
}

.form-field input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Nunito Sans', sans-serif;
  border: 3px dashed var(--choc-brown);
  border-radius: 12px;
  background-color: var(--cream-card);
  color: var(--choc-brown);
}

.form-field input[type="file"]::file-selector-button {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--cream);
  background-color: var(--cookie-blue);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
}

.submit-button {
  font-family: 'Baloo 2', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  background-color: var(--chip-red);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  width: 100%;
}

.submit-button:hover {
  background-color: #c92f21;
}

.intro-text {
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
  line-height: 1.5;
}
