/* ─── Reset + Base Styles ───────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: "Poppins", sans-serif;
}

/* ─── Background Gradient + Mango Swoosh ───────────────────────────── */
.landing {
  background-image: url("/images/bg-mobile.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
  min-height: 100vh;
  height: auto;
  background-color: #902247;
}
.landing::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/images/swoosh-bottom.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  z-index: 0;
}
.results-card-instructions ol {
  padding-left: 15px;
}
.results-card-instructions ol li {
  margin-bottom: 8px;
}

/* ─── Logo ───────────────────────────── */
.header-banner {
  margin: 0 auto;
  max-width: 180px;
}
.logo {
  display: block;
  max-width: 180px;
  padding: 1.5rem 0;
  margin: 0 1rem;
  position: relative;
  z-index: 3;
}
.accents {
  display: none;
}

.btn.pinterest {
  display: none; 
}

/* ─── Card ───────────────────────────── */
.card {
  background: white;
  border-radius: 24px;
  margin: 0 auto;
  max-width: 370px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: hidden;
}
.card-content.card-left {
  padding: 3rem;
}
.card-contents-interior {
  padding: 0 1rem;
}
h1 {
  text-transform: uppercase;
}

.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 2px solid #00B14F;
  color: #00B14F;
  padding: 0.5em 1.25em;
  border-radius: 8px;
  font-weight: 600;
  font-family: sans-serif;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}
.custom-file-upload:hover {
  background-color: #00B14F;
  color: #fff;
}

