/* Main Page styles */
.column {
  display: flex;
  flex-direction: column;
}

/* ── Row One ───────────────────────────────────────────────────────────────── */
.row1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  min-height: 40vh;
  background-image: linear-gradient(to bottom, #F7FFF6, #f5fff4);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding: 2.5rem 2rem 5rem;
} 

@media screen and (min-width: 768px) {
  .row1 {
    padding: 0 10% 5%;
    margin-top: 5.5rem;
    min-height: 70vh;
    flex-direction: row;
    justify-content: space-around;
  }
}

.row1-hook {
  display: flex;
  flex-direction: column;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .row1-hook {
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
  }
}

.row1-h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.row1-p {
  font-size: 1.3rem;
  line-height: 1.5;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.skincareimg {
  width: 50%;
  height: auto;
  border-radius: 12px;
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
  .skincareimg {
    flex: 0 1 35%;
    width: 35%;
    max-width: 35%;
    margin-left: 50px;
  }
}

.skincareimg:hover {
  transform: scale(1.03);
  box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.15);
}

.user-submissions {
  font-size: 0.9rem;
  font-weight: bold;
  color: #6cb56d;
  margin-bottom: 0.5rem;
  text-align: left;
  cursor: pointer;
  display: inline;
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.user-submissions:hover {
  opacity: 0.7;
}

.row1-searchwrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .row1-searchwrapper {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

.search-container {
  position: relative;
  width: clamp(350px, 50vw, 600px);
}

.search-container p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 6px;
  text-align: left;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

input[type="text"]:focus {
  border: 2px solid #A3D0A1;
  outline: none;
  border-radius: 4px;
}

.options {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  overflow-y: auto;
  max-height: 180px;
}

.option {
  padding: 10px;
  cursor: pointer;
}

.option:hover {
  background: #eee;
}

.visibleOptions {
  display: block;
}

.product-button{
  display: inline-block;
  background-color: white;
  border: 3px solid #000;
  color: #A3D0A1;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.65rem;
  cursor: pointer;
  width: 10rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media screen and (min-width: 768px) {
  .product-button {
    width: auto;
    margin-left: 2rem;
  }
}

.product-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 #000;
}

.ingredient-button{
  display: inline-block;
  background-color: #A3D0A1;
  border: 1px solid #000;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.65rem;
  cursor: pointer;
  width: 10rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media screen and (min-width: 768px) {
  .ingredient-button {
    width: auto;
    margin-left: 2rem;
  }
}

.ingredient-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 #000;
}

/* ── User Product SubmissionOverlay ───────────────────────────────────────────────────────────────── */
.userSubmissionContainer {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
}

.userSubmissionContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  width: 80%;
  height: 60vh;
  border: 4px solid #6cb56d;
  background-color: white;
  padding: 2rem;
}

.userSubmissionContent h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.userSubmissionContent h4 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.visibleuserSubmission {
  display: flex;
}

.userSubmissionForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.userSubmissionForm button {
  background-color: #A3D0A1;
  color: white;
  border: none;
  border-radius: 8px;
  border: 3px solid #000;
  width: 50%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.userSubmissionForm button:hover {
  opacity: 0.8;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px #000;
}

@media screen and (min-width: 768px) {
  .userSubmissionContainer {
    align-items: center;
  }

  .userSubmissionContent {
    width: 40%;
    height: 50vh;
    margin-top: 0;
    padding: 1rem;
  }

  .userSubmissionForm {
    width: 50%;
    gap: 1rem;
  }
}

/* ── Example cards ───────────────────────────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.examples-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.row-examples {
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: black;
  background-color: white;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 2.5px 2.5px #000;
  width: 100%;
  max-width: 400px;
  min-width: 220px;
  height: 50%;
  padding: 2rem;
}

.example-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px #000;
}

/* Coloured safety score dot */
.safety-dot {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 99px;
  color: white;
  flex: 0;
}

.safety-dot.safe    { background: #6cb56d; }
.safety-dot.caution { background: #e9a84c; }
.safety-dot.concern { background: #d9534f; }

.example-tag {
  font-size: 0.75rem;
  color: #111;
}

.example-tag + .example-tag::before {
  content: ' * ';
}

/* ── Row Two ───────────────────────────────────────────────────────────────── */
.row2 {
  background-image: linear-gradient(to bottom, white, #f5fff4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 70vh;
  gap: 2rem;
  padding: 20% 10%;
}

@media screen and (min-width: 768px) {
  .row2 {
    flex-direction: row;
    gap: 4rem;
    padding: 0 20%;
  }
}

.productBox1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  height: 80%;
  gap: 1rem;
  border: 3px solid #A3D0A1;
  border-radius: 12px;
  box-shadow: 5px 5px #A3D0A1;
  padding: 2rem;
}

.productBox1 p {
  font-size: 1.2rem;
  color: #555;
  font-weight: bold;
  margin-top: 1rem;
}

.placeholderBox{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: 300px;
  border-radius: 25px;
  background-color: #D3D3D3;
  opacity: 0.7;
  padding: 2rem;
  gap: 1rem;
}

.placeholderBox p {
  font-size: 1.2rem;
  color: #555;
  font-weight: bold;

}

.placeholderimg {
  max-width: 60%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

.productName {
  font-size: 1.5rem;
  text-align: center;
}

.productBrand {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.productPrice {
  font-size: 1.5rem;
}

.productLikes {
  display: flex;
  gap: 1rem;
}

.productActions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 10px;
  padding: 0.5rem 0;
}

.btn-analyze {
  display: inline-block;
  background-color: #6cb56d;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-analyze:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #000;
}

.btn-ulta {
  font-size: 1.2rem;
  color: #6cb56d;
  text-decoration: none;
}

.btn-ulta:hover { text-decoration: underline; }

/* ── Row Three ───────────────────────────────────────────────────────────────── */
.row3 {
  background-color: #A3D0A1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  gap: 1.75rem;
  padding: 10% 10%;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

@media screen and (min-width: 768px) {
  .row3 {
    padding: 0 clamp(5%, 5vw, 10%);
    height: 60vh;
    flex-direction: row;
    justify-content: space-around;
  }
}

.row3-card {
  background-color: white;
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 5px 5px #000;
  width: 100%;
  max-width: 400px;
  min-width: 220px;
  height: 50%;
  padding: 2rem;
}

.row3-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.row3-card p {
  font-size: 1.1rem;
  line-height: 1.4;
  opacity: 0.8;
}
