/* ==================
   TABLE OF CONTENTS
   ==================
   1. Variables (Custom Properties)
   2. Reset & Base Styles
   3. Nav-bar
   4. Layout
      4.1. Landing Page tooltip and information Icon
      4.2. Toast for mobile
   5. Header & Hero Section
   6. Filter Navigation
   7. Fish Cards & Lists
   8. Status Indicators
   9. Buttons & CTAs
   10. Footer
   11. Media Queries
   ================== */

/* ==================
   1. VARIABLES
   ================== */
:root {
  /* Colors */
  --color10: hsl(31, 80%, 10%);
  --color30: hsl(31, 80%, 30%);
  --color90: hsl(31, 80%, 90%);
  --color100: hsl(31, 80%, 100%);
  --accent: hsl(31, 80%, 70%);

  /* Semantic color mapping */
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --text-color: #18191F;
  --text-mid: #4B4D55;
  /* New medium gray between text-color and text-secondary */
  --text-secondary: #9194A0;
  --bg-color: #F9F9FA;
  --card-bg: #FEFEFF;
  --footer-bg: #2c3e50;
  --footer-link: #bbb;
  --filter-active-bg: black;
  --filter-active-text: white;
  --filter-inactive-bg: #F3F4F6;
  --button-hover: #e0e0e0;

  /* Typography */
  --ff: "Archivo", sans-serif;
  --ff2: "Archivo", sans-serif;
  --p: 1rem/1.5em var(--ff);
  --h1: 600 3rem/1.2em var(--ff2);
  --h2: 600 2rem/1.2em var(--ff2);

  /* Spacing */
  --spacing1: 4px;
  --spacing2: 8px;
  --spacing3: 16px;
  --spacing4: 20px;
  --spacing4-5: 30px;
  --spacing5: 40px;
  --spacing6: 80px;
  --spacing7: 160px;

  /* Component sizes */
  --fish-card-width: 300px;
  --fish-card-height: 320px;
  --fish-image-height: 300px;

  /* Border radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 15px;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

  --container-left-padding: 40px;

  /* Add these to your semantic colors */
  --hero-button-bg: #1a1a1a;
  --hero-button-hover: #333;

}

/* ==================
     2. RESET & BASE STYLES
     ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  /* Full height for html */
}

body {
  font-family: var(--ff);
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  /* Use viewport height for better browser support */
  display: flex;
  /* Use flexbox for sticky footer */
  flex-direction: column;
  /* Stack children vertically */
  margin: 0;
  /* Ensure no margin */
  padding: 0;
  /* Ensure no padding */
}

/* Make main content grow to push footer down */
main {
  flex: 1 0 auto;
  /* Grow and don't shrink */
}

/* ==================
     3. Nav-bar
     ================== */
/* Base styles for the navigation */
.site-nav {
  width: 100%;
  background-color: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 15px 0;
  display: flex;
  justify-content: center;
}

.site-nav .container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: var(--container-left-padding);
  padding-right: var(--container-left-padding);
}

/* Logo styling */
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
  cursor: pointer;
}

.site-nav .logo img {
  height: 30px;
  margin-right: 10px;
}

/* Navigation links */
.site-nav .nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links li {
  margin: 0 15px;
  cursor: pointer;
}

.site-nav .nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.site-nav .nav-links a:hover {
  color: var(--text-color);
}

.site-nav .nav-links a.active {
  color: var(--text-color);
  font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .site-nav .container {
    flex-direction: column;
    padding: 15px;
  }

  .site-nav .logo {
    margin-bottom: 15px;
  }

  .site-nav .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav .nav-links li {
    margin: 0;
  }
}

/* ==================
     4. LAYOUT
     ================== */
.fish-category {
  padding: 20px 20px 20px var(--container-left-padding);
}

/* Toast container */
.mobile-toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  /* Allow clicks to pass through */
}



/* ==================
     4.1. Landing Page tooltip and information Icon
     ================== */
.heading-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  position: relative;
  cursor: pointer;
  color: #888;
  font-size: 18px;
}

