/* =========================================
   GLOBAL VARIABLES & TYPOGRAPHY
========================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;600;700&display=swap");

:root {
  --primary-green: #7D9B7A;
  --primary-green-dark: #6B8968;
  --luxury-dark: #1A3C34; /* Dark Green for luxury elements */
  --background: #FAF8F3;
  --card-bg: #ffffff;
  --text-dark: #3D3D3D;
  --text-muted: #6B6B6B;
  --border-light: #E8E4DC;
  --shadow-soft: 0 3px 8px rgba(0, 0, 0, 0.06);
  --radius-large: 40px;
  --radius-medium: 20px;
  --transition: all 0.25s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-size: 16px;
}

/* =========================================
   HEADINGS & TEXT
========================================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
h1 { font-size: 3.8rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1rem; }

/* =========================================
   NAVBAR
========================================= */
.navbar {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 2rem;
  position: sticky; top: 0; z-index: 100;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.25rem; font-weight: 600; color: var(--primary-green);
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  text-decoration: none; color: var(--text-dark); font-weight: 500; transition: var(--transition);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary-green); }
.nav-cta {
  border: none; border-radius: var(--radius-large);
  background-color: var(--primary-green); color:#fff;
  padding: .6rem 1.4rem; font-weight: 500; cursor:pointer; transition: var(--transition);
  text-decoration: none; /* Ensure no underline */
  font-size: 0.9rem;
}
.nav-cta.secondary { background-color: transparent; color: var(--primary-green); border: 2px solid var(--primary-green); }
.nav-cta:hover { background-color: var(--primary-green-dark); color:#fff; }

/* User Menu Styles */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-large);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}
.user-btn:hover {
  background: #e9f1ea;
  border-color: var(--primary-green);
  color: var(--primary-green);
}
.user-btn i {
  font-size: 1rem;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 1000;
}
.user-dropdown a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.user-dropdown a:hover {
  background: #f5f5f5;
  color: var(--primary-green);
  padding-left: 1.5rem;
}
.dropdown-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0.5rem 0;
}

