/* ============================================================
   DUTCH TOUCH GENETICS STRAINS PAGE — MASTER CSS
   Scoped to: body.dt-strains-page
============================================================ */

/* ============================================================
   1. GLOBAL NAV & MENU OVERLAY 
============================================================ */
body.dt-strains-page .dt-nav { position:fixed; top:0; left:0; right:0; height:72px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; padding:0 16px; background:var(--nav-bg); backdrop-filter:none; transition:background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease; z-index:1100; }
body.dt-strains-page .dt-nav.scrolled { background:var(--nav-bg-solid); backdrop-filter:blur(8px); box-shadow:0 3px 16px rgba(0,0,0,0.55); }
body.dt-strains-page .dt-nav-left { display:flex; align-items:center; gap:12px; }
body.dt-strains-page .dt-nav-hamburger { width:32px; height:22px; display:flex; flex-direction:column; justify-content:space-between; background:none; border:none; cursor:pointer; }
body.dt-strains-page .dt-nav-hamburger span { height:3px; width:100%; background:#F7F3E9; border-radius:4px; }
body.dt-strains-page .dt-nav-logo img { height:28px; }
body.dt-strains-page .dt-nav-text { justify-self:center; font-family:Cinzel, serif; font-weight:700; font-size:28px; white-space:nowrap; color:#E67A00; display:none; }
body.dt-strains-page .dt-nav-text span { color:#CDA45A; animation:touchPulse 3.8s ease-in-out infinite alternate; }

@keyframes touchPulse {
  0%   { color:#CDA45A; text-shadow:0 0 0 rgba(255,200,120,0); }
  50%  { color:#FFE7A8; text-shadow:0 0 10px rgba(255,217,138,0.6); }
  100% { color:#CDA45A; text-shadow:0 0 0 rgba(255,200,120,0); }
}

body.dt-strains-page .dt-nav-icons { display:flex; justify-content:flex-end; align-items:center; gap:14px; }
body.dt-strains-page .dt-nav-icons img { width:24px; height:24px; transition:transform .25s ease; }
body.dt-strains-page .dt-nav-icons img:hover { transform:translateY(-2px) scale(1.12); }

@media (min-width:768px) {
  body.dt-strains-page .dt-nav-text { display:block; }
  body.dt-strains-page .dt-nav-hamburger { width:36px; height:26px; }
  body.dt-strains-page .dt-nav-hamburger span { width:30px; }
  body.dt-strains-page .dt-nav-logo img { height:36px; }
}
@media (max-width:767px) {
  body.dt-strains-page .dt-nav-icons img { width:20px; height:20px; }
  body.dt-strains-page .dt-nav-hamburger { width:30px; height:20px; }
}

body.dt-strains-page .dt-menu-overlay { position:fixed; top:0; left:0; width:75%; max-width:320px; height:100%; background:#000; transform:translateX(-100%); opacity:0; pointer-events:none; transition:transform .45s cubic-bezier(0.25, 0.8, 0.25, 1), opacity .35s ease; z-index:3000; }
body.dt-strains-page .dt-menu-overlay.active { transform:translateX(0); opacity:1; pointer-events:auto; }
body.dt-strains-page .dt-menu-inner { padding:22px 20px; }
body.dt-strains-page .dt-menu-close { background:none; border:none; color:#fff; font-size:42px; margin-bottom:16px; cursor:pointer; }
body.dt-strains-page .dt-menu-logo { height:42px; margin-bottom:20px; }
body.dt-strains-page .dt-menu-links a { display:block; font-family:Cinzel, serif; font-size:30px; margin-bottom:18px; opacity:0; transform:translateX(-22px); transition:opacity .45s ease, transform .45s ease; }
body.dt-strains-page .dt-menu-links a.revealed { opacity:1; transform:translateX(0); }

/* ============================================================
   2. HERO SECTION
============================================================ */
.dt-strains-hero { background: url('../assets/img/strains/strains-hero.png') center 42% / cover no-repeat; height: 60vh; min-height: 500px; max-height: 720px; margin-top: 72px; margin-bottom: 4rem; text-align: center; display: flex; flex-direction: column; justify-content: flex-start; padding: 10rem 1rem 2rem; position: relative; }
.dt-strains-hero::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 150px; background: linear-gradient(to bottom, rgba(0,0,0,0), #000 ); pointer-events: none; }
.strains-title { font-family: "Cinzel", serif; font-size: 4.1rem; font-weight: 700; line-height: 1.03; color: #F7F2E8; margin: 0 auto 0.7rem; text-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 0 3px rgba(0,0,0,0.45); }
.strains-subtitle { color: #E4D7BC; max-width: 560px; margin: 0 auto; font-size: 1.15rem; font-weight: 400; line-height: 1.38; text-shadow: 0 2px 8px rgba(0,0,0,0.55); opacity: 0.92; }

@media (max-width: 768px) {
  .dt-strains-hero { background-position: center 55%; height: 52vh; min-height: 420px; max-height: 580px; padding-top: 8.5rem; }
  .strains-title { font-size: 2.9rem; line-height: 1.05; }
  .strains-subtitle { font-size: 1.05rem; max-width: 90%; }
}

/* ============================================================
   3. MAIN SECTION, SEARCH & FILTERS
============================================================ */
.dt-strains-section { padding:4rem 2rem; max-width:1400px; margin:0 auto; }
/* ============================================================
   PREMIUM SECTION HEADERS
============================================================ */
.dt-strains-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.dt-strains-header h2 { 
    font-family: "Cinzel", serif; 
    color: #fff; 
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Gives the text a subtle 3D pop */
}

.dt-strains-header p { 
    color: #d4af37; /* Changes subtext to premium gold */
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0; 
    opacity: 0.9;
}

/* The Gold Accent Line */
.dt-strains-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
    border-radius: 2px;
}

.strain-search-wrap { margin-bottom:1.5rem; width:100%; }

.strain-search-wrap { margin-bottom:1.5rem; width:100%; }
.strain-search-input { width:100%; padding:0.8rem 1rem; border-radius:8px; border:1px solid #333; background:#0d0d0d; color:#eee; font-size:1rem; outline:none; transition:0.2s; }
.strain-search-input::placeholder { color:#666; }
.strain-search-input:focus { border-color:#d4af37; box-shadow:0 0 0 2px rgba(212,175,55,0.25); }

.strain-filters { display:flex; gap:0.6rem; flex-wrap:wrap; margin-bottom:2rem; }
.strain-filter { background:#111; border:1px solid #333; padding:0.55rem 1rem; border-radius:6px; color:#ccc; cursor:pointer; font-size:0.9rem; transition:0.2s; }
.strain-filter:hover { border-color:#d4af37; color:#fff; }
.strain-filter.is-active { background:#d4af37; border-color:#d4af37; color:#000; }

/* ============================================================
   4. GLASSMORPHISM A-Z JUMP BAR (DESKTOP)
============================================================ */
.library-layout-wrapper { display: block; }
.alpha-jump-bar { position: sticky; top: 72px; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; background: rgba(11, 11, 11, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 10px; margin-bottom: 2rem; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); z-index: 100; gap: 6px; }
.alpha-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.5); font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.alpha-btn:hover { color: #000; background: #d4af37; transform: scale(1.15) translateY(-2px); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5); }

/* ============================================================
   5. TOP SCROLLER (AWARDS & FAVORITES)
============================================================ */
.featured-scroller-wrap { margin-bottom: 4rem; }
.featured-scroller { display: flex; gap: 1.5rem; overflow-x: auto; padding: 10px 5vw 40px; margin-left: calc(50% - 50vw); width: 100vw; scroll-snap-type: x mandatory; scroll-padding-left: 5vw; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(214, 163, 74, 0.6) rgba(255, 255, 255, 0.02); }
.featured-scroller::after { content: ''; flex: 0 0 1vw; }

.trophy-card { flex: 0 0 260px; scroll-snap-align: center; background: #0b0d0c; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; cursor: pointer; }
@media (min-width: 768px) { .trophy-card { flex: 0 0 280px; scroll-snap-align: start; } }
.trophy-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border-color: rgba(214, 163, 74, 0.4); }

/* ============================================================
   6. MAIN LIBRARY GRID & CARDS (DESKTOP)
============================================================ */
.strain-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:1.7rem; }

/* LAZY LOAD FADE-IN LOGIC */
.strain-card { 
    background: #0a0a0a; 
    border-radius: 14px; 
    border: 1px solid #1a1a1a; 
    cursor: pointer; 
    overflow: hidden; 
    position: relative; 
    
    /* Starts invisible and pushed down */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

/* Triggered by the JS Observer when scrolling */
.strain-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.strain-card.is-visible:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 30px rgba(214, 163, 74, 0.25); 
}

#vault-strains .library-card { display: flex; flex-direction: column; height: 100%; }
#vault-strains .strain-card-inner { display: flex; flex-direction: column; height: 100%; padding: 0; }

.strain-image, .desktop-img { height: 220px; width: 100%; border-radius: 14px 14px 0 0; margin-bottom: 0; background-color: #000; background-size: cover; background-repeat: no-repeat; background-position: center; position: relative; overflow: hidden; }
.strain-image.fallback-logo, .desktop-img.fallback-logo { background-size: 40%; background-color: #0b0b0b; box-shadow: none; }

.strain-content { padding: 1.2rem; flex-grow: 1; display: flex; flex-direction: column; }
.strain-top { display:flex; justify-content:space-between; align-items:flex-start; }
.strain-name { color:#fff; font-family:"Cinzel", serif; font-size:1.3rem; margin:0 0 4px 0; font-weight: 900; }
.strain-meta { color:#bbb; font-size:0.95rem; margin:0.4rem 0; }
.strain-notes { color:#888; font-size:0.85rem; line-height:1.4; }
.strain-card.is-hidden { display:none; }

.teaser-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.card-action { margin-top: auto; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #d4af37; font-weight: 700; }
.lineage-text { color: #d4af37; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GOLD AWARDS / CORNER BADGES */
.trophy-card, .library-card.is-award-winner { border: 1px solid rgba(214, 163, 74, 0.8) !important; box-shadow: 0 4px 15px rgba(214, 163, 74, 0.15) !important; }
.corner-award-badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(180deg, rgba(214,163,74,.95), rgba(185,135,47,.95)); color: #121413; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.65rem; font-weight: 900; letter-spacing: 0.05em; white-space: nowrap; z-index: 5; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* ============================================================
   7. CINEMATIC MODAL
============================================================ */
.strain-modal { position:fixed; inset:0; background:rgba(0,0,0,0.8); backdrop-filter: blur(8px); opacity:0; visibility:hidden; transition:0.25s ease; z-index:9999; }
.strain-modal.open { opacity:1; visibility:visible; }
.strain-modal-dialog { position:relative; background:#0f0f0f; border-radius:16px; padding:2rem; width:90%; max-width:900px; margin:60px auto; max-height:85vh; overflow-y:auto; border:1px solid #333; box-shadow:0 0 25px rgba(212,175,55,0.2); cursor: default; }
.strain-modal-close { position:absolute; top:18px; right:22px; font-size:2.2rem; background:none; border:none; color:#fff; cursor:pointer; }
.strain-modal-header h3 { font-family:"Cinzel", serif; color:#fff; font-size:2rem; margin-bottom:0.2rem; }
.strain-modal-header p { color:#d4af37; font-size:1rem; }
.strain-modal-layout { display:flex; gap:2rem; margin-top:1.5rem; }
.strain-modal-media { width:40%; }
.strain-modal-image-frame img { width:100%; border-radius:12px; border:1px solid #222; }
.strain-modal-body { width:60%; }
.strain-modal-section { margin-bottom:1.6rem; }
.strain-modal-section h4 { font-family:"Cinzel", serif; color:#fff; margin-bottom:0.4rem; }
.strain-modal-section p { color:#ccc; line-height:1.4; }
.label { color:#d4af37; width:90px; display:inline-block; }

@media (max-width:800px) {
  .strain-modal-layout { flex-direction:column; }
  .strain-modal-media, .strain-modal-body { width:100%; }
  .strain-modal-dialog { margin:20px auto; padding:1.5rem; }
}

/* ============================================================
   8. FOOTER & FIND US
============================================================ */
.dt-strains-findus { padding:4rem 2rem; text-align:center; background:#000; border-top:1px solid #222; }
.dt-strains-findus h2 { font-family:"Cinzel", serif; color:#fff; margin-bottom:0.5rem; }
.dt-strains-findus p { color:#aaa; }

body.dt-strains-page .dt-footer { background:#000; padding:75px 20px 80px; margin-top:80px; text-align:center; border-top:1px solid rgba(255,255,255,0.08); }
body.dt-strains-page .dt-footer-divider { width:100%; height:2px; background:#d4af37; margin:0 auto 28px auto; }
body.dt-strains-page .dt-footer-legal { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
body.dt-strains-page .dt-footer-legal a { color:#eee; font-size:14px; text-transform:uppercase; letter-spacing:0.6px; transition:color .25s ease; }
body.dt-strains-page .dt-footer-legal a:hover { color:#d4af37; }
body.dt-strains-page .dt-footer-social { display:flex; justify-content:center; gap:28px; margin-bottom:26px; }
body.dt-strains-page .dt-footer-social img { width:26px; height:26px; opacity:0.85; transition:transform .2s ease, opacity .2s ease; }
body.dt-strains-page .dt-footer-social img:hover { transform:translateY(-2px) scale(1.1); opacity:1; }
body.dt-strains-page .dt-footer-copy { color:#777; font-size:13px; }

/* ============================================================
   9. MOBILE LAUNCH POLISH (MAX-WIDTH: 768px)
   All mobile overrides live here safely.
============================================================ */
@media (max-width: 768px) {
    /* Clear Nav Overlaps */
    body.dt-strains-page { padding-top: 90px !important; }
    
    /* Centered Headers with Bottom Padding for Gold Line */
    .dt-strains-header { 
        margin-top: 0; 
        padding: 0 15px 20px; /* 0 top, 15px sides, 20px bottom! */
        text-align: center; 
    }
    .dt-strains-header p { margin: 0 auto; }
    .dt-strains-header::after { left: 50%; transform: translateX(-50%); width: 100px; background: linear-gradient(90deg, transparent, #d4af37, transparent); }
    .dt-strains-header h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }

    /* Fix Squished Grid Constraints */
    .dt-strains-section { padding-left: 10px !important; padding-right: 10px !important; }
    .library-layout-wrapper { flex-direction: column; padding-right: 0; padding-left: 0; }

    /* Top Scroller Cards */
    .trophy-card { flex: 0 0 85%; min-height: auto; }
    .trophy-card .strain-card-inner { display: flex; flex-direction: column; padding: 0; }
    .trophy-card .strain-image { width: 100%; height: 180px; margin-bottom: 0; border-radius: 14px 14px 0 0; }
    .trophy-card .strain-top, .trophy-card .strain-meta, .trophy-card .strain-content { padding: 0 1.2rem; }
    .trophy-card .strain-top { margin-top: 1.2rem; }
    .trophy-card .strain-notes { margin-bottom: 1.2rem; }

    /* Main Library App-Like Tiles */
    #vault-strains { grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; padding: 0; }
    .library-card { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
    .library-card .desktop-img { height: 210px; }
    .library-card .desktop-img:not(.fallback-logo) { background-size: cover; background-position: center center; }
    
    .library-card .strain-content { padding: 12px 6px; text-align: center; display: flex; align-items: center; justify-content: center; flex-grow: 1; }
    .library-card .strain-name { font-size: 1.05rem; margin: 0; line-height: 1.1; word-wrap: break-word; }

    /* Hide Extra Text for Clean Tiles */
    .library-card .strain-meta, 
    .library-card .lineage-text, 
    .library-card .teaser-text, 
    .library-card .card-action { display: none !important; }

/* 6. Swipeable A-Z Jump Bar */
    .alpha-jump-bar { 
        position: relative; 
        top: 0; /* Zeros out the push so it stops overlapping */
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        padding: 12px 10px; 
        border-radius: 0; 
        border-left: none; the ugly scrollbar for a clean swipe */
        border-right: none; 
        margin-bottom: 15px; 
        background: transparent; 
        backdrop-filter: none; 
        box-shadow: none; 
    }
    
    .alpha-jump-bar::-webkit-scrollbar { 
        display: none; /* Hides the ugly scrollbar for a clean swipe */
    }
    
    .alpha-btn { 
        background: rgba(255,255,255,0.05); 
        border: 1px solid rgba(255,255,255,0.1); 
        padding: 8px 16px; 
        flex-shrink: 0; 
    }
}

/* =========================================================
   MOBILE HERO GAP FIX (STRAIN LIBRARY)
========================================================= */
@media (max-width: 768px) {
    .dt-strains-hero {
        padding-top: 80px !important; /* Shrinks the massive dead space */
        min-height: auto !important; /* Allows the box to shrink */
        padding-bottom: 40px !important;
        background-position: center 15% !important; /* Keeps the image anchored nicely */
    }
    
    /* Pulls the text up slightly so it feels perfectly centered */
    .dt-strains-hero-inner,
    .dt-strains-hero h1 {
        margin-top: 0 !important;
    }
}