/* ─── Titles ───────────────────────────── */
.title {
  color: #124c11;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.subtitle {
  font-size: 1rem;
  color: #2C512E;
  margin-bottom: 2rem;
  line-height: 1.4;
}
.sub-title {
  font-size: 1.25rem;
  color: #00b140;
  margin-bottom: .5rem;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ─── File List on Upload Page ───────────────────────── */
.file-list {
  margin-top: 1.5rem;
  text-align: left;
}
.file-item {
  background-color: #f0f7f2;
  color: #2c512e;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.remove-file-btn {
    background: none;
    border: none;
    color: #f16021;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

/* ─── Results Page Styles ───────────────────────────── */
.results-card-contents {
  padding: 1rem;
}
.results-card-instructions {
  background-color: #fef8df;
  padding: 2.25rem;
  text-align: left;
}
.results-card-instructions h3 {
  color: #2C512E;
  margin: 0 0 10px 0 !important;
  text-transform: uppercase;
}
.have-need {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
  text-align: left;
  padding: 0 1.25rem 1rem 1.25rem;
}
.i-have, .you-need {
  width: 100%;
}
.have-need ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.have-need ul li {
  margin-bottom: 0.5rem;
}
ul.have, ul.need {
  list-style: none;
  padding-left: 0;
}
ul.have li, ul.need li {
  position: relative;
  padding-left: 24px;
}
ul.have li {
  color: #11B14B;
}
ul.have li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-image: url(/images/checkmark-white.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: 4px;
  background-color: #00b140;
  border-radius: 30px;
}
ul.need li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border-radius: 30px;
  border: 2px solid #00b140;
}

/* ─── Buttons ───────────────────────────── */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.btn {
  border: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
}
.btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.btn.scan {
  background-color: #00b140;
  color: white;
}
.btn.manual {
  background-color: transparent;
  color: #00b140;
  border: 2px solid #00b140;
}
.btn.start-over {
  color: #00b140;
  border-color: #00b140;
}
.btn.btn-create, .btn.btn-create:hover {
  background-color: #F16021 !important;
  color: white;
  border: 3px solid #F16021;
}
.sbs-btns {
  flex-direction: column;
}

/* ─── Ingredient List ───────────────────────────── */
.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}
.ingredient-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
  font-family: sans-serif;
  font-size: 0.85rem;
  color: #124c11;
  font-weight: 600;
}
.ingredient-item input[type="checkbox"] {
  display: none;
}
.ingredient-item span::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #00b140;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  background-color: transparent;
}
.ingredient-item input[type="checkbox"]:checked + span::before {
  background-color: #00b140;
  border-color: #00b140;
  content: "";
  background-image: url(/images/checkmark-white.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: 4px;
}

.interior-card {
  padding: 1rem;
}
.interior-card-img {
  overflow: hidden;
  border-radius: 32px;
  /* height: 300px; */
  margin-bottom: 1.5rem;
}

/* --- Toggle Switch Styles --- */
.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #2c512e;
  margin: 1rem 0;
  width: 100%;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00b140; /* Mocktail color */
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #F16021; /* Cocktail color */
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- Pinterest Button Style --- */
.btn.pinterest {
  background-color: #E60023;
  color: white;
  border: 2px solid #E60023;
}
.btn.pinterest:hover {
  background-color: #ad001a;
  border-color: #ad001a;
}

/* NEW STYLE FOR HOMEPAGE TOGGLE POSITIONING */
.homepage-toggle {
    margin-top: 2rem;
    justify-content: center;
}

/* ─── Desktop Styles (min-width: 768px) ───────────────────────────── */
@media (min-width: 768px) {
  .landing {
    background-image: url("/images/gradient-bg-desktop.jpg");
    height: auto;
  }
  .landing::after {
    background-image: url(/images/swoosh-bottom-desktop.png);
    background-size: contain;
  }
  .logo { max-width: 240px; }
  .accents { display: inherit; position: absolute; z-index: 1; }
  .top { 
    position: absolute;
    left: -55px;
    top: 0;
    max-width: 1080px;
    width: 100%;
  }
  .bottom-left { left: 0; max-width: 350px; bottom: 0; }
  .bottom-right { bottom: 0; right: 0; width: 40%; max-width: 550px; }
  .header-banner {
    max-width: 1000px
  }
  .card { max-width: 1000px; border-radius: 32px; padding: 0rem; display: flex; gap: 2rem; }
  .results-card { flex-direction: column; }
  .results-card-contents-outter { width: 100%; position: relative; }
  .results-card-contents { padding: 2.25rem 45% 2.25rem 2.25rem; text-align: left; }
  .results-card-instructions { padding: 2.25rem; }
  
  .results-card-img { position: absolute; top: 15px; right: 15px; width: 40%; }
  .have-need { flex-direction: row; }
  .card-content.card-left { width: 65%; padding: 6rem 2rem 6rem 4rem; text-align: left; }
  .card-content.card-right { background-image: url("/images/drinks-collage.png"); background-repeat: no-repeat; background-position: center left; background-size: 1300px; padding: 2.05rem; border-radius: 0 32px 34px 0; width: 35%; }
  .interior-card { display: flex; gap: 2rem; flex-direction: row-reverse; padding: 0; }
  .interior-card-img { max-width: 40%; height: inherit; margin-bottom: 0; padding: 15px; }
  .output-img { padding: 0; }
  .interior-card .card-contents { padding: 3rem 0 3rem 3rem; text-align: left; width: 60%; }
  .title { font-size: 2.5rem; margin-bottom: 1.5rem; }
  .subtitle { font-size: 1.25rem; margin-bottom: 1.5rem; }
  .upload-options { display: flex; gap: 40px; }
  .buttons { flex-direction: row; justify-content: flex-start; gap: 1.5rem; }
  .results-buttons-options { 
    justify-content: center; 
    /* flex-wrap: wrap; */
  }
  .btn { max-width: none; font-size: 1rem; padding: 0.75rem 1.5rem; }
  .btn:hover { transform: scale(1.05); }
  .ingredient-list { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; padding: 0; }
  .sbs-btns {
    flex-direction: row;
  }
}

@media (min-width: 1200px) {
  .card {
    max-width: 1200px;
  }
  .header-banner {
    max-width: 1200px
  }
}