/* ========================================
   YABAAA - UNIFIED STYLESHEET
   Combined: Menu, Footer, Universal styles
   Professional Design System
   Version: 3.0 - TROPICAL REEF EDITION
   ======================================== */

/* ========================================
   UPDATES IN VERSION 3.0:
   - Tropical Reef color system via CSS variables
   - Aquatic hero overlays (deep-to-light water gradient)
   - Bubble background animation for hero sections
   - Water parameter visual gauges (pH, temp, hardness)
   - Care difficulty bubble-dot rating system
   - Tankmate compatibility strip (horizontal scroll)
   - Fish variant/morph gallery with hover reveal overlay
   - Gallery item peek overlays on hover
   - Updated reading-time badge to ocean tones
   - Updated scroll progress bar to reef gradient
   - New fonts: Cormorant Garamond + DM Sans
   - All purple gradients replaced with reef teal palette
   - All existing components preserved & enhanced
   ======================================== */

/* ========================================
   TABLE OF CONTENTS
   ========================================
   0.  DESIGN TOKENS (CSS VARIABLES)
   1.  FONTS & IMPORTS
   2.  BASE & RESET
   3.  NAVIGATION (Desktop & Mobile)
   4.  BREADCRUMB
   5.  HERO SECTIONS
   6.  MAIN CONTENT
   7.  TABLE OF CONTENTS
   8.  TEXT LAYOUTS & IMAGES
   9.  GALLERY & LIGHTBOX
   10. SLIDER & SLIDESHOW
   11. ACCORDION
   12. FOOTER
   13. SCROLL ANIMATIONS
   14. FLOATING BUTTONS & TOC PANEL
   15. RESPONSIVE DESIGN
   16. PRINT STYLES
   17. UTILITY CLASSES
   18. READING TIME BADGE
   19. FACTS CARD GRID
   20. PROS & CONS GRID
   21. FISH HERO ENHANCEMENTS (Bubbles)
   22. WATER PARAMETER GAUGES
   23. CARE DIFFICULTY RATING
   24. TANKMATE COMPATIBILITY STRIP
   25. FISH VARIANT GALLERY
   26. GALLERY ITEM PEEK OVERLAY
   ======================================== */

/* ========================================
   0. DESIGN TOKENS (CSS VARIABLES)
   ======================================== */
