/*
 * GROHIO v17.3: "Autopot Logo" Edition
 * Main Stylesheet (style.css)
 *
 * This file contains all custom styles for the GROHIO platform.
 * It is loaded *after* Tailwind CSS, allowing it to override
 * Tailwind's utility classes when necessary.
 *
 * v17.3 Changes:
 * - NEW: Added .autopot-logo-img class to apply a blue
 * drop-shadow filter for the new logo, matching other
 * site logos.
 */

/*
 * =========================================
 * ROOT VARIABLES (THEME DEFINITION)
 * =========================================
 * These are the core colors for our brand.
 * Glow is reduced for a cleaner, 'pro' look.
 */
:root {
  /* GROHIO Neon Palette */
  --grohio-red: #ff3162;
  /* Vibrant Pink/Red */
  --grohio-blue: #00bfff;
  /* Bright Blue */
  --grohio-green: #39ff14;
  /* Lime Green */
  --grohio-purple: #9f50ff;
  /* Bright Purple */

  /* --- GLOW REDUCED (v16.0) --- */
  --glow-blur: 6px;
  /* Was 12px */
  --glow-blur-light: 3px;
  /* Was 4px */

  /* Standard colors */
  --color-bg: #000000;
  --color-bg-off: #0a0a0a;
  --color-bg-card: #0d0d0d;
  --color-bg-darker: #050505;
  --color-bg-input: #1a1a1a;
  --color-border-light: #333;
  --color-border-medium: #444;
  --color-border-dark: #222;
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #bbbbbb;
  --color-text-muted: #999;
  --color-text-label: #aaa;
  --color-text-header: #ffffff;
}

/*
 * =========================================
 * GLOBAL STYLES & RESETS
 * =========================================
 * Basic styles for the entire page.
 */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  scroll-behavior: smooth;
  /* Smooth scroll for internal links */

  /* Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * =========================================
 * SCROLLBAR STYLING
 * =========================================
 * Custom scrollbar for a more integrated feel.
 */
/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-off);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-medium);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Firefox */
@supports (scrollbar-color: auto) {
  * {
    /* More specific than body for wider support */
    scrollbar-color: var(--color-border-medium) var(--color-bg-off);
    scrollbar-width: thin;
  }
}

/*
 * =========================================
 * KEYFRAME ANIMATIONS
 * =========================================
 * Custom animations used throughout the site.
 */

/* Simple fade-in for page content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Modal slide-in animation */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-modalSlideIn {
  /* We apply this to the modal itself */
  animation: modalSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* FIX: Made comment more generic */
/* Pulsing glow animation */
@keyframes pulse-glow {

  0%,
  100% {
    text-shadow: 0 0 8px var(--grohio-purple);
  }

  50% {
    text-shadow: 0 0 16px var(--grohio-purple), 0 0 24px var(--grohio-purple);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite ease-in-out;
}

/* --- NEW: Plane Tribute Icon --- */
.plane-tribute-icon {
  position: absolute;
  top: 16px;
  /* Adjusts vertical position */
  left: 14px;
  /* Adjusts horizontal position */
  width: 30px;
  /* Adjust size to match proportion of merch button */
  height: auto;
  z-index: 50;
  /* Above header content, but below fixed merch sticker */
  opacity: 0.75;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.plane-tribute-icon:hover {
  transform: scale(1.1) translateY(-5px) rotate(-5deg);
  /* Gentle lift off effect */
  filter: drop-shadow(0 0 15px var(--grohio-blue));
  /* Glows blue on hover */
  opacity: 1;
}

/* Adjust specifically for mobile so it doesn't overlap the logo too much */
@media (max-width: 768px) {
  .plane-tribute-icon {
    width: 20px;
    /* Slightly smaller on mobile */
    top: 12px;
    left: 12px;
  }
}

/*
 * =========================================
 * TYPOGRAPHY & HEADINGS
 * =========================================
 * All h1, h2, h3, etc., and text styles.
 */

/* Main logo/header glow */
h1 {
  text-shadow: 0 0 var(--glow-blur) var(--grohio-red),
    0 0 calc(var(--glow-blur) * 1.5) var(--grohio-red);
  color: var(--color-text-header);
}

/* Main section titles (e.g., "Welcome...") */
.content-section h2 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom-width: 4px;
  color: var(--color-text-header);
  letter-spacing: -0.06em;
}

/* Main subsection titles (e.g., "Chapter 1...") */
.content-section h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #f5f5f5;
}

/* Section-specific H2 glow colors */
/* --- NEW COLOR DISTRIBUTION --- */
#home h2,
#pests h2,
#our-gear h2 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-red);
  border-color: var(--grohio-red);
}