/* Navigation Link Active State */
.nav-links a.active {
  color: var(--primary-green);
  font-weight: 600;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90; /* CHANGED: Lowered from 999 to 90 to sit below the Navbar (z-index 100) */
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo span {
    display: none; /* Hide text on very small screens */
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .user-menu {
    width: 100%;
  }

  .user-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .user-dropdown {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    margin-top: 0.5rem;
    border-radius: var(--radius-medium);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .nav-logo span {
    display: inline; /* Show text on tablets */
  }
}

/* =========================================
   HERO SECTION
========================================= */
.hero { padding: 5rem 2rem; background: var(--background); }
.hero-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.hero-content {
  padding-top: 2rem;
}
.hero-title { font-size: 3.8rem; margin-bottom: 1.5rem; line-height: 1.2; font-weight: 700; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 2.5rem; line-height: 1.6; }

.hero-stats { display: flex; gap: 3rem; margin-bottom: 2.5rem; }
.stat { text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 700; color: var(--primary-green); font-family: 'Playfair Display', serif; line-height: 1.2; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }

/* Skeleton Loading Animation */
.skeleton-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--primary-green) 0%,
    rgba(125, 155, 122, 0.6) 50%,
    var(--primary-green) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hero-cta { display: flex; gap: 1rem; }

/* CTA BUTTONS */
.cta-btn {
  display: inline-block; border: none; border-radius: var(--radius-large);
  padding: .9rem 1.8rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.cta-btn.primary { background-color: var(--primary-green); color:#fff; }
.cta-btn.primary:hover { background-color: var(--primary-green-dark); }
.cta-btn.secondary { background-color: transparent; border: 2px solid var(--primary-green); color: var(--primary-green); }
.cta-btn.secondary:hover { background-color: var(--primary-green); color:#fff; }

/* =========================================
   FORM CARD / MOOD SELECTOR
========================================= */
.form-card {
  background: var(--card-bg);
  border-radius: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
}
.form-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.mood-selection {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Radial Mood Wheel */
.wheel-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.mood-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  /* Creates 8 segments with subtle separators in Light Earth Mode colors */
  background: conic-gradient(
    #E8E4DC 0deg 44deg, var(--background) 44deg 45deg,
    #E8E4DC 45deg 89deg, var(--background) 89deg 90deg,
    #E8E4DC 90deg 134deg, var(--background) 134deg 135deg,
    #E8E4DC 135deg 179deg, var(--background) 179deg 180deg,
    #E8E4DC 180deg 224deg, var(--background) 224deg 225deg,
    #E8E4DC 225deg 269deg, var(--background) 269deg 270deg,
    #E8E4DC 270deg 314deg, var(--background) 314deg 315deg,
    #E8E4DC 315deg 359deg, var(--background) 359deg 360deg
  );
  box-shadow:
    0 10px 35px rgba(125, 155, 122, 0.15),
    inset 0 0 0 1px rgba(125, 155, 122, 0.1);
}

/* Center circle with glassmorphism */
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: 38%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(125, 155, 122, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.wheel-center i {
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.wheel-center h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* Mood option buttons */
.mood-option {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  text-align: center;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: -35px;
  margin-left: -35px;
  padding: 0.5rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}

.mood-option i {
  display: block;
  margin: 0 auto 0.4rem;
  font-size: 1.5rem;
  color: var(--primary-green);
  transition: var(--transition);
}

.mood-option span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Hover effect with glassmorphism */
.mood-option:hover {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 4px 12px rgba(125, 155, 122, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(125, 155, 122, 0.3);
  transform: scale(1.1);
}

.mood-option:hover i {
  color: var(--primary-green-dark);
  transform: scale(1.15);
}

/* Active state */
.mood-option.active {
  background: rgba(235, 242, 235, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--primary-green);
  box-shadow:
    0 6px 16px rgba(125, 155, 122, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

.mood-option.active i {
  color: var(--primary-green);
  transform: scale(1.2);
}

/* Focus states for accessibility */
.mood-option:focus {
  outline: none;
  border: 2px solid var(--primary-green);
  box-shadow: 0 0 0 3px rgba(125, 155, 122, 0.3);
}

.mood-option:focus-visible {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* Position each mood option around the wheel */
/* Position 1: Top (Energetic) - 22.5deg */
.opt-1 { transform: rotate(22.5deg) translate(140px) rotate(-22.5deg); }
/* Position 2: Top-Right (Focused) - 67.5deg */
.opt-2 { transform: rotate(67.5deg) translate(140px) rotate(-67.5deg); }
/* Position 3: Right (Creative) - 112.5deg */
.opt-3 { transform: rotate(112.5deg) translate(140px) rotate(-112.5deg); }
/* Position 4: Bottom-Right (Social) - 157.5deg */
.opt-4 { transform: rotate(157.5deg) translate(140px) rotate(-157.5deg); }
/* Position 5: Bottom (Sleepy) - 202.5deg */
.opt-5 { transform: rotate(202.5deg) translate(140px) rotate(-202.5deg); }
/* Position 6: Bottom-Left (Pain Relief) - 247.5deg */
.opt-6 { transform: rotate(247.5deg) translate(140px) rotate(-247.5deg); }
/* Position 7: Left (Chill) - 292.5deg */
.opt-7 { transform: rotate(292.5deg) translate(140px) rotate(-292.5deg); }
/* Position 8: Top-Left (Relaxed) - 337.5deg */
.opt-8 { transform: rotate(337.5deg) translate(140px) rotate(-337.5deg); }

/* Active state positioning - maintain position but with scale */
.mood-option.active.opt-1 { transform: rotate(22.5deg) translate(140px) rotate(-22.5deg) scale(1.15); }
.mood-option.active.opt-2 { transform: rotate(67.5deg) translate(140px) rotate(-67.5deg) scale(1.15); }
.mood-option.active.opt-3 { transform: rotate(112.5deg) translate(140px) rotate(-112.5deg) scale(1.15); }
.mood-option.active.opt-4 { transform: rotate(157.5deg) translate(140px) rotate(-157.5deg) scale(1.15); }
.mood-option.active.opt-5 { transform: rotate(202.5deg) translate(140px) rotate(-202.5deg) scale(1.15); }
.mood-option.active.opt-6 { transform: rotate(247.5deg) translate(140px) rotate(-247.5deg) scale(1.15); }
.mood-option.active.opt-7 { transform: rotate(292.5deg) translate(140px) rotate(-292.5deg) scale(1.15); }
.mood-option.active.opt-8 { transform: rotate(337.5deg) translate(140px) rotate(-337.5deg) scale(1.15); }

/* Hover state positioning */
.mood-option:hover.opt-1 { transform: rotate(22.5deg) translate(140px) rotate(-22.5deg) scale(1.1); }
.mood-option:hover.opt-2 { transform: rotate(67.5deg) translate(140px) rotate(-67.5deg) scale(1.1); }
.mood-option:hover.opt-3 { transform: rotate(112.5deg) translate(140px) rotate(-112.5deg) scale(1.1); }
.mood-option:hover.opt-4 { transform: rotate(157.5deg) translate(140px) rotate(-157.5deg) scale(1.1); }
.mood-option:hover.opt-5 { transform: rotate(202.5deg) translate(140px) rotate(-202.5deg) scale(1.1); }
.mood-option:hover.opt-6 { transform: rotate(247.5deg) translate(140px) rotate(-247.5deg) scale(1.1); }
.mood-option:hover.opt-7 { transform: rotate(292.5deg) translate(140px) rotate(-292.5deg) scale(1.1); }
.mood-option:hover.opt-8 { transform: rotate(337.5deg) translate(140px) rotate(-337.5deg) scale(1.1); }

.location-input { margin-bottom: 1.5rem; }
.location-input label { font-weight: 500; color: var(--text-dark); margin-bottom: 0.5rem; display: block; }
.location-input-group { display: grid; grid-template-columns: 1fr 48px; gap: .5rem; margin-top: .5rem; }
.location-input-group input {
  width: 100%; padding: .65rem 1rem; border: 1px solid var(--border-light);
  border-radius: var(--radius-large); outline: none; background: #fff;
}
.location-input-group input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(125, 155, 122, 0.1);
}
.location-btn {
  background: var(--card-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-large); display: grid; place-items: center; cursor: pointer; transition: var(--transition);
}
.location-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
.location-btn:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(125, 155, 122, 0.3);
}

/* Location Helper Text */
.location-helper {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border-left: 3px solid var(--primary-green);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.location-helper i {
  color: var(--primary-green);
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.location-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.find-btn {
  width: 100%; border: none; border-radius: var(--radius-large);
  background: var(--primary-green); color:#fff; font-weight: 600; padding: .9rem 1.4rem; cursor:pointer; transition: var(--transition);
}
.find-btn:hover { background: var(--primary-green-dark); }

/* =========================================
   DASHBOARD / JOURNAL / RECOMMENDATIONS
========================================= */
.section { padding: 4rem 1.5rem; }
.section-light { background: #fff; }
.section-gray { background: var(--background); }
.section-title { font-size: 2.8rem; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.2rem; }

.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem;
}
.dashboard-card {
  background: var(--card-bg); border-radius: 1.5rem; box-shadow: var(--shadow-soft); padding: 2rem; text-align: center;
}
.dashboard-btn {
  margin-top: 1rem; border: none; border-radius: var(--radius-large);
  background: var(--primary-green); color:#fff; padding: .7rem 1.2rem; font-weight: 500; cursor:pointer; transition: var(--transition);
}
.dashboard-btn:hover { background: var(--primary-green-dark); }

/* =========================================
   RESULTS & FILTERS
========================================= */
.results-section .filters-section { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-select, .apply-filters-btn {
  border-radius: var(--radius-large); padding: .6rem 1rem; border: 1px solid var(--border-light); background: #fff;
}
.apply-filters-btn { border: none; background: var(--primary-green); color:#fff; font-weight: 600; cursor:pointer; }
.apply-filters-btn:hover { background: var(--primary-green-dark); }

.dispensary-section { margin-top: 2rem; }
.dispensaries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1rem; }

/* =========================================
   EDUCATION
========================================= */
.education-section { background: #fff; }
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.education-card {
  background: var(--card-bg); border-radius: 1.5rem; box-shadow: var(--shadow-soft);
  padding: 2rem; text-align: center; transition: var(--transition);
  position: relative;
}
.education-card:hover { transform: translateY(-4px); }
.education-card.clickable {
  cursor: pointer;
}
.education-card.clickable:hover {
  box-shadow: 0 6px 20px rgba(47, 82, 51, 0.15);
  border: 2px solid var(--primary-green);
}
.card-click-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
}
.education-card.clickable:hover .card-click-hint {
  opacity: 1;
}
.education-icon { color: var(--primary-green); font-size: 2rem; margin-bottom: 1rem; }

/* =========================================
   RELIEF FINDER CARDS
========================================= */
.relief-card {
  background: var(--card-bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  display: block;
}

.relief-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(125, 155, 122, 0.2);
  border: 2px solid var(--primary-green);
}

.relief-card h3 {
  font-family: 'Playfair Display', serif;
}

.relief-cta {
  font-size: 0.95rem;
}

.relief-card:hover .relief-cta {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* Education Modal Styles */
.edu-modal {
  max-width: 800px;
}
.edu-modal .modal-body {
  line-height: 1.8;
  color: var(--text);
}
.edu-modal h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-green);
}
.edu-modal h4:first-of-type {
  margin-top: 0;
}
.edu-modal p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.edu-modal ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.edu-modal li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.edu-modal strong {
  color: var(--dark);
  font-weight: 600;
}
.edu-modal-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}
.edu-modal-icon i {
  font-size: 3rem;
  color: var(--primary-green);
}
.edu-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.edu-modal .modal-header h3 i {
  color: var(--primary-green);
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: #3D3D3D;
  padding: 3rem 1.5rem;
  color: #e0e0e0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.footer-brand {
  max-width: 450px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-logo i {
  font-size: 1.5rem;
}
.footer-brand p {
  color: #b0b0b0;
  line-height: 1.7;
  font-size: 0.95rem;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.footer-column h4 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-bottom: .9rem;
  font-size: 1.1rem;
}
.footer-column a {
  display: block;
  color: #b0b0b0;
  text-decoration: none;
  margin-bottom: .5rem;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-column a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-disclaimer {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  font-size: .85rem;
  color: #888;
  text-align: center;
  line-height: 1.6;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-disclaimer strong {
  color: #fff;
}

/* =========================================
   MODALS (HIDDEN BY DEFAULT)
========================================= */
.modal {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 96%;
  max-width: 520px;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9f1ea;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--primary-green);
  margin: 0;
}

.modal-close {
  background: #f5f5f5;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e9f1ea;
  color: var(--primary-green);
  transform: rotate(90deg);
}

/* Auth Modal Styles */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

.auth-tab:hover {
  color: var(--primary-green);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.1);
}

/* Social Auth Buttons */
.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: white;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-auth-btn:hover {
  background: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-auth-btn svg {
  flex-shrink: 0;
}

.google-btn {
  border-color: #dadce0;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #d2d3d4;
}

.apple-btn {
  background: #000;
  color: #fff;
  border-color: #000;
}

.apple-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: white;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(47, 82, 51, 0.2);
}

.auth-submit-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 82, 51, 0.3);
}

/* Journal Modal Specific Styles */
.journal-modal {
  max-width: 600px;
}

.journal-strain-info {
  background: #e9f1ea;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.journal-strain-info strong {
  color: var(--primary-green);
  font-size: 1.1rem;
}

#journalForm .form-group {
  margin-bottom: 1.5rem;
}

#journalForm label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

#journalForm input,
#journalForm select,
#journalForm textarea {
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

#journalForm input:focus,
#journalForm select:focus,
#journalForm textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.1);
}

#journalForm textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.effect-tags-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.effect-tags-select .effect-tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.effect-tags-select .effect-tag.active {
  background: #e9f1ea;
  border-color: var(--primary-green);
  color: var(--primary-green);
  font-weight: 600;
}

.effect-tags-select .effect-tag:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  user-select: none;
}

.rating-stars .star {
  cursor: pointer;
  color: #ddd;
  transition: var(--transition);
}

.rating-stars .star:hover,
.rating-stars .star.selected {
  color: #ffc107;
  transform: scale(1.2);
}

.journal-submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(47, 82, 51, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.journal-submit-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 82, 51, 0.3);
}

.journal-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.5rem;
  }
}

/* =========================================
   STRAIN CARDS - LUXURY APOTHECARY DESIGN
========================================= */
.strains-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
  gap: 2rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .strains-container {
    grid-template-columns: repeat(2, minmax(300px, 350px));
  }
}