:root {
    /* --- Core Reef Palette --- */
    --reef-abyss:      #071E2C;   /* darkest — deep ocean floor */
    --reef-deep:       #0A2E42;   /* deep water — body text, footers */
    --reef-mid:        #0B3D52;   /* nav, primary dark surfaces */
    --reef-teal:       #0D7B8A;   /* primary brand teal */
    --reef-teal-light: #15A3B5;   /* hover states, links */
    --reef-aqua:       #1AADBD;   /* active, highlight */
    --reef-coral:      #D96B45;   /* warm accent — icons, borders, warmth */
    --reef-coral-soft: #F0956E;   /* lighter coral for hover */
    --reef-seafoam:    #E6F7F8;   /* very light backgrounds, alt sections */
    --reef-sand:       #F7F1E8;   /* warm neutral for section alternation */
    --reef-white:      #FFFFFF;

    /* --- Typography Colors --- */
    --color-text:        #1A2E3D;
    --color-text-light:  #4A6070;
    --color-heading:     #0A2E42;
    --color-link:        #0D7B8A;
    --color-link-hover:  #0A5F6C;

    /* --- UI Colors --- */
    --color-border:      #C8DCE4;
    --color-border-soft: #DDE8EC;
    --color-bg-alt:      #F0F7F9;
    --color-bg-warm:     #F7F1E8;

    /* --- Shadows --- */
    --shadow-sm:  0 2px 8px rgba(10, 46, 66, 0.08);
    --shadow-md:  0 4px 16px rgba(10, 46, 66, 0.12);
    --shadow-lg:  0 10px 32px rgba(10, 46, 66, 0.18);
    --shadow-xl:  0 20px 48px rgba(10, 46, 66, 0.22);

    /* --- Gradients --- */
    --grad-reef:      linear-gradient(135deg, #0D7B8A 0%, #0A5F6C 100%);
    --grad-deep:      linear-gradient(135deg, #0B3D52 0%, #071E2C 100%);
    --grad-aqua:      linear-gradient(135deg, #15A3B5 0%, #0D7B8A 100%);
    --grad-hero:      linear-gradient(to bottom, rgba(7,30,44,0.35) 0%, rgba(7,30,44,0.65) 100%);
    --grad-progress:  linear-gradient(to right, #0D7B8A, #1AADBD, #D96B45);

    /* --- Border Radius --- */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;

    /* --- Transitions --- */
    --transition-fast:   all 0.2s ease;
    --transition-base:   all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   1. FONTS & IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: #E4F4F7;
    background-image:
        radial-gradient(ellipse 700px 500px at 8%  25%, rgba(13, 123, 138, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 92% 15%, rgba(26, 173, 189, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 280px at 50% 55%, rgba(11,  61,  82, 0.04) 0%, transparent 65%),
        radial-gradient(ellipse 350px 250px at 20% 80%, rgba(26, 173, 189, 0.05) 0%, transparent 65%),
        radial-gradient(ellipse 300px 200px at 80% 75%, rgba(13, 123, 138, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--color-heading);
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

ul, ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========================================
   3. NAVIGATION (Desktop & Mobile)
   ======================================== */

/* Desktop Navigation */
nav {
    background-color: var(--reef-mid);
    box-shadow: 0 3px 12px rgba(7, 30, 44, 0.25);
    position: sticky;
    top: 0;
    z-index: 10000;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 50px;
    position: relative;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition-base);
}

nav a:hover {
    background-color: var(--reef-abyss);
}

nav li:first-child {
    margin-right: auto;
}

/* Submenu Styling (Desktop) */
.submenu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: var(--reef-deep);
    box-shadow: var(--shadow-md);
    min-width: 250px;
    width: max-content;
    flex-direction: column;
    list-style: none;
}

.submenu li {
    height: auto;
    white-space: nowrap;
}

.submenu a {
    padding: 15px 30px;
    display: block;
    font-size: 16px;
}

.submenu a:hover {
    background-color: var(--reef-mid);
}

/* Show submenu on hover (Desktop only) */
nav li:hover .submenu {
    display: flex;
}

/* Mobile Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(10, 46, 66, 0.15);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    color: var(--color-text);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

.sidebar a:hover {
    background-color: var(--reef-seafoam);
    color: var(--reef-teal);
}

.menu-button {
    display: none;
}

/* Back Arrow Navigation */
.back-arrow a {
    padding: 0 20px !important;
    transition: transform 0.2s ease;
}

.back-arrow a:hover {
    transform: translateY(-3px);
}

.back-arrow svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

/* ========================================
   4. BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: 0 2rem;
    height: 42px;
    background-color: transparent;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* inner nav stays on one single horizontal line */
.breadcrumb nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    background-color: transparent;
    box-shadow: none;
    position: static;
}

.breadcrumb a {
    color: var(--reef-teal);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: var(--reef-mid);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #B0BEC5;
    font-size: 0.8rem;
    flex-shrink: 0;
    user-select: none;
}

.breadcrumb .current {
    color: var(--color-heading);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .breadcrumb { padding: 0 1rem; height: 38px; }
    .breadcrumb a, .breadcrumb .current { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .breadcrumb { padding: 0 0.75rem; }
    .breadcrumb a, .breadcrumb .current { font-size: 0.75rem; }
}

/* ========================================
   5. HERO SECTIONS
   ======================================== */
.hero-section {
    position: relative;
    height: 58vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;   /* parallax: image moves slower than page scroll */
    overflow: hidden;
}

.hero-section.hero-secondary {
    height: 45vh;
    min-height: 320px;
}

.hero-section.hero-small {
    height: 38vh;
    min-height: 260px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 30, 44, 0.30) 0%,
        rgba(11, 61, 82, 0.45) 50%,
        rgba(7, 30, 44, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.hero-content h2 {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.02em;
}

/* Fish-specific hero subtitle tag */
.hero-scientific {
    display: inline-block;
    margin-top: 0.75rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.80);
    letter-spacing: 0.04em;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: rotate(-45deg);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translate(10px, 10px);
    }
}

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

/* ========================================
   6. MAIN CONTENT
   ======================================== */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.content-section {
    padding: 2.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.content-section:nth-child(even) {
    background-color: rgba(224, 245, 248, 0.82);
}

/* ========================================
   7. TABLE OF CONTENTS
   ======================================== */
.toc-container {
    max-width: 900px;
    margin: 2rem auto;
    border: 2px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

.toc-header {
    background: var(--grad-reef);
    color: white;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
}

.toc-header:hover {
    background: var(--grad-deep);
}

.toc-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.toc-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.toc-toggle.active {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.toc-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--color-link);
    text-decoration: none;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.toc-list a:hover {
    background-color: var(--reef-seafoam);
    color: var(--reef-teal);
    padding-left: 1rem;
}

.toc-list a::before {
    content: "→";
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--reef-teal);
}

.toc-list a:hover::before {
    transform: translateX(5px);
}

/* ========================================
   8. TEXT LAYOUTS & IMAGES
   ======================================== */
.text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-content.full-width {
    max-width: 1200px;
}

.text-image-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.text-image-layout.reverse {
    grid-template-columns: 400px 1fr;
}

.text-image-layout.reverse .text-content {
    order: 2;
}

.text-image-layout.reverse .side-image {
    order: 1;
}

.side-image {
    position: sticky;
    top: 100px;
}

.side-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.image-showcase {
    margin: 3rem 0;
    text-align: center;
}

.image-showcase img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   9. GALLERY & LIGHTBOX
   ======================================== */
.gallery-section {
    padding: 5rem 2rem;
    background: linear-gradient(160deg, var(--reef-mid) 0%, var(--reef-abyss) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 30% 50%, rgba(13, 123, 138, 0.15) 0%, transparent 60%),
                      radial-gradient(ellipse at 70% 20%, rgba(26, 173, 189, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-section h2 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: rgba(13, 123, 138, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(26, 173, 189, 0.15);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(26, 173, 189, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Skeleton Loader for Gallery */
.skeleton {
    background: linear-gradient(90deg, rgba(13,123,138,0.1) 25%, rgba(26,173,189,0.15) 50%, rgba(13,123,138,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.gallery-item.loading {
    background: linear-gradient(90deg, rgba(13,123,138,0.08) 25%, rgba(26,173,189,0.12) 50%, rgba(13,123,138,0.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 30, 44, 0.97);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
    border-radius: var(--radius-md);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
    background: rgba(13, 123, 138, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(26, 173, 189, 0.4);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--reef-deep);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
}

/* ========================================
   10. SLIDER & SLIDESHOW
   ======================================== */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    height: 500px;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--reef-deep);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    z-index: 10;
}

.slider-btn:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-indicator.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

/* Slideshow (Auto-advancing) */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slideshow-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-slide.active { opacity: 1; }

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slideshow-pause,
.slideshow-play {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--reef-deep);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.slideshow-pause:hover,
.slideshow-play:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
}

/* ========================================
   11. ACCORDION
   ======================================== */
.accordion {
    max-width: 900px;
    margin: 0.5rem auto 0;
}

.accordion-item {
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-header button {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    border: none;
    background: #F9FAFB;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    color: var(--color-heading);
    font-family: 'DM Sans', sans-serif;
}

.accordion-header button:hover {
    background-color: var(--reef-seafoam);
}

.accordion-header button::after {
    content: "▾";
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--reef-teal);
}

.accordion-header button[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-header button[aria-expanded="true"] {
    background: var(--reef-seafoam);
    color: var(--reef-teal);
}

.accordion-header button:focus {
    outline: 2px solid var(--reef-aqua);
    outline-offset: 2px;
}

.accordion-panel {
    padding: 1.5rem;
    background-color: white;
}

.accordion-panel p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.accordion-panel p:last-child {
    margin-bottom: 0;
}

.accordion-panel ul,
.accordion-panel ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* Recipe-specific accordion styling */
.recipe-accordion .accordion-header button {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E8 100%);
    border-left: 4px solid var(--reef-coral);
}

.recipe-accordion .accordion-header button[aria-expanded="true"] {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFECCC 100%);
}

/* Reduced margin for sections containing accordions */
.fun-facts-section,
.faq-accordion-section,
.faq-section {
    margin-top: 10px;
    margin-bottom: 1.5rem;
}

.faq-section details {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--color-heading);
}

/* ========================================
   12. FOOTER
   ======================================== */
.site-footer {
    background-color: var(--reef-deep);
    color: white;
    padding: 20px 30px;
    font-size: 14px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-top: 3px solid var(--reef-teal);
}

/* Language selector */
.footer-languages {
    text-align: center;
    padding: 0 0 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
}

.footer-languages a {
    color: white;
    text-decoration: none;
    padding: 5px 8px;
    transition: var(--transition-base);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.footer-languages a:hover {
    color: var(--reef-aqua);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-languages .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

/* Footer container */
.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-left  { justify-self: start; }
.footer-center {
    justify-self: center;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
}
.footer-right {
    justify-self: end;
    white-space: nowrap;
    font-weight: 600;
}

.footer-left a,
.footer-right a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
}

.footer-left a svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: stroke 0.3s ease;
}

.footer-left a:hover svg {
    stroke: var(--reef-aqua);
}

.footer-right a:hover {
    text-decoration: underline;
    color: var(--reef-aqua);
}

/* ========================================
   13. SCROLL ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 1.2s ease-out;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   14. FLOATING BUTTONS & TOC PANEL
   ======================================== */

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

/* Individual Floating Buttons */
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-reef);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(13, 123, 138, 0.30);
    transition: var(--transition-smooth);
    position: relative;
}

.float-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 123, 138, 0.45);
    background: linear-gradient(135deg, var(--reef-teal-light) 0%, var(--reef-teal) 100%);
}

.float-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 123, 138, 0.35), 0 8px 24px rgba(13, 123, 138, 0.35);
}

.float-btn:active {
    transform: translateY(-2px);
}

.float-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Back to Top Button - Initially Hidden */
.back-to-top-btn {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* ToC Menu Button Tooltip */
.toc-menu-btn::before {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    padding: 6px 12px;
    background: rgba(11, 61, 82, 0.95);
    color: white;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.toc-menu-btn:hover::before {
    opacity: 1;
}

/* Floating ToC Panel */
.floating-toc-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: -380px;
    width: 360px;
    max-height: 85vh;
    height: auto;
    background: #FFFFFF;
    box-shadow: -4px 0 24px rgba(10, 46, 66, 0.14);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.floating-toc-panel.active {
    right: 0;
    transform: translateY(-50%);
}

/* ToC Panel Header */
.toc-panel-header {
    background: var(--grad-reef);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toc-panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
}

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

.toc-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.toc-panel-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.toc-panel-close svg {
    width: 20px;
    height: 20px;
}

/* ToC Panel Navigation */
.toc-panel-nav {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0;
    max-height: calc(85vh - 100px);
}

/* Custom Scrollbar for ToC Panel */
.toc-panel-nav::-webkit-scrollbar { width: 6px; }
.toc-panel-nav::-webkit-scrollbar-track { background: #F3F4F6; }
.toc-panel-nav::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }
.toc-panel-nav::-webkit-scrollbar-thumb:hover { background: #A0AEC0; }

/* ToC Panel Links */
.toc-panel-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
    position: relative;
}

.toc-panel-link:hover {
    background: var(--reef-seafoam);
    color: var(--reef-teal);
    border-left-color: var(--color-border);
}

.toc-panel-link:focus {
    outline: none;
    background: var(--reef-seafoam);
    box-shadow: inset 3px 0 0 var(--reef-teal);
}

.toc-panel-link.active {
    background: linear-gradient(to right, rgba(13, 123, 138, 0.10) 0%, transparent 100%);
    color: var(--reef-teal);
    border-left-color: var(--reef-teal);
    font-weight: 600;
}

.toc-panel-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--reef-teal);
}

/* Indented links (h3) */
.toc-panel-link.toc-indent {
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 400;
}

.toc-panel-link.toc-indent:hover {
    background: var(--reef-seafoam);
}

/* Backdrop Overlay */
.toc-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 30, 44, 0.45);
    backdrop-filter: blur(3px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.toc-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Old Back to Top Button (Fallback) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-reef);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(13, 123, 138, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--reef-teal-light) 0%, var(--reef-teal) 100%);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN FOR FLOATING ELEMENTS
   ======================================== */
@media (max-width: 1024px) {
    .floating-toc-panel {
        width: 320px;
        right: -340px;
    }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn svg {
        width: 22px;
        height: 22px;
    }
    .toc-menu-btn::before {
        display: none;
    }
    .floating-toc-panel {
        width: 90%;
        max-width: 320px;
        right: -100%;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }
    .toc-panel-header {
        padding: 1rem;
    }
    .toc-panel-header h3 {
        font-size: 1.125rem;
    }
    .toc-panel-nav {
        padding: 0.5rem 0;
    }
    .toc-panel-link {
        padding: 0.65rem 1rem;
        font-size: 0.9375rem;
    }
    .toc-panel-link.toc-indent {
        padding: 0.55rem 1rem 0.55rem 2rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
    .float-btn svg {
        width: 20px;
        height: 20px;
    }
    .floating-toc-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .toc-panel-header {
        padding: 1rem 0.875rem;
    }
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .floating-toc-panel,
    .toc-backdrop,
    .float-btn,
    .toc-panel-close {
        transition: none !important;
    }
    .float-btn:hover {
        transform: none;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--grad-progress);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   15. RESPONSIVE DESIGN
   ======================================== */

/* Mobile Navigation Toggle */
@media(max-width: 800px) {
    .hideOnMobile { display: none; }
    .menu-button  { display: block; }
}

@media(max-width: 400px) {
    .sidebar { width: 100%; }
}

/* Tablet & Desktop Adjustments */
@media (max-width: 1024px) {
    .text-image-layout,
    .text-image-layout.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .text-image-layout.reverse .text-content,
    .text-image-layout.reverse .side-image {
        order: initial;
    }
    .side-image {
        position: relative;
        top: 0;
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 2.5rem; }
    .slideshow-wrapper { height: 400px; }
}

/* Tablet Portrait & Mobile Landscape */
@media (max-width: 768px) {
    .hero-section {
        height: 52vh;
        min-height: 320px;
        background-attachment: scroll;   /* mobile: fixed attachment causes rendering issues */
    }
    .hero-section.hero-secondary,
    .hero-section.hero-small {
        height: 38vh;
        min-height: 240px;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-subtitle   { font-size: 1.1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p  { font-size: 1rem; text-align: left; }
    .content-section     { padding: 2rem 1.5rem; }
    .gallery-section     { padding: 3rem 1.5rem; }
    .gallery-section h2  { font-size: 2rem; }
    .gallery-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
    .accordion-header button { padding: 1rem; font-size: 1rem; }
    .accordion-panel     { padding: 1rem; }
    .lightbox-content    { max-width: 95%; max-height: 80vh; }
    .lightbox-close      { top: 15px; right: 20px; font-size: 40px; }
    .lightbox-nav        { bottom: 20px; gap: 1rem; }
    .lightbox-prev,
    .lightbox-next       { font-size: 1.5rem; padding: 0.4rem 1rem; }
    .slider-btn          { padding: 0.75rem 1rem; font-size: 1.5rem; }
    .slider-btn-prev     { left: 10px; }
    .slider-btn-next     { right: 10px; }
    .slideshow-wrapper   { height: 300px; }
    .toc-header h3       { font-size: 1.1rem; }
    .toc-list a          { font-size: 0.95rem; }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    .footer-left,
    .footer-center,
    .footer-right { justify-self: center; }
    .footer-left a,
    .footer-right a { margin: 0 8px; }
    .footer-languages { font-size: 12px; }
    .footer-languages a { padding: 4px 6px; }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .breadcrumb         { padding: 0.8rem 1rem; font-size: 0.85rem; }
    .hero-content h1    { font-size: 1.8rem; }
    .hero-content h2    { font-size: 1.5rem; }
    .hero-subtitle      { font-size: 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .content-section    { padding: 1.5rem 1rem; }
    .gallery-section    { padding: 2rem 1rem; }
    .back-to-top        { width: 45px; height: 45px; font-size: 20px; bottom: 20px; right: 20px; }
    .slideshow-wrapper  { height: 250px; }
    .footer-left a svg  { width: 20px; height: 20px; }
    .footer-left a,
    .footer-right a     { margin: 0 6px; }
    .site-footer        { padding: 15px; font-size: 13px; }
    .footer-languages   { font-size: 11px; }
    .footer-languages .separator { margin: 0 3px; }
}

/* Extra small devices */
@media (max-width: 400px) {
    .footer-left a { margin: 0 5px; }
}

/* ========================================
   16. PRINT STYLES
   ======================================== */
@media print {
    .hero-section,
    .gallery-section,
    nav,
    footer,
    .breadcrumb,
    .scroll-indicator,
    .back-to-top,
    .scroll-progress,
    .slider-btn,
    .slideshow-controls,
    .menu-button,
    .sidebar,
    .floating-buttons,
    .floating-toc-panel,
    .toc-backdrop,
    .bubble-bg,
    .fish-ripple-container {
        display: none !important;
    }
    body {
        background-color: white;
    }
    .content-section {
        page-break-inside: avoid;
    }
}

/* ========================================
   17. UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ========================================
   19. FACTS CARD GRID
   ======================================== */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.fact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 2px solid var(--color-border-soft);
    border-top: 4px solid var(--reef-teal);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fact-card__icon {
    width: 40px;
    height: 40px;
    background: var(--reef-seafoam);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.fact-card__icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--reef-teal);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fact-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--reef-teal);
}

.fact-card__value {
    font-size: 1rem;
    color: var(--color-heading);
    line-height: 1.6;
    font-weight: 600;
}

.fact-card__value a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.fact-card__value a:hover {
    color: var(--color-link-hover);
}

@media (max-width: 1024px) {
    .facts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .fact-card { padding: 1rem; }
    .fact-card__label { font-size: 0.69rem; }
    .fact-card__value { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .fact-card  { padding: 0.875rem; }
}

@media (max-width: 360px) {
    .facts-grid { grid-template-columns: 1fr; }
}

/* ========================================
   20. PROS & CONS GRID
   ======================================== */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.pros-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.pros-card--pros {
    background: #F0F7F0;
    border-top: 4px solid #2E7D32;
    border-color: #C8E6C9;
    border-top-color: #2E7D32;
}

.pros-card--cons {
    background: #FFF4F4;
    border-top: 4px solid #C62828;
    border-color: #FFCDD2;
    border-top-color: #C62828;
}

.pros-card__title {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

.pros-card--pros .pros-card__title { color: #2E7D32; }
.pros-card--cons .pros-card__title { color: #C62828; }

.pros-card__list {
    padding-left: 1.2rem;
    margin: 0;
}

.pros-card__list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.pros-card__list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pros-cons-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ========================================
   21. FISH HERO ENHANCEMENTS
   Bubble background animation for hero sections
   Add class="fish-hero" to hero-section to enable
   ======================================== */

/* ── Page-level ambient bubble layer ────────────────────────
   CSS-only, fixed position, behind all content.
   Always visible on fish pages (body[data-page="fish"]).
   Uses body::before for 6 slow-rising ambient bubbles.
   ─────────────────────────────────────────────────────── */
body[data-page="fish"]::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Small scattered static bubble circles — pure CSS */
        radial-gradient(circle 8px  at 5%  30%, rgba(255,255,255,0.25) 0%, rgba(26,173,189,0.12) 60%, transparent 100%),
        radial-gradient(circle 5px  at 12% 70%, rgba(255,255,255,0.20) 0%, rgba(13,123,138,0.10) 60%, transparent 100%),
        radial-gradient(circle 10px at 22% 15%, rgba(255,255,255,0.18) 0%, rgba(26,173,189,0.10) 60%, transparent 100%),
        radial-gradient(circle 6px  at 35% 55%, rgba(255,255,255,0.22) 0%, rgba(13,123,138,0.12) 60%, transparent 100%),
        radial-gradient(circle 12px at 48% 40%, rgba(255,255,255,0.15) 0%, rgba(26,173,189,0.08) 60%, transparent 100%),
        radial-gradient(circle 7px  at 60% 80%, rgba(255,255,255,0.20) 0%, rgba(13,123,138,0.10) 60%, transparent 100%),
        radial-gradient(circle 9px  at 72% 25%, rgba(255,255,255,0.18) 0%, rgba(26,173,189,0.09) 60%, transparent 100%),
        radial-gradient(circle 5px  at 82% 60%, rgba(255,255,255,0.22) 0%, rgba(13,123,138,0.11) 60%, transparent 100%),
        radial-gradient(circle 11px at 91% 45%, rgba(255,255,255,0.16) 0%, rgba(26,173,189,0.08) 60%, transparent 100%),
        radial-gradient(circle 6px  at 97% 20%, rgba(255,255,255,0.20) 0%, rgba(13,123,138,0.10) 60%, transparent 100%);
    background-size: 100% 100%;
    animation: pageBubblesShift 40s ease-in-out infinite alternate;
}

@keyframes pageBubblesShift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% -30%; }
}

/* Bubble particles container — injected by JS into .hero-section */
.bubble-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Individual bubble — JS injects 8 <span class="bubble"> children */
.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(255, 255, 255, 0.70),
        rgba(26, 173, 189, 0.20)
    );
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 6px rgba(26, 173, 189, 0.25), inset 0 1px 2px rgba(255,255,255,0.4);
    animation: bubbleRise linear infinite;
    will-change: transform, opacity;
}

/* Bubble size, position & timing via nth-child — larger & more visible than before */
.bubble:nth-child(1)  { width: 20px; height: 20px; left:  8%; animation-duration: 8s;    animation-delay: 0s;    opacity: 0.70; }
.bubble:nth-child(2)  { width: 12px; height: 12px; left: 18%; animation-duration: 11s;   animation-delay: 1.5s;  opacity: 0.60; }
.bubble:nth-child(3)  { width: 26px; height: 26px; left: 30%; animation-duration: 9s;    animation-delay: 3s;    opacity: 0.55; }
.bubble:nth-child(4)  { width: 15px; height: 15px; left: 45%; animation-duration: 13s;   animation-delay: 0.8s;  opacity: 0.65; }
.bubble:nth-child(5)  { width: 22px; height: 22px; left: 58%; animation-duration: 10s;   animation-delay: 4s;    opacity: 0.52; }
.bubble:nth-child(6)  { width: 10px; height: 10px; left: 70%; animation-duration: 7s;    animation-delay: 2s;    opacity: 0.70; }
.bubble:nth-child(7)  { width: 18px; height: 18px; left: 82%; animation-duration: 12s;   animation-delay: 5s;    opacity: 0.58; }
.bubble:nth-child(8)  { width: 14px; height: 14px; left: 91%; animation-duration: 9.5s;  animation-delay: 1s;    opacity: 0.62; }

@keyframes bubbleRise {
    0%   { transform: translateY(0)      translateX(0);    opacity: 0;    }
    8%   {                                                  opacity: 0.7;  }
    50%  { transform: translateY(-45vh)  translateX(12px);               }
    92%  {                                                  opacity: 0.35; }
    100% { transform: translateY(-110vh) translateX(-8px); opacity: 0;    }
}

/* Gentle float animation for content cards on fish pages */
@keyframes fishFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.fish-float {
    animation: fishFloat 4s ease-in-out infinite;
}

/* Water ripple effect */
@keyframes waterRipple {
    0%   { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(3.5); opacity: 0; }
}

.ripple-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(26, 173, 189, 0.55);
    animation: waterRipple 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 20;
}

/* Reduce to 4 bubbles on mobile for performance */
@media (max-width: 768px) {
    .bubble:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="fish"]::before { animation: none !important; }
    .bubble, .fish-float, .ripple-ring { display: none !important; animation: none !important; }
}

/* ========================================
   22. WATER PARAMETER GAUGES
   Usage: <div class="water-params">...</div>
   ======================================== */
.water-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.water-param-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    border: 1.5px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.water-param-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--reef-aqua);
    transform: translateY(-2px);
}