.tooltip {
  visibility: hidden;
  width: max-content;
  /* This makes it size exactly to content */
  max-width: 300px;
  /* Still limit maximum width */
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 12px;
  /* Slightly more padding for better readability */
  position: absolute;
  z-index: 10;
  /* Higher z-index to ensure it appears above other elements */
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-sizing: border-box;
  /* Include padding in width calculation */
  font-size: 14px;
  /* Ensure readable font size */
  line-height: 1.4;
  /* Better line spacing for readability */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for depth */
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.info-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ==================
     4.2. Landing Page tooltip and information Icon
     ================== */
/* Toast styling */
.mobile-toast {
  background-color: rgba(51, 51, 51, 0.95);
  color: white;
  padding: 14px 20px;
  margin: 10px;
  border-radius: 8px;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  /* Ensure long descriptions wrap properly */
  font-weight: 400;
  /* Slightly bolder for better readability */
}

.mobile-toast-active {
  opacity: 1;
  transform: translateY(0);
}

/* Keep regular tooltips on desktop */
@media (max-width: 768px) {
  .tooltip {
    display: none;
    /* Hide regular tooltips on mobile */
  }
}

/* ==================
     5. HEADER & HERO SECTION
     ================== */

/* Make the hero header styles more specific */
.site-header,
.hero-header {
  position: relative;
  height: 400px;
  background-color: #4a6b8a;
  /* Solid color that matches the bridge image */
  background-image: url('images/river2.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Cover the entire viewport width */
  text-align: left;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Create the overlay with the second image */
.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/ocean.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Cover the entire viewport width */
  opacity: 0.20;
  /* Set the exact opacity you want */
  z-index: 0;
  /* Place behind the text content */
  pointer-events: none;
  /* Allows clicking through to elements beneath */
}

/* Gradient overlay to ensure text contrast without over-darkening */
.hero-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0) 100%);
  /* Dark on left, fades to transparent on right */
  z-index: 0;
  /* Place behind the text content but above the images */
  pointer-events: none;
  /* Allows clicking through to elements beneath */
}

/* Ensure hero content remains visible above the overlay */
.hero {
  max-width: 800px;
  position: relative;
  /* Ensure it's positioned above the overlay */
  z-index: 1;
  /* Higher than the background images */
}

.hero h1 {
  font-size: 46px;
  margin: 0;
  text-align: left;
  /* Ensure heading is left-aligned */
  color: white;
  /* Ensure text is white for contrast */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  /* Add text shadow for better readability */
}

.hero p {
  font-size: 22px;
  margin-top: 10px;
  text-align: left;
  /* Ensure paragraph is left-aligned */
  color: white;
  /* Ensure text is white for contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  /* Add text shadow for better readability */
}

/* ==================
     6. FILTER NAVIGATION
     ================== */
/* Scrollable Filter Bar */
.scrollable-filter {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  /* Enables horizontal scrolling */
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: none;
  /* Hides scrollbar in Firefox */
  -ms-overflow-style: none;
  /* Hides scrollbar in IE/Edge */
  padding: 10px 10px 10px var(--container-left-padding);
  background: var(--card-bg);
}

/* Hide scrollbar for WebKit browsers */
.scrollable-filter::-webkit-scrollbar {
  display: none;
}

.filter-bar {
  padding-left: var(--container-left-padding);
}

.filter-bar button {
  background: var(--filter-inactive-bg);
  border: none;
  padding: 8px 15px;
  margin: 5px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 14px;
}

.filter-bar .active {
  background: var(--filter-active-bg);
  color: var(--filter-active-text);
}

/* ==================
     7. FISH CARDS & LISTS
     ================== */
/* Fish List Container */
.fish-category {
  position: relative;
  /* For positioning the navigation arrows */
}