#legal h2,
#indoor h2,
#automation h2 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-blue);
  border-color: var(--grohio-blue);
}

#outdoor h2,
#genetics h2,
#cost-calc h2,
#harvest h2 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-green);
  border-color: var(--grohio-green);
}

#calculators h2,
#faq h2,
#gallery h2,
#community h2 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-purple);
  border-color: var(--grohio-purple);
}

/* Section-specific H3 glow colors */
/* --- NEW COLOR DISTRIBUTION --- */
#home h3,
#pests h3,
#our-gear h3 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-red);
  color: var(--grohio-red);
}

#legal h3,
#indoor h3,
#automation h3 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-blue);
  color: var(--grohio-blue);
}

#outdoor h3,
#genetics h3,
#cost-calc h3,
#harvest h3 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-green);
  color: var(--grohio-green);
}

#calculators h3,
#faq h3,
#gallery h3,
#community h3 {
  text-shadow: 0 0 var(--glow-blur-light) var(--grohio-purple);
  color: var(--grohio-purple);
}

/* Sub-sub-section titles */
.content-section h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #cccccc;
  padding-left: 0.5rem;
  border-left: 4px solid var(--color-border-light);
}

/* Standard content text */
.content-section p,
.content-section ul,
.content-section ol {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.05rem;
  /* Slightly larger for readability */
  color: var(--color-text-secondary);
}

.content-section ul {
  list-style-type: disc;
  padding-left: 24px;
}

.content-section ol {
  list-style-type: decimal;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.content-section li::marker {
  color: var(--grohio-purple);
}

.content-section strong {
  color: #f0f0f0;
  font-weight: 600;
}

.content-section code {
  background-color: var(--color-bg-input);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--grohio-green);
  overflow-x: auto;
  /* For code blocks */
  display: inline-block;
}

/* For HTML symbol formatting (e.g., CO2) */
.content-section sup {
  font-size: 0.7em;
  vertical-align: super;
}

.content-section sub {
  font-size: 0.7em;
  vertical-align: sub;
}

/*
 * =========================================
 * LAYOUT & CARD STYLES
 * =========================================
 */

/* Content cards on Home page */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 1.25rem;
}

.card:hover {
  transform: translateY(-7px);
  /* Universal Lift */
}

/* Custom glow-on-hover cards (Glow Reduced) */
.card-hover-glow-blue:hover {
  border-color: var(--grohio-blue);
  box-shadow: 0 0 15px 4px rgba(0, 191, 255, 0.4);
}

.card-hover-glow-green:hover {
  border-color: var(--grohio-green);
  box-shadow: 0 0 15px 4px rgba(57, 255, 20, 0.4);
}

/* Note box (red highlight) */
.note {
  background-color: #111;
  border-left: 6px solid var(--grohio-red);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 0 5px rgba(255, 49, 98, 0.3);
}

.note strong {
  color: var(--grohio-red);
}

