/*
 * SHARDSEC — Premium dark green theme overrides.
 * Kept in a single file so the base theme code stays untouched.
 */

:root {
  --shardsec-green: 34 160 30;
  --shardsec-green-glow: 74 222 63;
  --shardsec-green-deep: 12 74 10;
  --shardsec-lime-glow: 173 230 70;
  /* Lightened, softer base instead of near-black */
  --shardsec-ink: 10 22 10;
  --shardsec-ink-light: 16 34 16;
}

/* Background: softer charcoal base with a broad, dimmed green gradient wash */
body {
  background-color: rgb(var(--shardsec-ink)) !important;
  color: #fff;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,
      rgba(var(--shardsec-green), 0.30), transparent 65%),
    radial-gradient(ellipse 70% 50% at 85% 15%,
      rgba(var(--shardsec-lime-glow), 0.12), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 100%,
      rgba(var(--shardsec-green-deep), 0.28), transparent 70%),
    linear-gradient(180deg,
      rgb(var(--shardsec-ink-light)) 0%,
      rgb(var(--shardsec-ink)) 45%,
      rgb(var(--shardsec-ink-light)) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, black, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, black, transparent 75%);
}

/* Hide the default particles canvas — we prefer the clean gradient look */
#particles-js { display: none !important; }

/* ================= NAVBAR ================= */

nav[data-component-id="navbar"] > div {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

nav[data-component-id="navbar"] h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
}

/* Nav link buttons: pill shaped */
nav[data-component-id="navbar"] a[class*="px-4 py-2"],
nav[data-component-id="navbar"] button[class*="px-4 py-2"] {
  border-radius: 12px !important;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

nav[data-component-id="navbar"] a[class*="bg-accent-500"],
nav[data-component-id="navbar"] a[class*="bg-accent-700"] {
  background: linear-gradient(180deg,
    rgb(var(--shardsec-green-glow)),
    rgb(var(--shardsec-green))) !important;
  border: 1px solid rgba(var(--shardsec-green-glow), 0.6) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px -12px rgba(var(--shardsec-green-glow), 0.6);
}

/* Cart icon button in nav */
nav[data-component-id="navbar"] a[href$="/cart"] {
  border-radius: 12px !important;
  background: linear-gradient(180deg,
    rgb(var(--shardsec-green-glow)),
    rgb(var(--shardsec-green))) !important;
  color: #fff !important;
  border: 1px solid rgba(var(--shardsec-green-glow), 0.6) !important;
  box-shadow: 0 10px 26px -12px rgba(var(--shardsec-green-glow), 0.55);
}

/* ================= HOT BAR (ANNOUNCEMENT) ================= */

.announcement {
  position: relative;
  z-index: 20;
}

.announcement > div {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgb(var(--shardsec-green-deep)),
    rgb(var(--shardsec-green-glow)) 35%,
    rgb(var(--shardsec-lime-glow)) 55%,
    rgb(var(--shardsec-green-glow)) 75%,
    rgb(var(--shardsec-green-deep))) !important;
  background-size: 200% 100%;
  animation: hotbar-shift 6s linear infinite;
  border: 0 !important;
  border-bottom: 1px solid rgba(var(--shardsec-lime-glow), 0.5) !important;
  padding: 0.6rem 1rem !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 24px -8px rgba(var(--shardsec-green-glow), 0.55);
}

/* subtle diagonal shimmer sweep */
.announcement > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 55%);
  background-size: 250% 100%;
  animation: hotbar-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hotbar-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes hotbar-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

/* "🔥" hot kicker before each rotating message */
.announcement p::before {
  content: "\f06d"; /* fa-fire */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.4rem;
  color: #f7fee7;
  filter: drop-shadow(0 0 6px rgba(190, 242, 100, 0.9));
}

/* ================= HERO ================= */

section[data-component-id="hero"] { position: relative; }

section[data-component-id="hero"] h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.25rem !important;
}