.fish-list {
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  /* Prevents text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.fish-list.active {
  cursor: grabbing;
}

/* Prevent image dragging */
.fish-list img {
  pointer-events: none;
  /* This prevents dragging images */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Apply to all content inside fish-list */
.fish-list * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.fish-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  justify-content: flex-start;
  /* Prevents shrinking */
  flex-wrap: nowrap;
  /* Ensures cards don't shrink */
  padding-bottom: 10px;
  padding-top: 18px;
  white-space: nowrap;
  /* Keeps fish cards in one line */
  scrollbar-width: none;
  /* Hides scrollbar in Firefox */
  -ms-overflow-style: none;
  /* Hides scrollbar in IE/Edge */
}

/* Hide Scrollbar in Chrome & Safari */
.fish-list::-webkit-scrollbar {
  display: none;
}

/* Individual Fish Card */
.fish-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 15px;
  text-align: center;
  width: var(--fish-card-width) !important;
  /* Forces width */
  min-width: var(--fish-card-width);
  /* Prevents shrinking */
  height: var(--fish-card-height);
  /* Ensures consistent height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  flex-shrink: 0;
  /* Prevents flex from resizing it */
  position: relative;
  /* Add this to create positioning context */
  overflow: hidden;
  /* Add this to hide overflowing content */
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
  /* Smooth transition for lift and shadow */
}

a.fish-card {
  text-decoration: none;
  color: inherit;
}


.fish-card:hover {
  box-shadow: var(--shadow-md, 0 2px 8px rgba(0, 0, 0, 0.12));
  /* Slightly larger shadow on hover */
  transform: translateY(-2px);
  /* Move card up slightly (adjust px value as needed) */
  border: 4px solid #3883d2;
  /* Add border on hover to indicate selection */
  padding: 14px;
  /* Reduce padding by 1px to compensate for the 2px border (original padding is 15px) */
}

/* Image container for more control */
.fish-card .image-container {
  width: 100%;
  height: var(--fish-image-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Prevents image overflow */
  margin-bottom: 10px;
  /* Space between image and text */
}

/* Fish Image */
.fish-card .image-container img {
  max-width: 100%;
  max-height: var(--fish-image-height);
  object-fit: contain;
  display: block;
  /* Eliminates extra space below images */
}

/* Rest of card content */
.fish-card .card-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Name + Frequency Container */
.name-container {
  display: block;
  /* Change to block to prevent flexbox layout issues */
  width: 100%;
  padding-bottom: 12px;
  /* Spacing below the name container */
  margin-top: 10px;
  /* Space above the name container */
  min-height: 40px;
  /* Minimum height to accommodate two lines */
  position: relative;
  /* For absolute positioning of frequency pill */
  padding-right: 120px;
  /* Make space for the frequency pill */
}

/* Fish Name (Aligns left) */
.fish-name {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  text-align: left;
  width: 100%;
  /* Use full width of the container (which has padding-right) */
  line-height: 1.3;
  /* Slightly increased line height for better readability */
  word-wrap: break-word;
  /* Allow long words to break */
  white-space: normal;
  /* Ensure text wraps */
  display: block;
  /* Make it a block element */
}

/* Frequency Text (Right side of fish name) */
.frequency-text {
  font-size: 12px;
  color: var(--text-color);
  /* Darker text for better readability */
  text-align: center;
  font-weight: 600;
  /* Make it bolder */
  padding: 4px 8px;
  /* Add some padding */
  border-radius: var(--radius-pill);
  /* Pill shape */
  display: inline-block;
  /* Allow background color to be applied */
  white-space: nowrap;
  /* Prevent wrapping */
  line-height: 1;
  /* Tighter line height */
  position: absolute;
  /* Position it absolutely */
  right: 0;
  /* Align to the right edge */
  top: 0;
  /* Align to the top */
  z-index: 2;
  /* Ensure it's above the text */
}

/* Safety color classes for frequency text */
.frequency-text.green {
  background-color: rgba(0, 170, 0, 0.15);
  /* Light green background */
  color: #006600;
  /* Dark green text */
  border: 1px solid #00aa00;
  /* Green border */
}

.frequency-text.yellow {
  background-color: rgba(255, 214, 71, 0.2);
  /* Light yellow background */
  color: #8B6000;
  /* Dark yellow/gold text */
  border: 1px solid #ffd647;
  /* Exact yellow color requested */
}

.frequency-text.orange {
  background-color: rgba(252, 110, 0, 0.15);
  /* Light orange background */
  color: #A04600;
  /* Dark orange text */
  border: 1px solid #fc6e00;
  /* Exact orange color requested */
}

.frequency-text.red {
  background-color: rgba(255, 0, 24, 0.15);
  /* Light red background */
  color: #C00014;
  /* Dark red text */
  border: 1px solid #ff0018;
  /* Exact red color requested */
  position: absolute;
  /* Explicitly set absolute positioning for desktop layout */
  right: 0;
  /* Align to the right edge */
  top: 0;
  /* Align to the top */
}

/* Add prohibited symbol (circle with diagonal line) for red consumption advisory */
.frequency-text.red::before {
  content: "🚫";
  /* Unicode prohibited symbol */
  font-size: 12px;
  margin-right: 3px;
  vertical-align: middle;
}

/* Alternative CSS-only prohibited symbol (fallback) */
.frequency-text.red::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #333;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 40%, #333 40%, #333 60%, transparent 60%);
  display: none;
  /* Hidden by default, can be enabled if Unicode symbol doesn't work */
}

