/* ══════════════════════════════════════════
   Flava Factory Genetics — Main Stylesheet
   ══════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'Libre Baskerville';
  src: url("/media/fonts/LibreBaskerville-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url("/media/fonts/LibreBaskerville-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url("/media/fonts/LibreBaskerville-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ── Kill ALL WordPress default injected elements ── */
#wpadminbar,
.wp-site-blocks,
[class*="wp-block-"],
[class*="wp-container-"],
[class*="wp-elements-"],
.has-global-padding,
.is-layout-constrained,
.is-layout-flow,
.is-layout-flex,
.wp-element-button {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  clip: rect(0,0,0,0) !important;
}

/* ── Reset ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; height:100%; scroll-padding-top: 10px; margin-top: 0 !important; }
body {
  background:#000;
  font-family: 'Libre Baskerville', serif;
  position: relative;
  color:#eee;
  font-size: 18px;
  line-height: 1.62;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── Background ── */
.bg-image {
  position:fixed; inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index:-2;
}
.bg-image::after {
  content:""; position:absolute; inset:0;
  background:rgba(0,0,0,0.45); z-index:-1;
}


/* ══════════════════════════════════════════
   FRONT PAGE
   ══════════════════════════════════════════ */

/* ── Logo Animation ── */
.logo-container {
  position:fixed; inset:0;
  display:flex; justify-content:center; align-items:center;
  z-index:1; transition:opacity 0.9s ease;
}
.center-logo {
  max-width:85vw; max-height:85vh;
  object-fit:contain; pointer-events:none;
  opacity:0; filter:brightness(0.15);
}
.center-logo.animate-now {
  opacity:1;
  animation:
    fadeIn 0.6s ease-out 0s forwards,
    attempt1 0.30s ease-in-out 0.375s forwards,
    attempt2 0.28s ease-in-out 0.956s forwards,
    attempt3 0.23s ease-in-out 1.755s forwards,
    fullBright 1.5s ease-out 2.74s forwards;
}
.center-logo.animate-now.glow-active {
  animation:
    glowFadeIn 0.3s ease-out forwards,
    glowPulse 6s ease-in-out 0.3s forwards infinite;
  filter:brightness(1) drop-shadow(0 0 7px #ffffff88) drop-shadow(0 0 18px #00ffff55);
}

@keyframes fadeIn      {0%{opacity:0;filter:brightness(0.15)} 100%{opacity:1;filter:brightness(0.15)}}
@keyframes attempt1    {0%{filter:brightness(0.15)} 25%{filter:brightness(0.92)} 100%{filter:brightness(0.15)}}
@keyframes attempt2    {0%{filter:brightness(0.15)} 28%{filter:brightness(0.95)} 100%{filter:brightness(0.15)}}
@keyframes attempt3    {0%{filter:brightness(0.15)} 30%{filter:brightness(0.88)} 100%{filter:brightness(0.15)}}
@keyframes fullBright  {0%{filter:brightness(0.15)} 100%{filter:brightness(1.00)}}
@keyframes glowFadeIn  {0%{filter:brightness(1) drop-shadow(0 0 0 #fff0) drop-shadow(0 0 0 #0ff0)} 100%{filter:brightness(1) drop-shadow(0 0 7px #fff8) drop-shadow(0 0 18px #0ff5)}}
@keyframes glowPulse   {0%,100%{filter:brightness(1) drop-shadow(0 0 7px #fff8) drop-shadow(0 0 18px #0ff5)} 50%{filter:brightness(1.035) drop-shadow(0 0 11px #fffb) drop-shadow(0 0 28px #0ff7)}}

/* ── Entry Overlay ── */
.entry-overlay {
  position:fixed; inset:0; background:#000; z-index:100;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:opacity 0.4s ease;
}
.entry-overlay.hidden { opacity:0; pointer-events:none; }
.entry-text { color:#fff; text-align:center; user-select:none; font-family:'Libre Baskerville',serif; line-height:1.15; }
.click-line { font-size:2.2rem; font-weight:400; letter-spacing:0.09em; color:#f5f5f5; margin-bottom:1.6rem; }
.main-line-wrapper { display:flex; flex-direction:column; align-items:center; justify-content:center; }
.entry-logo-video { width:210px; height:auto; border-radius:12px; object-fit:contain; }
.main-line, .genetics {
  font-family: 'Libre Baskerville', serif;
  font-size:4.4rem; font-weight:700; letter-spacing:0.12em; padding:0 0.8rem;
  background:linear-gradient(to bottom, rgb(253,255,231), rgb(200,170,140));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
  -webkit-text-stroke:0.5px rgba(0,0,0,0.3);
}
.genetics { margin-top:-0.2em; }
.age-warning { font-size:1.45rem; font-weight:400; color:#d0d0d0; letter-spacing:0.04em; opacity:0.88; margin-top:2rem; }
@keyframes pulseText {0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} }

/* ── Visibility Helpers ── */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }
@media (max-width:768px) {
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}

/* ── Language Switcher ── */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 9999;
  display: flex;
  gap: 7px;
  align-items: center;
}
.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  opacity: 0.55;
  text-decoration: none;
}
.lang-flag:hover { opacity: 1; border-color: rgba(255,255,255,0.35); }
.lang-flag.active { opacity: 1; border-color: rgb(255,220,100); }
.lang-flag img { width: 28px; height: 20px; display: block; border-radius: 2px; object-fit: cover; }

/* ── Main Site Container ── */
.main-site {
  display:none; opacity:0;
  transition:opacity 0.8s ease;
  min-height:100vh;
}
.main-site.visible { display:block; opacity:1; }

/* ── Sidebar ── */
.sidebar {
  width:325px; position:fixed; left:0; top:0;
  padding:50px 38px; z-index:10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 75%, transparent 100%);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-right:1px solid rgba(255,255,255,0.06);
  border-bottom-right-radius: 24px;
}
.sidebar-logo {
  width:280px; display:block; cursor:pointer;
  transition:transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  border-radius:8px; object-fit:contain;
  margin-left:-16px; margin-top:-28px;
}
.sidebar-logo:hover { transform:scale(1.06); opacity:0.92; }
.menu-item {
  display:block; font-size:2.15rem; font-weight:700; color:rgb(185,155,107);
  text-decoration:none; margin:1.6em 0; letter-spacing:0.06em;
  transition:color 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), text-shadow 0.4s ease;
  cursor:pointer;
}
.menu-item:hover, .menu-item.active {
  color:rgb(255,235,170); text-shadow:0 0 22px rgba(255,220,100,0.55); transform:translateX(6px);
}

/* ── Front Page Content ── */
.main-site > .content-area { margin-left:325px; padding:20px 60px 140px; }
.section {
  margin-bottom:180px; min-height:70vh; scroll-margin-top: 10px;
}
#about { margin-bottom: 20px; padding-bottom: 0; min-height: auto; }
.about-title-mobile { display: block; }
h1.title-gradient {
  font-family: 'Libre Baskerville', serif;
  font-size: 4.75rem; font-weight: 700; letter-spacing: 0.08em;
  background: linear-gradient(to bottom, rgb(253,255,231) 30%, rgb(200,170,140) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3em;
}
p.intro {
  font-size:1.69rem; line-height:1.7; max-width:780px; color:#ccc; margin-bottom:2em;
  letter-spacing:0.01em;
}

/* ── Seed List ── */
.seed-list { margin: 0.5em 0; }
.seed-entry { margin-bottom: 0.6em; }
.seed-name { display: block; font-size: 1.5rem; color: #ddd; font-family: 'Libre Baskerville', serif; line-height: 1.6; }
.seed-genetics { display: block; font-size: 1.25rem; color: #888; font-family: 'Libre Baskerville', serif; line-height: 1.5; margin-top: -0.1em; }

/* ── Seed Name Links ── */
.seed-name-link {
  display: inline-block;
  font-size: 1.5rem; font-family: 'Libre Baskerville', serif; line-height: 1.6;
  text-decoration: none;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  color: rgb(200,170,130);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), color 0.3s ease, text-shadow 0.3s ease;
}
.seed-name-link:hover {
  transform: scale(1.08);
  color: rgb(255,245,200);
  text-shadow: 0 0 14px rgba(255,200,80,0.6), 0 0 35px rgba(255,180,50,0.25);
}

/* ── VIP Presale Link ── */
.seed-entry-vip { position: relative; z-index: 5; }
.seed-entry-vip .seed-name-link {
  display: inline-block;
  font-size: 1.5rem; font-family: 'Libre Baskerville', serif; line-height: 1.6;
  text-decoration: none;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  color: rgb(200,170,130);
  animation: vipGlow 2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), color 0.3s ease, text-shadow 0.3s ease;
}
.seed-entry-vip .seed-name-link:hover {
  transform: scale(1.08);
  color: rgb(255,245,200);
  text-shadow: 0 0 14px rgba(255,200,80,0.6), 0 0 35px rgba(255,180,50,0.25);
  animation-play-state: paused;
}
/* Soft glow aura behind text */
.seed-entry-vip .seed-name-link::before {
  content: '';
  position: absolute;
  inset: -6px -12px;
  border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(255,200,80,0.08) 0%, transparent 70%);
  animation: vipAura 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes vipGlow {
  0%, 100% { color: rgb(200,170,130); text-shadow: none; }
  50% { color: rgb(255,240,200); text-shadow: 0 0 10px rgba(255,220,100,0.4), 0 0 25px rgba(255,200,80,0.15); }
}
@keyframes vipAura {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.seed-entry-vip .vip-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgb(255,200,80);
  border: 1px solid rgba(255,200,80,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 20px;
  letter-spacing: 0.12em;
  vertical-align: middle;
  pointer-events: none;
  animation: vipAura 2s ease-in-out infinite;
}

/* ── Card Grid ── */
.grid { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin-top:40px; max-width:85%; }
.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.card-link:hover .card {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    0 0 50px rgba(0,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  border-color:rgba(255,255,255,0.12);
}
.card-link:hover .strain-name {
  transform: scale(1.04);
  filter: brightness(1.15);
}
.card-link:hover .card-text {
  color:#ddd;
}
.card {
  background:rgba(20,20,20,0.7);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;
  overflow:hidden;
  transition:all 0.45s cubic-bezier(0.22,1,0.36,1);
  position:relative;
  aspect-ratio: 1 / 1;
  height: auto;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
}
.card img,
.card-info,
.strain-name,
.card-text {
  pointer-events: none;
}
.card img {
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
  transition:transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.card-link:hover .card img {
  transform:scale(1.05);
}
.card-info {
  position:relative; z-index:1; height:100%;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:16px;
  background:linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 40%, transparent 65%);
}
.strain-name {
  font-family:'Libre Baskerville', serif;
  font-size:1.92rem; font-weight:700; letter-spacing:0.12em; white-space:nowrap;
  background:linear-gradient(to bottom, rgb(253,255,231) 30%, rgb(200,170,140) 70%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  -webkit-text-stroke:0.5px rgba(0,0,0,0.3);
  text-align:center; margin-bottom:0.6rem;
  transition:transform 0.45s cubic-bezier(0.22,1,0.36,1), filter 0.45s ease;
}
.card-text {
  color:#aaa;
  font-size:0.95rem;
  line-height:1.5;
  text-align:center;
  transition:color 0.4s ease;
  letter-spacing:0.02em;
}


/* ══════════════════════════════════════════
   RESPONSIVE — Front Page
   ══════════════════════════════════════════ */

@media (max-width:900px) {
  .sidebar { width:275px; padding:38px 25px; }
  .sidebar-logo { width:245px; }
  .main-site > .content-area { margin-left:275px; padding:60px 40px 100px; }
  h1.title-gradient { font-size:4rem; }
}
@media (max-width:768px) {
  /* Prevent horizontal scroll */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Sidebar becomes top bar */
  .sidebar { width:100%; height:auto; position:relative; padding:15px 20px; border-right:none; border-bottom:1px solid rgba(255,255,255,0.06); border-bottom-right-radius:0; background:rgba(0,0,0,0.7); display:flex; flex-direction:row; align-items:center; gap:20px; }
  .sidebar-logo { width:177px; max-width:177px; margin:0; flex-shrink:0; }
  .menu-items { display:flex; flex-direction:column; }
  .menu-item { display:block !important; margin:0.3em 0 !important; font-size:1.43rem; text-align:left; }

  /* Entry overlay mobile */
  .entry-logo-video { width:300px; }

  /* Content area */
  .main-site > .content-area { margin-left:0; padding:25px 15px; }

  /* Titles and text halved */
  h1.title-gradient { font-size:2.2rem; margin-bottom:0.4em; }
  p.intro { font-size:1.02rem; line-height:1.6; margin-bottom:1.2em; }
  .section { margin-bottom:80px; min-height:auto; scroll-margin-top: 230px; }
  #about { scroll-margin-top: 210px; }

  /* Seed table — stack on mobile */
  .seed-name { font-size: 1.02rem; line-height: 1.4; }
  .seed-genetics { font-size: 0.84rem; line-height: 1.3; }
  .seed-entry-vip .seed-name-link { font-size: 1.02rem; }
  .seed-entry-vip { display: flex; flex-direction: column; }
  .seed-entry-vip .vip-badge { order: -1; margin-left: 0; margin-bottom: 4px; align-self: flex-start; }

  /* Disable hover effects on mobile */
  .card-link:hover .card { transform: none; box-shadow: 0 8px 30px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.06); }
  .card-link:hover .card img { transform: none; }
  .card-link:hover .strain-name { transform: none; filter: none; }

  /* Card grid: name above picture */
  .grid { grid-template-columns:1fr; max-width:308px; margin-left:auto; margin-right:auto; gap:30px; }
  .card { aspect-ratio:auto; height:auto; overflow:visible; }
  .card img { position:relative; width:100%; height:auto; display:block; border-radius:12px; }
  .card-info { position:relative; background:none; padding:8px 0 0; display:block; }
  .card-text { font-size:0.9rem; text-align:center; color:#aaa; }
  .strain-name { font-size:1.32rem; }

  /* Seed name links same size as other names on mobile */
  .seed-name-link { font-size: 1.02rem !important; }

  /* About section */
  .about-img { max-width:69% !important; flex:1; }
  .about-title-mobile { display: block; font-size:2.2rem; }

  /* Language switcher — top right on mobile */
  .lang-switcher { top: 12px; right: 12px; gap: 5px; }
  .lang-flag img { width: 24px; height: 17px; }

  /* Remove bottom space on main page */
  #about { padding-bottom: 0; margin-bottom: 0; }
  #about div[style*="margin-top"] { margin-top: -10px !important; }
  .content-area { padding-bottom: 0 !important; }
}