@media (min-width: 1024px) {
  .strains-container {
    grid-template-columns: repeat(3, minmax(300px, 350px));
  }
}

.strain-card {
  background: #FDFBF7;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #E6E4DE;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.strain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Decorative Top Border */
.strain-card-top-border {
  height: 8px;
  width: 100%;
  background: #1A3C34;
}

/* Card Content Wrapper */
.strain-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header Section */
.strain-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.strain-header-info {
  flex: 1;
}

.strain-type-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8C9A96;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.strain-type-divider {
  height: 1px;
  width: 32px;
  background: #D1D6D4;
}

.strain-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #1A3C34;
  line-height: 1;
  margin: 0;
}

/* Rating Badge */
.strain-rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #1A3C34;
  color: #1A3C34;
  flex-shrink: 0;
}

.strain-rating-badge-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.strain-rating-badge-value {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Data Grid */
.strain-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #E6E4DE;
  border-bottom: 1px solid #E6E4DE;
  margin-bottom: 0.75rem;
}

.strain-data-item {
  display: flex;
  flex-direction: column;
}

.strain-data-label {
  font-size: 10px;
  color: #8C9A96;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.strain-data-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1A3C34;
  font-style: italic;
}

.strain-rating-stars {
  display: flex;
  gap: 2px;
  color: #B08D55;
  margin-top: 0.25rem;
}