/* ==================
     8. STATUS INDICATORS
     ================== */
/* Safety colors are now applied directly to frequency text */

/* Scroll Navigation Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: none;
  transition: background-color 0.2s, transform 0.2s;
}

.scroll-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.05);
}

.scroll-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 10px;
}

.scroll-arrow i {
  font-size: 20px;
  color: var(--text-color);
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .scroll-arrow {
    display: none;
  }
}

/* ==================
     9. BUTTONS & CTAs
     ================== */
/* Hero Learn More Button */
.learn-more {
  background: var(--hero-button-bg);
  color: white;
  padding: 12px 24px;
  /* Slightly larger padding */
  border: none;
  border-radius: 4px;
  /* Slightly less rounded corners */
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  margin-top: 20px;
}

.learn-more:hover {
  background: var(--hero-button-hover);
}

/* Image Cycle Button */
.cycle-image-btn {
  background: #6a0dad;
  /* Purple color */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  margin-top: 20px;
  margin-left: 15px;
  /* Space between buttons if they're side by side */
  transition: background-color 0.3s ease;
}

.cycle-image-btn:hover {
  background: #8a2be2;
  /* Lighter purple on hover */
}

.cycle-image-btn:active {
  transform: scale(0.98);
}

/* Button Container (Ensures Alignment) */
.button-container {
  display: flex;
  /* Use flex to position text and icon */
  justify-content: space-between;
  /* Push text left, icon right */
  align-items: center;
  /* Vertically align text and icon */
  width: 100%;
  margin-top: auto;
  padding-top: var(--space-2, 0.5rem);
  cursor: pointer;
  transition: color 0.2s ease;
  /* Removed border-top again just in case */
}



/* Fish Card Button */
.fish-card button {
  background: #f5f5f5;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-color);
  transition: background 0.2s ease-in-out;
}

/* Hover effect applies color to children */
.button-container:hover {
  color: var(--color-primary, #007bff);
}

.button-text {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-base, #18191F);
  /* Default text color */
  font-weight: 500;
  /* Ensure it doesn't push the chevron out if text is long */
  flex-grow: 1;
  /* Allow text to take available space */
  text-align: left;
  /* Ensure text aligns left */
}

/* Chevron Icon (Aligns Right) */
.chevron-icon {
  content: none;
  /* Ensure no text content interferes */
  /* SVG Background for the right arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  /* Default grey stroke */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  /* Make it behave like an inline element */
  width: 16px;
  /* Control icon size */
  height: 16px;
  flex-shrink: 0;
  /* Prevent icon from shrinking */
  margin-left: var(--space-2, 0.5rem);
  /* Add space between text and icon */
  transition: background-image 0.2s ease;
  /* Smooth color change */
}

/* Hover Effect */
.button-container:hover .button-text,
.button-container:hover .chevron-icon {
  color: var(--primary-color);
  /* Blue on hover */
}

/* ==================
     10. FOOTER
     ================== */
/* Footer Styles */
.site-footer {
  background-color: #131d27;
  color: #ffffff;
  padding: var(--spacing5) var(--spacing4) var(--spacing4);
  font-family: Arial, sans-serif;
  width: 100%;
  flex-shrink: 0;
  /* Prevent footer from shrinking */
  margin-top: auto;
  /* Push to bottom when content is short */
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  /* brand | links */
  align-items: start;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  gap: var(--spacing5);
  padding-left: var(--container-left-padding);
  padding-right: var(--container-left-padding);
  padding-bottom: var(--spacing5);
}

/* Copyright section */
.footer-copyright {
  max-width: 1600px;
  text-align: center;
  margin: auto;
  padding-top: var(--spacing5);
  padding-bottom: var(--spacing4);
  color: #afafaf;
  font-size: 0.9rem;
  position: relative;
}

/* Decorative line above copyright */
.footer-copyright::before {
  content: '';
  display: block;
  width: 120px;
  height: 2px;
  background-color: #2a374a;
  margin: 0 auto var(--spacing4) auto;
}

.footer-copyright p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--spacing4) var(--spacing3) var(--spacing3);
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr;
    /* stack all sections */
    text-align: center;
    gap: var(--spacing4);
  }

  .footer-logo,
  .social-icons {
    justify-content: center;
  }
}