/* Table Styling */
.table-auto {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.table-auto th,
.table-auto td {
  border: 1px solid var(--color-border-dark);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.table-auto th {
  background-color: var(--color-bg-input);
  color: #f0f0f0;
  font-weight: 700;
  border-bottom: 3px solid var(--grohio-blue);
}

.table-auto td {
  color: var(--color-text-secondary);
}

.table-auto tr:nth-child(even) {
  background-color: var(--color-bg-darker);
}

/* GROHIO Logo Styling */
#grohio-logo-img {
  width: 100%;
  /* Stretches to container width */
  height: auto;
  /* Maintains aspect ratio */
  max-width: 80%;
  /* Prevents it from being TOO wide on ultrawide screens */
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

/* --- NEW: Autopot Logo Styling --- */
.autopot-logo-img {
  width: 100%;
  max-width: 240px;
  /* Set a max width for the logo */
  height: auto;
  object-fit: contain;
  margin: 1.5rem auto 0.5rem auto;
  /* Center and add vertical space */
  display: block;
  /* Ensures centering with 'margin: auto' */
  filter: drop-shadow(0 0 8px var(--grohio-blue));
  /* Blue glow */
  transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.autopot-logo-img:hover {
  filter: drop-shadow(0 0 12px var(--grohio-blue));
  /* More glow on hover */
  transform: scale(1.03);
  /* Slight zoom on hover */
}

/*
 * =========================================
 * NAVIGATION & BUTTONS
 * =========================================
 */

/* Main nav tab buttons */
.nav-btn {
  position: relative;
  background-color: var(--color-bg-input);
  color: var(--color-text-muted);
  cursor: pointer;
  border: 1px solid var(--color-border-medium);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  /* Smaller font for more buttons */
  padding: 0.5rem 0.75rem;
  /* Adjust padding for smaller buttons */
  border-radius: 9999px;
  /* pill shape */
  text-decoration: none;
  /* Ensure <a> tags look like buttons */
  display: inline-block;
  /* Ensure <a> tags behave like buttons */
  line-height: 1.5;
  /* Align text vertically */
}

/* Responsive nav buttons for larger screens */
@media (min-width: 768px) {
  .nav-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

.nav-btn:active {
  transform: translateY(0px);
}

.nav-btn.active {
  background-color: var(--grohio-red) !important;
  color: #000 !important;
  border-color: var(--grohio-red) !important;
  box-shadow: 0 0 12px 3px rgba(255, 49, 98, 0.7) !important;
  font-weight: 900;
  transform: translateY(0px);
}

/* Coming soon on under construction nav buttons */
.coming-soon-badge-nav {
  position: absolute;
  top: -10px;
  left: 50%;
  /* Center it horizontally */
  transform: translateX(-50%) rotate(-5deg);
  /* Pull it back 50% */
  background-color: var(--grohio-blue);
  color: #000;
  /* Black text for blue bg */
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 10;
  white-space: nowrap;
  /* Prevent "Coming Soon" from breaking */
}

/* disable under construction nav buttons */
.nav-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(50%);
}

/* --- NEW: Alternating Default Glows --- */
/* These rules apply the alternating colors and new hover states */
nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 1) {
  border-color: var(--grohio-red);
  box-shadow: 0 0 10px 2px rgba(255, 49, 98, 0.5);
  color: var(--color-text-secondary);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 1):hover {
  background-color: #282828;
  color: var(--color-text-header);
  border-color: var(--grohio-red);
  box-shadow: 0 0 12px 4px rgba(255, 49, 98, 0.7);
  transform: translateY(-2px);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 2) {
  border-color: var(--grohio-blue);
  box-shadow: 0 0 10px 2px rgba(0, 191, 255, 0.5);
  color: var(--color-text-secondary);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 2):hover {
  background-color: #282828;
  color: var(--color-text-header);
  border-color: var(--grohio-blue);
  box-shadow: 0 0 12px 4px rgba(0, 191, 255, 0.7);
  transform: translateY(-2px);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 3) {
  border-color: var(--grohio-green);
  box-shadow: 0 0 10px 2px rgba(57, 255, 20, 0.5);
  color: var(--color-text-secondary);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 3):hover {
  background-color: #282828;
  color: var(--color-text-header);
  border-color: var(--grohio-green);
  box-shadow: 0 0 12px 4px rgba(57, 255, 20, 0.7);
  transform: translateY(-2px);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 4) {
  border-color: var(--grohio-purple);
  box-shadow: 0 0 10px 2px rgba(159, 80, 255, 0.5);
  color: var(--color-text-secondary);
}

nav .nav-btn:not(.active):not(.merch-btn):nth-child(4n + 4):hover {
  background-color: #282828;
  color: var(--color-text-header);
  border-color: var(--grohio-purple);
  box-shadow: 0 0 12px 4px rgba(159, 80, 255, 0.7);
  transform: translateY(-2px);
}

/* --- End of new rules --- */

/* Internal links (e.g., "Start the Indoor Guide ->") */
.nav-btn-internal {
  cursor: pointer;
  transition: text-shadow 0.2s, color 0.2s;
  font-weight: 600;
}

.nav-btn-internal:hover {
  text-shadow: 0 0 8px currentColor;
  text-decoration: underline;
}

/*
 * =========================================
 * NEW: MERCH STICKER & BUTTON STYLES
 * =========================================
 */

/* Fixed sticker link in the top right */
/* Uses Tailwind classes for position, so we just add style */
#merch-sticker {
  background-color: var(--grohio-green);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px 5px rgba(57, 255, 20, 0.6);
  transition: all 0.2s ease-in-out;
  border: 2px solid #000;
  position: fixed;
  /* Explicitly state fixed here for clarity */
  text-decoration: none;
}

#merch-sticker:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px 8px rgba(57, 255, 20, 0.7);
}