.strain-rating-stars svg {
  width: 10px;
  height: 10px;
}

/* Effects Section */
.strain-effects-section {
  grid-column: 1 / -1;
}

.strain-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #4A5D56;
  font-size: 13px;
  font-weight: 500;
  margin-top: 0.4rem;
}

.effect-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.effect-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D1D6D4;
}

/* Action Area */
.strain-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.journal-btn {
  flex: 1;
  background: #1A3C34;
  color: #FDFBF7;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.025em;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  text-transform: uppercase;
  text-decoration: none;
}

.journal-btn:hover {
  background: #2C554A;
}

.strain-card:hover .journal-btn {
  background: #1A3C34;
}

.strain-details-btn {
  padding: 0.875rem;
  border-radius: 8px;
  border: 1px solid #E6E4DE;
  color: #1A3C34;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.strain-details-btn:hover {
  background: #E6E4DE;
}

/* Journal Entries Container */
.journal-entries-container {
  max-width: 900px;
  margin: 0 auto;
}

.journal-entries-container .journal-entry {
  background: #fff;
  border: 1px solid #e0e5e0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.journal-entries-container .journal-entry:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.journal-entries-container .journal-entry strong {
  color: var(--primary-green);
  font-size: 1.2rem;
}

.journal-entries-container .delete-entry {
  border: none;
  border-radius: 12px;
  background: #fee;
  color: #d32f2f;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.journal-entries-container .delete-entry:hover {
  background: #d32f2f;
  color: #fff;
}