.water-param-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.water-param-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--reef-seafoam);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.water-param-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--reef-teal);
    fill: none;
    stroke-width: 2;
}

.water-param-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-family: 'DM Sans', sans-serif;
}

.water-param-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.7rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.01em;
}

/* Gauge bar */
.water-gauge-track {
    height: 6px;
    background: var(--reef-seafoam);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.water-gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, var(--reef-teal), var(--reef-aqua));
    transition: width 1s ease 0.3s;
    position: relative;
}

/* Gauge color variants */
.water-gauge-fill.warm  { background: linear-gradient(to right, var(--reef-coral), var(--reef-coral-soft)); }
.water-gauge-fill.ph    { background: linear-gradient(to right, #2E86AB, var(--reef-aqua)); }
.water-gauge-fill.hard  { background: linear-gradient(to right, #7B8FA1, #A0B4C2); }

.water-gauge-range {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-text-light);
    font-family: 'DM Sans', sans-serif;
}

@media (max-width: 768px) {
    .water-params { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

@media (max-width: 480px) {
    .water-params { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ========================================
   23. CARE DIFFICULTY RATING
   Usage:
   <div class="care-rating" data-level="3" data-max="5">
     <span class="care-rating__label">Трудност</span>
   </div>
   JS fills in the bubbles automatically.
   ======================================== */
.care-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.care-rating__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-family: 'DM Sans', sans-serif;
}

.care-rating__bubbles {
    display: flex;
    gap: 5px;
    align-items: center;
}

.care-bubble {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--reef-teal);
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
    display: block;
}

.care-bubble.filled {
    background: var(--reef-teal);
    box-shadow: 0 0 0 2px rgba(13, 123, 138, 0.20);
}

/* Color coding by difficulty */
.care-rating[data-level="1"] .care-bubble.filled,
.care-rating[data-level="2"] .care-bubble.filled {
    background: #4CAF82;
    border-color: #4CAF82;
}

.care-rating[data-level="3"] .care-bubble.filled {
    background: var(--reef-teal);
    border-color: var(--reef-teal);
}

.care-rating[data-level="4"] .care-bubble.filled,
.care-rating[data-level="5"] .care-bubble.filled {
    background: var(--reef-coral);
    border-color: var(--reef-coral);
}

.care-rating__text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    font-family: 'DM Sans', sans-serif;
}

/* Care rating block (standalone card style) */
.care-rating-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.4rem;
    border: 1.5px solid var(--color-border-soft);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: var(--shadow-sm);
}

.care-rating-block .care-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

/* ========================================
   24. TANKMATE COMPATIBILITY STRIP
   Usage: <div class="tankmate-strip">...</div>
   ======================================== */
.tankmate-section {
    margin: 1.5rem 0;
}

.tankmate-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tankmate-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--reef-teal);
    border-radius: 2px;
}

.tankmate-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0 0.25rem;
}

