/* ======================================================
   VARIABLES (UNCHANGED COLORS)
====================================================== */
:root {
  --green-primary: #4f5a3c;
  --green-dark: #3b4a28;

  --bg-main: #ebe8d7;
  --bg-section: #f7f4ec;
  --bg-card: #ffffff;

  --accent-soft: #e6dbc6;
  --accent-dark: #da997d;

  --text-primary: #3f3522;
  --text-muted: #6b5d45;
}

/* ======================================================
   BASE
====================================================== */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  margin-top: 0;
}

.container-fluid {
  max-width: 1200px;
  margin: auto;
  padding: 100px 16px;
  box-sizing: border-box;
}

/* ======================================================
   HEADER
====================================================== */
.header {
  background-color: var(--green-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: fixed;
  right: 0;
  left: 0;
  z-index: 500;
}

.logo img {
  height: 60px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--green-primary);
}

nav a {
  text-decoration: none;
  color: var(--accent-soft);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-soft);
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
  }
}

/* ======================================================
   MAIN LAYOUT
====================================================== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.border-left {
  border-left: 2px solid #cbd5b5;
  padding-left: 20px;
}

/* ======================================================
   DAILY GUTI
====================================================== */
.daily-guti {
  text-align: center;
  color: #57472b;
}

.daily-guti .title {
  background: none;
  border: none;
  border-bottom: 1px dashed #57472b;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #57472b;
}

.guti-image {
  background-color: #98a47e;
  height: 150px;
  border-radius: 10px;
  position: relative;
  margin: 10px;
}

.guti-image img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 85%;
}

.ingredients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 15px;
}

.ingredient {
  text-align: center;
}

.ingredient img {
  height: 50px;
}

.ing-name {
  margin-top: 8px;
  font-size: 14px;
}

/* ======================================================
   REMEDY SECTION
====================================================== */
.remedy-section {
  display: none;
  padding: 0 10px;
}

.remedy-section.active {
  display: block;
}

.remedy-section .top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.remedy-section .title {
  font-size: 26px;
  color: #ba7853;
}

.remedy-section h2,
.remedy-section h3 {
  color: #98a47e;
}

/* ======================================================
   ADVICE SECTION
====================================================== */
#advice {
  position: relative;
}

.advice-section {
  padding: 0 10px;
}

.advice-section .problem {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.advice-card {
  background-color: #57452c;
  color: #f6f8f0;
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.advice-card img {
  height: 60px;
  margin-bottom: 8px;
}

.advice-card.active {
  background-color: #f0e2c4;
  color: #57472b;
  font-weight: bold;
}

/* ======================================================
   TABLE
====================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: #f6f8f0;
}

th,
td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: var(--green-primary);
  color: #efedd8;
}

tr:nth-child(even) {
  background-color: #efedd8;
}

tr:nth-child(odd) {
  background-color: #f0e2c4;
}

/* ======================================================
   TIP
====================================================== */
.tip-section {
  display: flex;
  margin-top: 15px;
}

.tip {
  background-color: #ba7853;
  color: #fff;
  padding: 8px;
  border-radius: 8px 0 0 8px;
  font-weight: bold;
}

.tip-section .content {
  flex: 1;
  background-color: #ead7c9;
  padding: 8px;
  border-radius: 0 8px 8px 0;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background-color: var(--bg-section);
  color: var(--green-primary);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-text p {
  margin: 0;
  line-height: 1.3;
  font-size: 12px;
}

.disclaimer-button {
  background-color: var(--green-primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.disclaimer-button:hover {
  background-color: var(--green-dark);
}

/* ======================================================
   MODAL
====================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--bg-section);
  color: var(--text-primary);
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  color: var(--text-primary);
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* ======================================================
   SIDEBAR (DESKTOP & MOBILE)
====================================================== */
.sidebar {
  background: var(--bg-section);
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar h2 {
  margin-top: 0;
}

.problem {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advice-card {
  padding: 10px;
  border-radius: 12px;
}

/* Mobile Drawer Toggle */
.sidebar-toggle {
  display: none;
  background: var(--green-primary);
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  position: fixed;
  right: 0;
  z-index: 50;
}

/* ======================================================
   MOBILE RESPONSIVENESS
====================================================== */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .border-left {
    border-left: none;
    border-top: 2px solid #cbd5b5;
    padding-top: 20px;
    padding-left: 0;
  }

  #advice {
    order: -1;
    background: var(--bg-main);
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    display: none;
    position: fixed;
    right: 0;
    left: 0;
  }

  #advice.active {
    display: block;
  }

  .advice-card {
    scroll-snap-align: start;
  }

  .ingredients {
    grid-template-columns: repeat(2, 1fr);
  }

  table {
    font-size: 14px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-left {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .ingredients {
    grid-template-columns: 1fr 1fr;
  }

  .daily-guti .title {
    font-size: 22px;
  }

  .remedy-section .title {
    font-size: 22px;
  }

  .advice-card img {
    height: 45px;
  }
}