.leafly-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-green);
  font-weight: 500;
  letter-spacing: 0.025em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  text-transform: uppercase;
}

.leafly-btn:hover {
  background: var(--primary-green);
  color: #fff;
}

/* Search page specific styles */
.database-hero {
  background: var(--background);
  padding: 4rem 1.5rem;
  text-align: center;
}

.database-hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  line-height: 1.2;
}

.database-hero h1 i {
  font-size: 3rem;
}

.database-hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.search-section {
  background: #fff;
  padding: 3rem 1.5rem;
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  font-size: 1.05rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-green);
}

/* Filter and Clear Buttons */
.filter-toggle-btn, .clear-btn {
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  background: #fff;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-toggle-btn:hover {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
}

.clear-btn {
  border-color: var(--border-light);
  color: var(--text-muted);
}

.clear-btn:hover {
  background: #C8A882;
  color: #fff;
  border-color: #C8A882;
}

/* REDESIGNED SHOW MORE BUTTON - GHOST STYLE */
.show-more-container {
  display: flex;
  justify-content: center;
  align-items: center;    /* Prevents button from stretching vertically */
  margin: 2rem 0 1.5rem;
  grid-column: 1 / -1;    /* Forces container to span all grid columns (full width) */
  width: 100%;            /* Ensures it takes up the full available width */
}

.show-more-btn {
  background: transparent;
  color: var(--luxury-dark); /* Dark Green text */
  border: 1px solid var(--luxury-dark); /* Thin luxury border */
  padding: 0.55rem 1.2rem;
  border-radius: 50px; /* Pill shape */
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none; /* No shadow by default for clean look */
}

.show-more-btn:hover {
  background: var(--luxury-dark);
  color: #FDFBF7; /* Cream text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 60, 52, 0.15);
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.show-more-btn:hover i {
  transform: translateY(2px);
}

.advanced-filters {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  padding: 2rem;
  margin-bottom: 3rem;
}

.filters-header {
  margin-bottom: 1.5rem;
}

.filters-header h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.filters-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.filter-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: #fff;
  font-size: 1rem;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: #fff;
}

