/* =============================
   Neon Nook Convenience Styles
   ============================= */

:root {
  --bg: #080810;
  --card: #101018;
  --text: #f5f6ff;
  --muted: #b3b3cc;
  --neon-pink: #ff4dcb;
  --neon-cyan: #36e3ff;
  --neon-lime: #b6ff4d;
  --accent: #7b7bff;
  --radius: 16px;
  --shadow: 0 0 25px rgba(255, 77, 203, 0.15),
             0 0 35px rgba(54, 227, 255, 0.15);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", sans-serif;
  background: radial-gradient(circle at 30% 10%, rgba(255, 77, 203, 0.1), transparent 60%),
              radial-gradient(circle at 80% 0%, rgba(54, 227, 255, 0.1), transparent 70%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* =============================
   HEADER + BRAND
   ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom: none;
  box-shadow:
    0 0 25px rgba(54, 227, 255, 0.15),
    0 0 50px rgba(255, 77, 203, 0.1);
  padding: 4px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 2px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  box-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-pink),
    0 0 30px rgba(182, 255, 77, 0.4);
}

/* =============================
   NAVIGATION BAR
   ============================= */

.site-nav {
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.85), rgba(0, 0, 0, 0.8));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(255, 77, 203, 0.25);
  box-shadow:
    inset 0 0 10px rgba(54, 227, 255, 0.3),
    0 0 25px rgba(255, 77, 203, 0.2);
  padding: 10px 0;
  position: relative;
  z-index: 999;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  border-radius: 50px;
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.9), rgba(12, 12, 22, 0.9));
  box-shadow:
    inset 0 0 10px rgba(54, 227, 255, 0.3),
    0 0 20px rgba(54, 227, 255, 0.2);
  transition: all 0.25s ease;
}

.site-nav a:hover {
  color: #fff;
  box-shadow:
    0 0 10px var(--neon-pink),
    0 0 25px var(--neon-cyan),
    inset 0 0 12px rgba(182, 255, 77, 0.4);
  transform: translateY(-2px);
}

.site-nav a.active {
  color: #fff;
  box-shadow:
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-cyan),
    inset 0 0 12px rgba(182, 255, 77, 0.4);
}

/* =============================
   HERO + CARDS
   ============================= */

.hero {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.neon {
  text-shadow: 0 0 10px var(--neon-pink),
               0 0 18px var(--neon-cyan);
}

.hero h2 {
  font-size: 2.1rem;
  margin: 0.2rem 0 1rem;
}

.searchbar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.searchbar input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  background: #000;
  color: var(--text);
  box-shadow: inset 0 0 10px rgba(54, 227, 255, 0.2);
}

.searchbar input:focus {
  outline: none;
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-pink);
}

.btn {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, var(--neon-cyan), var(--neon-pink));
  color: #001018;
  box-shadow: 0 0 15px rgba(255, 77, 203, 0.3), 0 0 25px rgba(54, 227, 255, 0.3);
  transition: all 0.2s ease;
}

.btn:hover {
  filter: saturate(1.2) brightness(1.1);
}

/* =============================
   FOOTER
   ============================= */