section[data-component-id="hero"] h1 .text-accent-500 {
  background: linear-gradient(180deg,
    rgb(134, 239, 172),
    rgb(var(--shardsec-green)));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 40px rgba(var(--shardsec-green-glow), 0.35);
}

section[data-component-id="hero"] p {
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Pill kicker above the title — real "bubble" element behind badge_text/badge_icon */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border-radius: 9999px !important;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(var(--shardsec-green-glow), 0.22),
    rgba(var(--shardsec-green), 0.14)) !important;
  border: 1px solid rgba(var(--shardsec-green-glow), 0.45) !important;
  color: rgb(190, 242, 130);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 auto 0.5rem;
  align-self: center;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 24px -4px rgba(var(--shardsec-green-glow), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-badge i {
  font-size: 0.7rem;
}

section[data-component-id="hero"] > div > div {
  position: relative;
}

/* Real feature pills row (rendered via inline HTML injection) */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem auto 0;
}
.hero-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero-pills > span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(var(--shardsec-green-glow));
  box-shadow: 0 0 12px rgba(var(--shardsec-green-glow), 0.7);
}
.hero-pills > span.pill-amber::before { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.hero-pills > span.pill-sky::before   { background: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }

/* Hero search bar refinements */
section[data-component-id="hero"] input[type="search"],
section[data-component-id="hero"] input[type="text"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  color: #fff !important;
  padding: 0.85rem 1rem !important;
}

/* ================= BUTTONS ================= */

.btn,
button.btn,
a.btn,
[class~="bg-accent-500"]:not(nav *):not(.announcement *),
[class~="bg-accent-700"]:not(nav *) {
  background: linear-gradient(180deg,
    rgb(var(--shardsec-green-glow)),
    rgb(var(--shardsec-green))) !important;
  border: 1px solid rgba(var(--shardsec-green-glow), 0.55) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.4rem !important;
  box-shadow:
    0 12px 30px -12px rgba(var(--shardsec-green-glow), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.btn:hover,
button.btn:hover,
a.btn:hover,
[class~="bg-accent-500"]:not(nav *):not(.announcement *):hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Outline / ghost buttons — exact token match only, so focus-within:border-accent-500
   on inputs / quantity wrappers is no longer caught by mistake. */
a[class~="border-accent-500"],
button[class~="border-accent-500"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 0.75rem 1.4rem !important;
  font-weight: 600 !important;
}
a[class~="border-accent-500"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ================= CARDS (products, features, feedbacks, product page) ================= */

.bg-card,
[class*="bg-card"] {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bg-card:hover,
[class*="bg-card"]:hover {
  border-color: rgba(var(--shardsec-green-glow), 0.35) !important;
  transform: translateY(-2px);
}

/* Clip flush inner rows (title bar, price bar, image, tabs...) to the card's
   own rounded corners instead of the sharp default squares */
.bg-card {
  overflow: hidden;
}

/* Feature cards: accent icon */
section[data-component-id*="feature"] i {
  color: rgb(var(--shardsec-green-glow)) !important;
  text-shadow: 0 0 24px rgba(var(--shardsec-green-glow), 0.45);
}

section[data-component-id*="feature"] hr,
section[data-component-id*="stats"] hr {
  border-color: rgb(var(--shardsec-green-glow)) !important;
}

/* Section titles */
section h1,
section h2 {
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

/* Stats numbers get the green gradient */
section[data-component-id*="stats"] .text-t-primary:is(h1, h2, h3, .text-3xl, .text-4xl, .text-5xl, [class*="text-3xl"], [class*="text-4xl"]) {
  background: linear-gradient(180deg, rgb(190, 242, 100), rgb(var(--shardsec-green)));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent !important;
}

/* ================= FOOTER ================= */

footer {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

/* ================= MISC ================= */

.text-accent-500 {
  color: rgb(var(--shardsec-green-glow)) !important;
}

::selection {
  background: rgba(var(--shardsec-green-glow), 0.35);
  color: #fff;
}