.loading, .no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* =========================================
   STRAIN DETAIL MODAL
========================================= */
.strain-detail-modal {
  max-width: 700px;
}

.strain-detail-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.strain-type-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  text-transform: capitalize;
  font-family: 'Inter', sans-serif;
}

.strain-type-badge.sativa {
  background: #fef3c7;
  color: #92400e;
}

.strain-type-badge.indica {
  background: #ddd6fe;
  color: #5b21b6;
}

.strain-type-badge.hybrid {
  background: #d1fae5;
  color: #065f46;
}

.strain-detail-content {
  line-height: 1.7;
}

.strain-detail-header {
  text-align: center;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 12px;
}

.strain-rating-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars-display {
  font-size: 1.5rem;
  letter-spacing: 0.15rem;
}

.rating-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.strain-detail-section {
  margin-bottom: 2rem;
}

.strain-detail-section h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strain-detail-section h4 i {
  color: var(--primary-green);
}

.strain-detail-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.effect-tags-display,
.flavor-tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.effect-tag-large,
.flavor-tag-large {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  transition: var(--transition);
}

.effect-tag-large:hover,
.flavor-tag-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(47, 82, 51, 0.15);
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

.strain-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.modal-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-large);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.modal-action-btn.primary {
  background: var(--primary-green);
  color: white;
}

.modal-action-btn.primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 82, 51, 0.3);
}

.modal-action-btn.secondary {
  background: #f0f0f0;
  color: var(--dark);
}

.modal-action-btn.secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .strain-detail-actions {
    flex-direction: column;
  }

  .modal-action-btn {
    width: 100%;
  }
}

/* =========================================
   AI CHATBOT WIDGET
========================================= */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.ai-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green) 0%, #16a34a 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(47, 82, 51, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(47, 82, 51, 0.5);
}

.ai-chat-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.ai-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 600px;
  background: #3D3D3D;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.ai-chat-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, #16a34a 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.ai-chat-title i {
  font-size: 1.3rem;
}

.ai-chat-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ai-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message,
.user-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  flex-direction: row-reverse;
}

.ai-avatar,
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.ai-avatar {
  background: linear-gradient(135deg, var(--primary-green) 0%, #16a34a 100%);
  color: white;
}

.user-avatar {
  background: #e5e7eb;
  color: #6b7280;
}

.ai-message-content,
.user-message-content {
  background: white;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  max-width: 75%;
  line-height: 1.6;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message-content {
  background: white;
  color: #222;
}

.ai-message-content p {
  margin: 0 0 0.5rem 0;
}

.ai-message-content p:last-child {
  margin-bottom: 0;
}

.ai-message-content ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.ai-message-content li {
  margin: 0.35rem 0;
}

.ai-message-content strong {
  color: var(--dark);
  font-weight: 600;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.system-message {
  margin: 0.5rem 0;
}

.system-message-content {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-chat-input-container {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: white;
  align-items: flex-end;
}

.ai-chat-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  transition: var(--transition);
  background: white;
  color: #222;
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.1);
}

.ai-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-green);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
}

.ai-chat-send-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
}

.ai-chat-footer {
  padding: 0.75rem 1.25rem;
  text-align: center;
  background: white;
  border-radius: 0 0 16px 16px;
  border-top: 1px solid #e5e7eb;
}

