/* GLOBAL */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #FFFBF5;
  color: #262626;
  font-family: "Syndicat Grotesk", sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #000000;
  transition: opacity 0.3s ease;
    line-height: 1;
}

a:hover {
  opacity: 0.5;
    text-decoration: none;
      line-height: 1;
}


/* 
   CUSTOM TYPOGRAPHY
*/

@font-face {
  font-family: "Syndicat Grotesk";
  src: url("/fonts/SyndicatGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Limoncello Recipe";
  src: url("fonts/LimoncelloRecipe.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* 
   POSTER
*/

.poster {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #FFFBF5;
  color: #262626;
}


/* 
   PAPER TEXTURE
*/

.poster::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.4) 0px,
      rgba(255, 255, 255, 0.4) 1px,
      transparent 1px,
      transparent 4px
    );

  mix-blend-mode: multiply;
}


/* 
   RED BORDERS
*/

.top-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 9vh;
  background: #ed211b;
  z-index: 5;
}


.bottom-border {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5.5vh;
  background: #ed211b;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
  color: #000000;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
}

.footer-text a {
  display: inline;
  color: #000000;
  text-decoration: none;
  line-height: 1;
}

.footer-text a:hover {
  opacity: 0.5;
}

.footer-dot {
  display: inline;
}




/* 
   MAIN CONTENT
*/

.content {
  position: relative;
  width: 100%;
  padding: 9vh 5vw 8vh;
  z-index: 3;
}


/* 
   TITLE
*/

.title {
  margin: 1vh 0 4vh;
  color: #ed211b;
  font-family: "Limoncello Recipe", cursive;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -3px;
}


/* 
   THREE COLUMN LAYOUT
*/

.columns {
  display: grid;

  grid-template-columns:
    minmax(180px, 0.75fr)
    minmax(320px, 1.3fr)
    minmax(280px, 1.1fr);

  gap: 2.5vw;
  width: 100%;
  align-items: start;
  margin-bottom: 0;
}

.column {
  min-width: 0;
}

/* RECIPE COLUMN WRAPPER */ 
.recipe-column-wrapper { 
  min-width: 0; width: 100%; 
}


/* START OVER BUTTON */

.start-over-button {
  width: 100%;
  margin-top: 8px;
  padding: 1rem;
  border: 2px solid #262626;
  background: #ed211b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  font-family: "Syndicat Grotesk", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.start-over-button:hover {
  background: #262626;
  border-color: #262626;
  color: white;
}




/* 
   GENERAL TYPOGRAPHY
*/

.column h2 {
  margin: 0 0 1rem;
  color: #ed211b;
  font-family: "Syndicat Grotesk", sans-serif;
  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.column p {
  margin: 0 0 1.5rem;
  font-size: clamp(11px, 0.8vw, 16px);
  line-height: 1.35;
}


/* 
   LEFT COLUMN — VIBE
*/

.vibe-options {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.vibe-options li {
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 2px solid #262626;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.vibe-options li:hover {
  background: #f7c9c5;
  transform: translateX(3px);
}

.vibe-options li.selected {
  background: #ed211b;
  color: white;
  border-color: #ed211b;
}


/* 
   FLAVOR OPTIONS
*/

.flavor-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: 0 0 2rem;
}

.flavor-option {
  min-height: 42px;
  padding: 0.55rem 0.3rem;
  border: 2px solid #262626;
  background: transparent;
  color: #262626;
  font-family: "Syndicat Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.flavor-option:hover {
  background: #f7c9c5;
  transform: translateY(-1px);
}

.flavor-option.selected {
  background: #ed211b;
  border-color: #ed211b;
  color: white;
}


/* 
   SLIDERS
*/

.slider-group {
  margin-bottom: 1.8rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 0.5rem;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: #ed211b;
  cursor: pointer;
}


/* 
   INGREDIENT GRID
*/

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
}


/* 
   INGREDIENT CARD
*/

.ingredient-card {
  min-height: 170px;
  padding: 0.7rem;
  border: 2px solid #262626;
  background: transparent;
  color: #262626;
  text-align: left;
}


/* 
   INGREDIENT HEADER
*/

.ingredient-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 0.55rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid #262626;
}

.ingredient-icon {
  font-size: 22px;
}

.ingredient-name {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}


/* 
   CHECKLIST
*/

.ingredient-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ingredient-checklist label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 2px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background 0.1s ease,
    color 0.1s ease;
}

.ingredient-checklist label:hover {
  background: #f7c9c5;
}


/* 
   CUSTOM CHECKBOX
*/

.ingredient-checklist input[type="checkbox"] {
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid #262626;
  background: transparent;
  cursor: pointer;
}

.ingredient-checklist
input[type="checkbox"]:checked {
  background: #ed211b;
  border-color: #ed211b;
}

.ingredient-checklist
input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  color: white;
  font-size: 9px;
  font-weight: 900;
  line-height: 9px;
  text-align: center;
}

.ingredient-checklist
input[type="checkbox"]:checked
+ span {
  color: #ed211b;
  font-weight: 800;
}


/* 
   CUSTOM INGREDIENT
*/

.custom-ingredients {
  margin-top: 1rem;
}

.custom-ingredients > label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ed211b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ingredient-input-row {
  display: flex;
  gap: 8px;
}

.ingredient-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border: 2px solid #262626;
  background: rgba(255, 255, 255, 0.25);
  color: #262626;
  font-family: "Syndicat Grotesk", sans-serif;
  font-size: 12px;
  outline: none;
}

.ingredient-input:focus {
  border-color: #ed211b;
}

.ingredient-input::placeholder {
  color: #777;
}