/* Brand section */
.footer-brand {
  flex: 1 1 250px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 24px;
  width: auto;
  margin-right: 10px;
  filter: brightness(0) invert(1);
  /* This will make any image white */
}


.footer-logo span {
  font-size: 1.3rem;
  font-weight: bold;
  filter: brightness(0) invert(1);
  /* This will make any image white */

}

.tagline {
  color: #afafaf;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Link columns: supports brand + links */
.footer-links {
  flex: 1 1 200px;
}

.footer-resources,
.footer-social,
.social-icons {
  display: none !important;
}

/* ensure no residual social */

.site-footer h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.75rem;
}

.site-footer ul li a {
  color: #afafaf;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer ul li a:hover {
  color: #ffffff;
}

/* Quick Links: horizontal on desktop/tablet */
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  /* allow wrapping if space is tight */
  gap: 0.75rem 1.25rem;
  /* row-gap column-gap */
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  /* prevent overflow within grid column */
}

.footer-links ul li {
  margin: 0;
  /* use gap on ul for spacing */
}

/* On mobile, stack links vertically for readability */
@media (max-width: 768px) {
  .footer-links ul {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .footer-links {
    text-align: center;
  }
}


/* Social icons */
.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  color: #afafaf;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
    padding-left: var(--spacing3);
    /* Update mobile padding */
    padding-right: var(--spacing3);
    /* Update mobile padding */
  }

  .footer-brand,
  .footer-links,
  .footer-resources,
  .footer-social {
    flex-basis: auto;
    width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* ==================
     11. MEDIA QUERIES
     ================== */
/* --- Tablet & Smaller --- */
@media (max-width: 768px) {
  :root {
    /* Adjust variables for mobile */
    --fish-card-width: 240px;
    --fish-card-height: 260px;
    --fish-image-height: 130px;
    --container-padding-inline-default: 1rem;
    /* Base mobile padding */
    --h1-size: 2rem;
    --h2-size: 1.3rem;
  }

  /* General Layout - Padding handled via variables */

  /* Prevent body scroll - Important for edge-to-edge */
  body {
    overflow-x: hidden;
  }

  /* --- Mobile Nav --- */
  .site-nav .container {
    flex-direction: column;
    padding: var(--space-3) var(--container-padding-inline-default);
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .site-nav .logo {
    margin-bottom: var(--space-3);
  }

  .site-nav .nav-links {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing3);
    /* Increased gap for better spacing between nav items */
  }

  .site-nav .nav-links li {
    margin-left: 0;
    margin-right: var(--spacing2);
    /* Add right margin for additional spacing */
  }

  .site-nav .nav-links li:last-child {
    margin-right: 0;
    /* Remove margin from last item */
  }

  /* --- Mobile Header --- */
  .hero-header {
    height: 300px;
    padding-left: var(--container-padding-inline-default);
    padding-right: var(--container-padding-inline-default);
    background-position: center center;
    background-size: cover;
  }

  .hero-header::before {
    background-position: center center;
    background-size: cover;
  }

  .hero-header::after {
    /* Maintain contrast on mobile with a slightly stronger left-to-right gradient */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.12) 75%, rgba(0, 0, 0, 0) 100%);
  }

  .hero h1 {
    font-size: 28px;
    /* Slightly smaller on mobile */
  }

  .hero p {
    font-size: 16px;
    /* Slightly smaller on mobile */
  }

  .cycle-image-btn {
    margin-top: 15px;
    padding: 8px 16px;
    /* Slightly smaller padding on mobile */
  }

  /* --- Mobile Filter Bar --- */
  .filter-bar {
    padding-left: var(--container-padding-inline-default);
    padding-right: var(--container-padding-inline-default);
  }

  /* --- Mobile Fish List (Edge-to-Edge Implementation) --- */
  .fish-category {
    /* ** Ensure this section respects the main container padding ** */
    /* If .container already provides padding, this might not need specific padding */
    /* Or explicitly set it if needed: */
    padding-left: var(--container-padding-inline-default);
    padding-right: var(--container-padding-inline-default);
  }

  /* Mobile Fish Cards */
  .fish-card {
    width: var(--fish-card-width);
    height: var(--fish-card-height);
  }

  
  .fish-card:hover .fish-name {
    text-decoration: none; /* No underline even on hover */
  }

  .fish-image-container {
    height: var(--fish-image-height);
  }

  /* Mobile fish card layout - stack name and frequency vertically */
  .name-container {
    min-height: 60px !important;
    /* Increased height to accommodate stacked layout */
    padding-right: 0 !important;
    /* Remove right padding since we're stacking vertically */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--spacing2) !important;
    /* Add gap between name and frequency */
    position: relative !important;
    /* Ensure positioning context */
  }

  /* Mobile frequency text positioning - override all frequency text colors */
  .frequency-text,
  .frequency-text.green,
  .frequency-text.yellow,
  .frequency-text.orange,
  .frequency-text.red {
    position: static !important;
    /* Remove absolute positioning */
    align-self: flex-start !important;
    /* Align to left */
    margin-top: 0 !important;
    /* Reset margin */
    right: auto !important;
    /* Reset right positioning */
    top: auto !important;
    /* Reset top positioning */
  }

  /* Fix heading container alignment on mobile */
  .heading-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .fish-list {
    /* ** This is the key part for edge-to-edge scroll ** */

    /* 1. Pull the list outwards to cancel parent padding */
    margin-left: calc(-1 * var(--container-padding-inline-default));
    margin-right: calc(-1 * var(--container-padding-inline-default));

    /* 2. Add padding *back* inside the list for content spacing */
    /* This ensures the first/last card don't touch the screen edge */
    padding-left: var(--container-padding-inline-default);
    padding-right: var(--container-padding-inline-default);

    /* 3. Keep scroll snapping hints if used */
    scroll-padding-left: var(--container-padding-inline-default);
    scroll-padding-right: var(--container-padding-inline-default);

    /* Make sure other essential styles remain */
    display: flex;
    gap: var(--space-3, 1rem);
    overflow-x: auto;
    white-space: nowrap;
    padding-top: var(--space-2, 0.5rem);
    padding-bottom: var(--space-3, 1rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    /* etc... */
  }

  /* End Edge-to-Edge Implementation */


  /* --- Mobile Footer --- */
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-links {
    width: 100%;
  }

  /* --- Mobile Tooltip --- */
  .tooltip {
    display: none;
  }
}