/* --- UPDATED: General .new-badge style --- */
/* This is the base style for ANY 'NEW' badge */
.new-badge {
  position: absolute;
  background-color: var(--grohio-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 10;
  /* Ensure it's on top */
}

/* 'NEW' badge on the TOP-RIGHT fixed sticker */
#merch-sticker .new-badge {
  top: -10px;
  left: -15px;
  transform: rotate(-15deg);
}

/* --- NEW: 'NEW' badge on the NAV BAR merch button --- */
/* This positions the badge relative to the nav button */
.nav-btn.merch-btn .new-badge {
  top: -8px;
  left: -10px;
  /* Adjusted for in-flow button */
  transform: rotate(-15deg);
}

/* --- NEW: 'Coming Soon' badge for footer --- */
.coming-soon-badge {
  position: absolute;
  top: -10px;
  /* Adjusted position for stacked text */
  right: -30px;
  /* Adjusted position for stacked text */
  background-color: var(--grohio-blue);
  color: #000;
  /* Black text for blue bg */
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  transform: rotate(10deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Merch button in the main nav bar */
.nav-btn.merch-btn {
  position: relative;
  /* <-- THIS IS THE CRITICAL FIX */
  background-color: var(--grohio-green);
  color: #000;
  font-weight: 900;
  border-color: var(--grohio-green);
  box-shadow: 0 0 12px 3px rgba(57, 255, 20, 0.7);
}

.nav-btn.merch-btn:hover {
  background-color: #4cff30;
  /* Brighter green */
  color: #000;
  border-color: #4cff30;
  box-shadow: 0 0 15px 5px rgba(57, 255, 20, 0.8);
}

/* Breaking News Pulse Animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/*
 * =========================================
 * [REMOVED] SEARCH & MODAL
 * =========================================
 */
/* Search Results Styling */
.search-result-item {
  display: block;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  color: #e0e0e0;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: var(--color-bg-input);
  border-color: var(--grohio-blue);
}

.search-highlight {
  color: var(--grohio-blue);
  font-weight: bold;
}

.search-breadcrumb {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

/*
 * =========================================
 * CALCULATOR STYLES
 * =========================================
 */

/* Container for each calculator */
.calculator-container {
  background-color: var(--color-bg-card);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--grohio-purple);
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.2);
  /* Glow Reduced */
}

@media (min-width: 768px) {
  .calculator-container {
    padding: 2rem;
  }
}

/* UI Normalization & Overlays */
.sys-node {
  cursor: help;
  position: absolute;
  z-index: 60;
  font-size: 1rem;
  filter: grayscale(100%);
  opacity: 0.03;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.sys-node:hover {
  opacity: 1;
  transform: scale(1.8) rotate(15deg);
  filter: grayscale(0%) drop-shadow(0 0 8px var(--grohio-green));
  z-index: 100;
}

.sys-node.synced {
  display: none !important;
}

.sys-opt-layer {
  display: none;
  font-size: 2rem;
  top: 10px;
  left: 10px;
  opacity: 0;
  animation: sysLoad 1.5s forwards;
}

@keyframes sysLoad {
  0% {
    top: 10px;
    opacity: 0;
    transform: rotate(0deg);
  }

  50% {
    opacity: 1;
  }

  100% {
    top: 150px;
    opacity: 1;
    transform: rotate(720deg);
  }
}

.sys-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sys-overlay-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.sys-modal-card {
  background: #111;
  border: 2px solid var(--grohio-green);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.2);
  max-width: 90%;
  width: 350px;
}

.sys-overlay-backdrop.active .sys-modal-card {
  transform: scale(1);
  opacity: 1;
}

.sys-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.sys-grid-item {
  background: #080808;
  border: 1px solid #333;
  border-radius: 6px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.1;
  filter: grayscale(100%);
}

.sys-grid-item.active {
  border-color: var(--grohio-green);
  background: rgba(57, 255, 20, 0.05);
  opacity: 1;
  filter: grayscale(0%);
  box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.1);
}