.add-button {
  padding: 0.75rem 1rem;
  border: 2px solid #262626;
  background: #ed211b;
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  font-family: "Syndicat Grotesk", sans-serif;
  cursor: pointer;
}

.add-button:hover {
  background: #262626;
}


/* 
   CUSTOM TAGS
*/

.custom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.75rem;
}

.custom-tag {
  padding: 0.35rem 0.5rem;
  border: 1px solid #262626;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.custom-tag button {
  margin-left: 5px;
  padding: 0;
  border: none;
  background: none;
  font-weight: 800;
  cursor: pointer;
}


/* 
   SELECTED SUMMARY
*/

.selected-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #262626;
}

.selected-summary-title {
  margin-bottom: 0.5rem;
  color: #ed211b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-summary-text {
  font-size: 10px;
  line-height: 1.4;
}


/* 
   RECIPE COLUMN
*/

.recipe-column {
  position: relative;
  min-height: 500px;
  padding: 1.25rem;
  border: 2px solid #262626;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}


/* 
   RECIPE REFRESH BUTTON
*/

.recipe-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.recipe-action-button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0px solid #FFFBF5;
  background: transparent;
  color: #262626;
  font-family: "Syndicat Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.recipe-action-button:hover {
  background: #FFFBF5;
  border-color: #FFFBF5;
  color: #ed211b;
}

#refreshRecipe:hover {
  transform: rotate(90deg);
}



.recipe-action-button:active {
  transform: scale(0.9);
}




.recipe-eyebrow {
  margin-bottom: 0.5rem;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.recipe-title {
  margin: 0 0 1rem;
  font-family: "Limoncello Recipe", cursive;
  font-size: clamp(32px, 3vw, 55px);
  line-height: 0.95;
  color: #262626;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 1.25rem;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.recipe-section {
  margin-bottom: 1.25rem;
}

.recipe-section h3 {
  margin: 0 0 0.5rem;
  color: #ed211b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.recipe-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.recipe-section li {
  margin-bottom: 0.3rem;
  font-size: 11px;
  line-height: 1.3;
}


.recipe-instructions {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 11px;
  line-height: 1.4;
}

.recipe-instructions li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}



/* GENERATE BUTTON */

.generate-button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 3px solid #ed211b;
  background: #ed211b;
  color: white;
  font-size: 13px;
  font-weight: 900;
  font-family: "Syndicat Grotesk", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.generate-button:hover {
  background: #262626;
  border-color: #262626;
}


/* 
   ARTWORK
*/

.artwork {
  position: relative;
  top: -50px;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.artwork img {
  display: block;
  width: 100%;
  height: auto;
}














/* RESPONSIVE SECTION */



/* 
   TABLET 701px – 900px
*/

@media (max-width: 900px) {

  .columns {
    grid-template-columns:
      minmax(160px, 0.8fr)
      minmax(280px, 1.2fr);

    gap: 3vw;
  }

  .column-one {
    grid-column: 1;
  }

  .ingredient-column {
    grid-column: 2;
  }

  .recipe-column {
    grid-column: 1 / -1;
  }

}


/* MOBILE 700px < */

@media (max-width: 700px) {

  /*
     PAGE
  */

  body {
    overflow-x: hidden;
  }

  .poster {
    min-height: auto;
    overflow-x: hidden;
  }

  /*
     CONTENT
  */

  .content {
    width: 100%;
    padding: 9vh 6vw 9vh;
  }

  /*
     TITLE
  */

  .title {
    font-size: 16vw;
    margin: 1vh 0 5vh;
    letter-spacing: -2px;
  }

  /*
     STACK ALL COLUMNS
  */

  .columns {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    margin: 0;
  }

  .column {
    width: 100%;
    min-width: 0;
  }

  /*
     Reset tablet grid positioning
  */

  .column-one,
  .ingredient-column,
  .recipe-column {
    grid-column: auto;
  }

  /*
     FLAVOR OPTIONS
  */

  .flavor-options {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .flavor-option {
    min-height: 45px;
    font-size: 9px;
  }

  /*
     INGREDIENT GRID
  */

  .ingredient-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
  }

  .ingredient-card {
    min-height: 165px;
  }

  /*
     RECIPE
  */

  .recipe-column {
    width: 100%;
    min-height: auto;
    padding: 1rem;
  }

  .recipe-title {
    font-size: clamp(32px, 10vw, 50px);
  }

  .recipe-meta {
    gap: 10px;
  }

  /*
     ARTWORK
  */

  .artwork {
    top: 0;
    width: 100%;
    margin-top: 20px;
  }

  /*
     BOTTOM RED BAR
  */

  .bottom-border {
    height: 5.5vh;
    padding-right: 1rem;
    font-size: 8px;
  }

}


/* 
   SMALL MOBILE 450px <
*/

@media (max-width: 450px) {

  /*
     CONTENT
  */

  .content {
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 10vh;
  }

  /*
     TITLE
  */

  .title {
    font-size: 17vw;
    letter-spacing: -2px;
  }

  /*
     INGREDIENTS
     One card per row
  */

  .ingredient-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ingredient-card {
    min-height: auto;
  }

  /*
     CUSTOM INGREDIENT INPUT
  */

  .ingredient-input-row {
    flex-direction: column;
    gap: 8px;
  }

  .ingredient-input,
  .add-button {
    width: 100%;
  }

  /*
     RECIPE META
  */

  .recipe-meta {
    gap: 8px;
  }

  /*
     RECIPE
  */

  .recipe-column {
    padding: 0.85rem;
  }

  /*
     BOTTOM BORDER
  */

  .bottom-border {
    padding-right: 0.75rem;
    font-size: 7px;
  }

}