.tankmate-card {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: 2px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

.tankmate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--reef-aqua);
}

/* Compatibility status indicator */
.tankmate-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9CA3AF; /* default: unknown */
}

.tankmate-card.compatible::before    { background: #4CAF82; box-shadow: 0 0 0 3px rgba(76,175,130,0.20); }
.tankmate-card.caution::before       { background: #F5A623; box-shadow: 0 0 0 3px rgba(245,166,35,0.20); }
.tankmate-card.incompatible::before  { background: #E05555; box-shadow: 0 0 0 3px rgba(224,85,85,0.20); }

.tankmate-card__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.6rem;
    display: block;
    border: 2px solid var(--reef-seafoam);
    background: var(--reef-seafoam);
}

/* Emoji/icon placeholder when no image */
.tankmate-card__emoji {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--reef-seafoam);
    border: 2px solid var(--color-border-soft);
}

.tankmate-card__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 0.35rem;
}

.tankmate-card__status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

.tankmate-card.compatible   .tankmate-card__status { color: #2E7D55; }
.tankmate-card.caution      .tankmate-card__status { color: #B07500; }
.tankmate-card.incompatible .tankmate-card__status { color: #C02020; }

/* Legend */
.tankmate-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tankmate-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-family: 'DM Sans', sans-serif;
}

.tankmate-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tankmate-legend-dot.compatible    { background: #4CAF82; }
.tankmate-legend-dot.caution       { background: #F5A623; }
.tankmate-legend-dot.incompatible  { background: #E05555; }

/* ========================================
   25. FISH VARIANT / MORPH GALLERY
   Usage: <div class="variant-gallery">...</div>
   ======================================== */
.variant-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.variant-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background: var(--reef-seafoam);
    border: 2px solid var(--color-border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(10, 46, 66, 0.20);
    border-color: var(--reef-aqua);
}

.variant-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.variant-card:hover img {
    transform: scale(1.06);
}

/* Reveal overlay */
.variant-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.9rem 0.85rem;
    background: linear-gradient(to top, rgba(7, 30, 44, 0.88) 0%, rgba(7, 30, 44, 0.40) 70%, transparent 100%);
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.variant-card:hover .variant-overlay {
    transform: translateY(0);
}

.variant-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.3;
}

.variant-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    font-family: 'DM Sans', sans-serif;
}

.variant-card:hover .variant-desc {
    max-height: 80px;
    opacity: 1;
}

/* Color chip accent */
.variant-color-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .variant-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

@media (max-width: 480px) {
    .variant-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .variant-card    { aspect-ratio: 3/4; }
}

/* ========================================
   26. GALLERY ITEM PEEK OVERLAY
   (Added via JS to existing .gallery-item elements)
   ======================================== */
.gallery-peek-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(7, 30, 44, 0.92) 0%, rgba(7, 30, 44, 0.50) 60%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    pointer-events: none;
}

.gallery-item:hover .gallery-peek-overlay {
    transform: translateY(0);
}

.gallery-peek-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.3;
}

.gallery-peek-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'DM Sans', sans-serif;
}



/* ========================================
   27. RELATED ARTICLES GRID
   ======================================== */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-border-soft);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    overflow: hidden;
    transition: var(--transition-base);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--reef-aqua);
}

.related-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card__img-wrap img {
    transform: scale(1.05);
}

.related-card__body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.4rem 1.5rem;
    flex: 1;
}

.related-card__tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--reef-teal);
    margin-bottom: 0.4rem;
}

.related-card__title {
    color: var(--color-heading);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.related-card__desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
    text-align: left;
}

.related-card__link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--reef-teal);
    transition: var(--transition-fast);
}

.related-card:hover .related-card__link {
    color: var(--reef-teal-light);
}

.related-all {
    text-align: center;
    margin-top: 1rem;
}

.related-all__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--grad-reef);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.related-all__btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .related-grid { grid-template-columns: 1fr; }
}

.hero-seo-img {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* ========================================
   END OF STYLESHEET
   ======================================== */