/* Input fields (e.g., Temp, RH) */
.calc-input {
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-header);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1.1rem;
  width: 100%;
  /* Ensure full width */
}

.calc-input:focus {
  outline: none;
  border-color: var(--grohio-blue);
  box-shadow: 0 0 5px rgba(0, 191, 255, 0.6);
}

.calc-input::placeholder {
  color: var(--color-text-muted);
}

textarea.calc-input {
  min-height: 100px;
  font-family: "Inter", sans-serif;
}

/* Output box (green) */
.calc-output {
  background-color: #111;
  border: 2px solid var(--grohio-green);
  padding: 1rem;
  border-radius: 0.75rem;
  color: var(--grohio-green);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
  /* Glow Reduced */
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Dynamic output colors for JS */
.calc-output.calc-output-green {
  border-color: var(--grohio-green);
  color: var(--grohio-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.calc-output.calc-output-blue {
  border-color: var(--grohio-blue);
  color: var(--grohio-blue);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

.calc-output.calc-output-red {
  border-color: var(--grohio-red);
  color: var(--grohio-red);
  box-shadow: 0 0 8px rgba(255, 49, 98, 0.3);
}

/* Labels above inputs (e.g., "Air Temp (C)") */
.calc-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-label);
  font-size: 0.9rem;
  font-weight: 500;
}

/*
 * =========================================
 * COST CALCULATOR STYLES
 * =========================================
 */
.cost-calculator-container {
  background-color: var(--color-bg-card);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border-light);
}

@media (min-width: 768px) {
  .cost-calculator-container {
    padding: 2rem;
  }
}

/* Grey output boxes */
.calc-output-box {
  background-color: #111;
  border: 1px solid var(--color-border-medium);
  padding: 1rem;
  border-radius: 0.75rem;
}

/* Purple total box */
.calc-output-box-total {
  background-color: #111;
  border: 2px solid var(--grohio-purple);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.3);
  /* Glow Reduced */
}

/* Green final cost-per-gram box */
.calc-output-box-final {
  background-color: #111;
  border: 2px solid var(--grohio-green);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
  /* Glow Reduced */
}

/* Label inside output boxes */
.calc-output-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-label);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Value inside output boxes */
.calc-output-value {
  color: var(--color-text-header);
  font-weight: 700;
  font-size: 1.75rem;
}

/* Final cost-per-gram value (green) */
.calc-output-box-final .calc-output-value {
  color: var(--grohio-green);
  font-size: 2rem;
}

/*
 * =========================================
 * FAQ SECTION STYLES
 * =========================================
 */
.faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
  .faq-item {
    padding: 2rem;
  }
}

.faq-item:hover {
  border-color: var(--grohio-purple);
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.2);
  /* Glow Reduced */
}

.faq-question {
  color: var(--grohio-purple);
  /* Use purple for question */
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  /* Make question slightly smaller than H3 */
  text-shadow: none;
  /* Remove default H3 shadow */
  font-weight: 700;
}

.faq-answer p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.faq-answer ol,
.faq-answer ul {
  margin-top: -0.5rem;
}