/* --- Smaller Mobile (Optional) --- */
@media (max-width: 480px) {
  :root {
    /* Further adjust variables if needed */
    --container-padding-inline-default: 0.75rem;
    --fish-card-width: 200px;
    --fish-card-height: 250px;
    --fish-image-height: 120px;
    --h1-size: 1.8rem;
  }

  /* Styles specific to very small screens */
}

@media (max-width: 480px) {

  /* You might need to adjust the --card-internal-padding calculation */
  /* here if the card's padding changes at this breakpoint */
  .heading-container {
    /* Remove extra padding on very small screens to maintain alignment */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure mobile fish card layout is maintained on very small screens */
  .name-container {
    min-height: 65px;
    /* Slightly more height for very small screens */
    gap: var(--spacing1);
    /* Smaller gap on very small screens */
  }

  /* Adjust prohibited symbol size for very small screens */
  .frequency-text.red::before {
    font-size: 12px;
    /* Slightly smaller prohibited symbol */
  }

  /* ... other smaller mobile adjustments ... */
}


.pop {
  color: #96dbf0;
  /* Bright pinkish-red */
  font-weight: 900;
  /* Extra bold */
  text-shadow: 3px 3px 0px #000268;
  font-size: 1.0em;
  /* Significantly larger */
  display: inline-block;
}