/* =============================================================
   BASE.CSS — Global layout, typography, page-level animations
   ============================================================= */

/* Smooth scroll + overscroll behaviour */
html {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0,255,0,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,100,0,0.04) 0%, transparent 50%);
  margin: 0;
  padding: 10px;
  color: #1a1a1a;
  min-height: 100vh;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}


@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  background-color: rgba(20, 20, 20, 0.92);
  padding: 20px;
  overscroll-behavior-y: auto !important;
  margin: 10px auto;
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  scroll-behavior: auto;
}


/* ===== HEADINGS ===== */
h1 {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #adff2f, 0 0 30px #006400;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #00ff00, 0 0 20px #adff2f; }
  to { text-shadow: 0 0 20px #adff2f, 0 0 30px #006400; }
}


/* ===== DESCRIPTION TEXT ===== */
.description {
  font-size: 16px;
  line-height: 1.6;
  color: #e5e5e5;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* ===== UTILITY: VISIBILITY ===== */
.hidden {
  display: none !important;
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.frosted-section {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 40px 20px;
}

#comments-section {
  background: rgba(0, 50, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 2px solid #00ff00;
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  max-width: 750px;
}
.header-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,255,0,0.3);
}
@media (max-width: 768px) { .header-image { max-height: 25vh; } }

.frosted-section img.header-image {
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll !important;
  }
}
/* ===== Z-INDEX STACKING ORDER ===== */
.strain-list-container { z-index: 1; }
.tried-checkmark,
.tried-toggle,
.tried-toggle * { z-index: 2; position: relative; }
.legend { z-index: 10; }
.search-container { z-index: 20; }
#noResultsPopup { z-index: 1000; }
#strainScrollTop { z-index: 1001; }