footer {
  margin-top: 40px;
  padding: 28px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 -5px 20px rgba(54, 227, 255, 0.1);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =============================
   MOBILE NAVIGATION
   ============================= */

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.95), rgba(0, 0, 0, 0.92));
    border-bottom: 2px solid rgba(255, 77, 203, 0.25);
    box-shadow: inset 0 0 10px rgba(54, 227, 255, 0.25),
                0 10px 30px rgba(0, 0, 0, 0.6);
  }

  .site-nav.open {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 14px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

.menu-toggle {
  transition: opacity 0.25s ease;
}

/* --- FORCE DESKTOP BEHAVIOR --- */
@media (min-width: 781px){
  .site-nav{
    position: static !important;   /* nav participates in normal flow */
    top: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 2px !important;    /* tiny gap under logo/text */
  }
    .menu-toggle {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }
}

/* Tighten brand > nav spacing just in case */
.site-header{ padding: 4px 0 0 !important; }
.header-inner{ padding: 4px 20px 2px !important; }
.site-header + .site-nav{ margin-top: 2px !important; }

/* Optional: shrink extra vertical padding inside nav */
.site-nav{ padding: 8px 0; }
.site-nav ul{ margin: 0 !important; padding: 0 !important; }

/* ===== PRODUCTS (search + filters + grid) ===== */
.section { padding: 32px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.panel {
  position: relative; background: linear-gradient(180deg,#0b0b14,#0f0f1f);
  border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.65);
}
.panel::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit;
  background: conic-gradient(from 180deg, var(--neon-cyan), var(--neon-pink), var(--neon-lime), var(--neon-cyan));
  filter: blur(14px); opacity: .18; z-index: -1;
}

/* Controls */
.controls{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin: 12px 0 18px;
}
.controls input[type="search"], .controls select{
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background:#06060a; color:var(--text); box-shadow: inset 0 0 10px rgba(123,123,255,.12);
  min-width: 220px;
}
.chips{ display:flex; flex-wrap:wrap; gap:8px }
.chip{
  padding:10px 12px; border-radius:12px; cursor:pointer; user-select:none;
  border:1px solid rgba(255,255,255,.16); background:#0e0e18; color:var(--text);
  transition: box-shadow .2s ease, transform .12s ease;
}
.chip:hover{ transform: translateY(-1px); box-shadow: 0 0 18px rgba(123,123,255,.25) }
.chip.active{ box-shadow: 0 0 0 3px rgba(54,227,255,.35), 0 0 30px rgba(255,77,203,.35); border-color: transparent }

/* Grid & cards */
.grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px }
.card{
  position:relative; overflow:hidden; border-radius:18px;
  background: linear-gradient(180deg,#0d0d16,#0b0b14);
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 40px rgba(0,0,0,.65);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before{
  content:""; position:absolute; inset:-2px;
  background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-pink), transparent 60%);
  filter: blur(18px); opacity: .12; z-index:-1; transition: opacity .25s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(54,227,255,.35);
  box-shadow: 0 15px 60px rgba(54,227,255,.15), 0 20px 80px rgba(255,77,203,.12); }
.card:hover::before{ opacity: .22; }

.thumb{
  width:100%; aspect-ratio: 4 / 3; object-fit: cover; display:block; background:#05050a;
}
.card-body{ padding:14px }
.title{ margin:0 0 4px; font-weight:900; text-shadow: 0 0 10px rgba(255,77,203,.25) }
.desc{ margin:0 0 10px; color:var(--muted); font-size:.95rem; line-height:1.5 }
.price{ font-weight:900; color:#e8f9ff; text-shadow: 0 0 10px rgba(54,227,255,.35) }

/* Responsive columns */
@media (max-width: 1024px){ .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid{ grid-template-columns: 1fr; } }

/* ========= Neon Effects Pack ========= */

/* 1) Pulsing neon for nav buttons */
@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255,77,203,.25),
      0 0 15px rgba(54,227,255,.25),
      inset 0 0 0 rgba(255,255,255,0);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255,77,203,.45),
      0 0 28px rgba(54,227,255,.40),
      inset 0 0 10px rgba(182,255,77,.25);
    filter: brightness(1.08);
  }
}
.site-nav a.nav-pulse {
  animation: neonPulse 2.8s ease-in-out infinite;
}

/* 2) Card ripple (mouse-reactive glow) */
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
}
.card::after{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(300px 300px at var(--mx) var(--my),
      rgba(54,227,255,.20), transparent 60%);
  opacity:0; transition: opacity .25s ease, background .1s linear;
}
.card:hover::after{ opacity:1; }

/* Stronger lift when glow is active */
.card.ripple-active{
  transform: translateY(-6px);
  box-shadow:
    0 20px 70px rgba(54,227,255,.18),
    0 30px 90px rgba(255,77,203,.14);
}

/* 3) Logo flicker intro (one-time on load) */
@keyframes neonFlicker {
  0%   { filter: brightness(.2) saturate(.6); box-shadow:none; }
  6%   { filter: brightness(1.6); }
  8%   { filter: brightness(.4); }
  12%  { filter: brightness(1.4) saturate(1.1); }
  16%  { filter: brightness(.6); }
  20%  { filter: brightness(1.5) saturate(1.2); }
  24%  { filter: brightness(.75); }
  30%,100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 10px var(--neon-cyan),
      0 0 20px var(--neon-pink),
      0 0 30px rgba(182,255,77,.4);
  }
}
.logo-mark.flicker-once {
  animation: neonFlicker 1.2s linear 1 both;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-nav a.nav-pulse { animation:none !important; }
  .logo-mark.flicker-once { animation:none !important; }
}