.faq-answer li {
  padding-left: 0;
}

.faq-answer li::marker {
  color: var(--grohio-blue);
}

/*
 * =========================================
 * NEW: GALLERY STYLES (v16.0)
 * =========================================
 */

/* The upload button */
.gallery-upload-btn {
  display: inline-block;
  background-color: var(--grohio-purple);
  /* CHANGED from green to purple */
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.4);
  /* CHANGED from green to purple */
  border: none;
}

.gallery-upload-btn:hover {
  background-color: #b37dff;
  /* CHANGED to lighter purple */
  box-shadow: 0 0 15px 5px rgba(159, 80, 255, 0.6);
  /* CHANGED from green to purple */
  transform: translateY(-2px);
}

/* Style for the actual file input hidden visually but accessible */
.hidden-file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

/* The grid that holds the images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Each gallery item card */
.gallery-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 0.75rem;
  overflow: hidden;
  /* Keeps image inside rounded corners */
  transition: all 0.2s ease-in-out;
  opacity: 1;
  /* Make visible by default */
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  /* Fixed height for uniformity */
  object-fit: cover;
  /* Scales image to fill, cropping if needed */
  display: block;
}

.gallery-item-caption {
  padding: 1rem;
  font-size: 0.9rem;
}

.gallery-item-caption p {
  margin-bottom: 0.25rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.gallery-item-caption span {
  color: var(--color-text-muted);
}

/*
 * =========================================
 * NEW: COMMUNITY STYLES (v16.0)
 * =========================================
 */

/* Container for the new post form */
.journal-form-container {
  background-color: var(--color-bg-card);
  border-radius: 1rem;
  border: 1px solid var(--grohio-purple);
  /* CHANGED from green to purple */
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.2);
  /* CHANGED from green to purple */
}

@media (min-width: 768px) {
  .journal-form-container {
    padding: 2rem;
  }
}

/* Style for a single post, which is now .community-post */
.community-post {
  /* Uses .card styles, so just add what's unique */
  border: 1px solid var(--color-border-light);
  transition: all 0.2s;
}

.community-post:hover {
  border-color: var(--grohio-purple);
  /* CHANGED from green to purple */
  box-shadow: 0 0 10px rgba(159, 80, 255, 0.3);
  /* CHANGED from green to purple */
}

/*
 * =========================================
 * FOOTER STYLES
 * =========================================
 */
/* Styling for the new logo image in the footer */
#footer-logo-img {
  width: 100%;
  max-width: 180px;
  /* Adjust size as needed, 180px is a good footer size */
  height: auto;
  object-fit: contain;
  margin: 1.5rem auto 0.5rem auto;
  /* Center and add vertical space */
  display: block;
  /* Ensures centering with 'margin: auto' */
  filter: drop-shadow(0 0 5px var(--grohio-purple));
  /* CHANGED: Green to Purple, glow reduced from 8px to 5px */
}

/* Original footer content is here */
.text-lg.text-gray-500 {
  margin-top: 0;
  /* Remove top margin added by Tailwind */
}

/* --- NEW: Footer Community Button (The "Sticker") --- */
.footer-community-btn {
  display: inline-block;
  position: relative;
  border: 2px solid var(--grohio-blue);
  /* Blue border */
  color: var(--grohio-blue);
  /* Blue text */
  background-color: rgba(0, 191, 255, 0.05);
  /* Very faint blue bg */
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  /* Rounded sticker shape */
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
  /* Blue Glow */
  transition: all 0.2s ease-in-out;
  line-height: 1.2;
  cursor: pointer;
}

.footer-community-btn:hover {
  background-color: var(--grohio-blue);
  color: #000;
  /* Black text on blue background */
  box-shadow: 0 0 20px 5px rgba(0, 191, 255, 0.7);
  /* Stronger Glow */
  transform: scale(1.05) rotate(-2deg);
  /* "Pop" effect */
}

/* Position the NEW badge specifically for this button */
.footer-community-btn .new-badge {
  top: -10px;
  right: -10px;
  transform: rotate(15deg);
  /* Uses the standard red .new-badge style automatically */
}