.ai-chat-footer small {
  color: #6b7280;
  font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .ai-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    max-height: 100vh;
  }

  .ai-chat-header {
    border-radius: 0;
  }

  .ai-chat-footer {
    border-radius: 0;
  }

  .ai-chat-toggle {
    bottom: 16px;
    right: 16px;
  }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero { text-align: center; padding: 3rem 1.5rem; }
  .hero-stats { justify-content: center; }
  .form-card { margin-top: 2rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { gap: 2rem; }

  /* Relief Finder Cards */
  .relief-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Education Cards */
  .education-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero { padding: 2.5rem 1rem; }
  .hero-title { font-size: 2.5rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .stat-number { font-size: 2rem; }
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }

  /* Section Titles */
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 2.2rem; }
  .section-subtitle { font-size: 1.1rem; }

  /* Form Card */
  .form-card { padding: 1.75rem; }

  /* Relief Finder */
  .relief-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .relief-card { padding: 1.5rem; }
  .relief-icon { font-size: 2.5rem; }

  /* Education Cards */
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .education-card { padding: 1.5rem; }
  .education-icon { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.2rem; }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .section-subtitle { font-size: 1rem; }

  /* Sections */
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 2rem 1rem; }

  /* Buttons */
  .cta-btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  /* Stats */
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.75rem; }

  /* Cards */
  .form-card { padding: 1.5rem; }
  .relief-card { padding: 1.25rem; }
  .education-card { padding: 1.25rem; }

  /* Footer */
  .footer { padding: 2.5rem 1rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { text-align: center; }
  .footer-logo { justify-content: center; }

  /* Radial Mood Wheel - Mobile */
  .wheel-container {
    max-width: 320px;
  }

  .opt-1, .opt-2, .opt-3, .opt-4, .opt-5, .opt-6, .opt-7, .opt-8 {
    transform-origin: center;
  }

  .opt-1 { transform: rotate(22.5deg) translate(110px) rotate(-22.5deg); }
  .opt-2 { transform: rotate(67.5deg) translate(110px) rotate(-67.5deg); }
  .opt-3 { transform: rotate(112.5deg) translate(110px) rotate(-112.5deg); }
  .opt-4 { transform: rotate(157.5deg) translate(110px) rotate(-157.5deg); }
  .opt-5 { transform: rotate(202.5deg) translate(110px) rotate(-202.5deg); }
  .opt-6 { transform: rotate(247.5deg) translate(110px) rotate(-247.5deg); }
  .opt-7 { transform: rotate(292.5deg) translate(110px) rotate(-292.5deg); }
  .opt-8 { transform: rotate(337.5deg) translate(110px) rotate(-337.5deg); }

  .mood-option.active.opt-1 { transform: rotate(22.5deg) translate(110px) rotate(-22.5deg) scale(1.15); }
  .mood-option.active.opt-2 { transform: rotate(67.5deg) translate(110px) rotate(-67.5deg) scale(1.15); }
  .mood-option.active.opt-3 { transform: rotate(112.5deg) translate(110px) rotate(-112.5deg) scale(1.15); }
  .mood-option.active.opt-4 { transform: rotate(157.5deg) translate(110px) rotate(-157.5deg) scale(1.15); }
  .mood-option.active.opt-5 { transform: rotate(202.5deg) translate(110px) rotate(-202.5deg) scale(1.15); }
  .mood-option.active.opt-6 { transform: rotate(247.5deg) translate(110px) rotate(-247.5deg) scale(1.15); }
  .mood-option.active.opt-7 { transform: rotate(292.5deg) translate(110px) rotate(-292.5deg) scale(1.15); }
  .mood-option.active.opt-8 { transform: rotate(337.5deg) translate(110px) rotate(-337.5deg) scale(1.15); }

  .mood-option:hover.opt-1 { transform: rotate(22.5deg) translate(110px) rotate(-22.5deg) scale(1.1); }
  .mood-option:hover.opt-2 { transform: rotate(67.5deg) translate(110px) rotate(-67.5deg) scale(1.1); }
  .mood-option:hover.opt-3 { transform: rotate(112.5deg) translate(110px) rotate(-112.5deg) scale(1.1); }
  .mood-option:hover.opt-4 { transform: rotate(157.5deg) translate(110px) rotate(-157.5deg) scale(1.1); }
  .mood-option:hover.opt-5 { transform: rotate(202.5deg) translate(110px) rotate(-202.5deg) scale(1.1); }
  .mood-option:hover.opt-6 { transform: rotate(247.5deg) translate(110px) rotate(-247.5deg) scale(1.1); }
  .mood-option:hover.opt-7 { transform: rotate(292.5deg) translate(110px) rotate(-292.5deg) scale(1.1); }
  .mood-option:hover.opt-8 { transform: rotate(337.5deg) translate(110px) rotate(-337.5deg) scale(1.1); }

  .mood-option {
    width: 60px;
    margin-top: -30px;
    margin-left: -30px;
  }

  .mood-option i {
    font-size: 1.3rem;
  }

  .mood-option span {
    font-size: 0.7rem;
  }

  .wheel-center i {
    font-size: 1.5rem;
  }

  .wheel-center h4 {
    font-size: 0.85rem;
  }
}