/* HoodX.fun dark product refinement.
 * Inspired by Long's restraint and hierarchy, while preserving HoodX's own
 * identity, content, routes, truthful preview state, and neon #D0F706 brand.
 */

:root {
  color-scheme: dark;
  --hood-green: #d0f706;
  --hood-lime: #d0f706;
  --hood-green-ink: #d0f706;
  --primary: #d0f706;
  --primary-foreground: #071006;
  --background: #000f06;
  --foreground: #edf3ee;
  --card: #07150c;
  --card-foreground: #edf3ee;
  --popover: #091910;
  --popover-foreground: #edf3ee;
  --secondary: #102117;
  --secondary-foreground: #edf3ee;
  --muted: #0d1d13;
  --muted-foreground: #8f9d93;
  --accent: #14271a;
  --accent-foreground: #edf3ee;
  --border: rgba(226, 240, 230, 0.11);
  --input: rgba(226, 240, 230, 0.14);
  --surface-2: #0a1a10;
}

html {
  background: #000f06;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 3%, rgba(208, 247, 6, 0.085), transparent 29rem),
    radial-gradient(circle at 10% 38%, rgba(53, 105, 65, 0.09), transparent 34rem),
    linear-gradient(180deg, #000f06 0%, #020d06 52%, #000b04 100%) !important;
  color: var(--foreground);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 5px, 64px 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

#root {
  position: relative;
  z-index: 1;
}

.text-hood-green {
  color: var(--hood-green) !important;
}

.bg-card,
.bg-background,
.bg-sidebar,
.hood-card,
.hood-panel-glow {
  color: var(--card-foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground) !important;
}

.border-border {
  border-color: var(--border) !important;
}

/* One continuous product frame */
.min-h-screen > .border-b.bg-sidebar {
  min-height: 28px;
  background: rgba(0, 9, 3, 0.96) !important;
  border-color: rgba(208, 247, 6, 0.09) !important;
  color: rgba(237, 243, 238, 0.58);
}

header.sticky {
  top: 27px !important;
  background: rgba(0, 15, 6, 0.82) !important;
  border-bottom: 1px solid rgba(237, 243, 238, 0.085) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.18) !important;
}

header.sticky > .container {
  height: 72px !important;
}

header a[href="/"] {
  color: #edf3ee !important;
}

header img[alt="HoodX"] {
  filter: hue-rotate(-52deg) saturate(1.3) brightness(1.1) drop-shadow(0 0 18px rgba(208, 247, 6, 0.18));
}

header nav {
  padding: 4px;
  border: 1px solid rgba(237, 243, 238, 0.09);
  background: rgba(8, 25, 14, 0.76);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
}

header nav a {
  color: rgba(237, 243, 238, 0.66) !important;
}

header nav a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

header nav a.bg-primary\/10,
header nav a.text-primary {
  color: var(--hood-green) !important;
  background: rgba(208, 247, 6, 0.095) !important;
}

header button {
  border-color: rgba(237, 243, 238, 0.12) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #edf3ee !important;
}

/* Status line becomes quiet system metadata */
main > div:has(> #markets) > div:first-child {
  width: min(calc(100% - 48px), 1180px);
  margin-top: 24px;
  border-color: rgba(237, 243, 238, 0.08) !important;
  background: rgba(6, 24, 12, 0.58) !important;
  box-shadow: none;
}

main > div:has(> #markets) > div:first-child .container {
  color: rgba(237, 243, 238, 0.53);
}

/* Flagship hero: dark, focused, cinematic */
main > div:has(> #markets) > section:first-of-type {
  min-height: 520px;
  border-color: rgba(237, 243, 238, 0.105) !important;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 44%, rgba(208, 247, 6, 0.095), transparent 24rem),
    #031108 !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 40px 120px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

main > div:has(> #markets) > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #031108 0%, rgba(3, 17, 8, 0.98) 38%, rgba(3, 17, 8, 0.48) 70%, rgba(3, 17, 8, 0.14) 100%),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.32));
}

main > div:has(> #markets) > section:first-of-type::after {
  background:
    linear-gradient(90deg, transparent 0%, transparent 58%, rgba(208, 247, 6, 0.055) 100%),
    radial-gradient(circle at 94% 8%, rgba(208, 247, 6, 0.12), transparent 22rem) !important;
  z-index: 1;
}

main > div:has(> #markets) > section:first-of-type > .absolute.inset-0.bg-cover {
  opacity: 0.62;
  filter: hue-rotate(-52deg) saturate(1.4) brightness(0.88) contrast(1.06) !important;
  mix-blend-mode: screen;
  background-position: 62% center !important;
}

main > div:has(> #markets) > section:first-of-type > .relative.container {
  min-height: 520px;
  padding: 76px 60px !important;
  align-items: center;
  z-index: 2;
}

main > div:has(> #markets) > section:first-of-type h1 {
  max-width: 790px;
  color: #edf3ee;
  font-size: clamp(4rem, 6.6vw, 5.75rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.065em !important;
  text-shadow: 0 16px 55px rgba(0, 0, 0, 0.3);
}

main > div:has(> #markets) > section:first-of-type h1 .text-hood-green {
  color: var(--hood-green) !important;
  text-shadow: 0 0 42px rgba(208, 247, 6, 0.16);
}

main > div:has(> #markets) > section:first-of-type p {
  max-width: 530px;
  color: rgba(237, 243, 238, 0.66) !important;
  font-size: 1.05rem !important;
}

main > div:has(> #markets) > section:first-of-type a[href="#markets"],
main > div:has(> #markets) > section:first-of-type a[href="/mint"] {
  min-height: 52px;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

main > div:has(> #markets) > section:first-of-type a[href="#markets"] {
  color: #071006 !important;
  background: var(--hood-green) !important;
  border-color: var(--hood-green) !important;
}

main > div:has(> #markets) > section:first-of-type a[href="/mint"] {
  color: #edf3ee !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(237, 243, 238, 0.16) !important;
}

main > div:has(> #markets) > section:first-of-type a:hover {
  transform: translateY(-2px);
}

/* Market workspace: a single restrained terminal surface */
#markets {
  margin-top: 28px;
}

#markets .container > .flex.flex-col.lg\:flex-row > aside,
#markets .container > .flex.flex-col.lg\:flex-row > .flex-1 {
  border-color: rgba(237, 243, 238, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(10, 29, 16, 0.86), rgba(5, 20, 11, 0.9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 26px 70px rgba(0, 0, 0, 0.2);
}

#markets .container > .flex.flex-col.lg\:flex-row > aside {
  border-radius: 20px;
}

#markets .container > .flex.flex-col.lg\:flex-row > .flex-1 {
  border-radius: 20px;
}

#markets input[placeholder="Search tokens..."] {
  color: #edf3ee !important;
  border-color: rgba(237, 243, 238, 0.1) !important;
  background: rgba(0, 0, 0, 0.18) !important;
}

#markets input::placeholder {
  color: rgba(237, 243, 238, 0.4);
}

#markets button,
#markets [role="combobox"] {
  color: rgba(237, 243, 238, 0.68);
  border-color: rgba(237, 243, 238, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.025);
}

#markets button:hover,
#markets [role="combobox"]:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

#markets .bg-primary,
#markets button.bg-primary {
  color: #071006 !important;
  background: var(--hood-green) !important;
}

#markets a[href="/token/hood2x"] {
  min-height: 248px;
  border-color: rgba(208, 247, 6, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 247, 6, 0.13), transparent 22rem),
    linear-gradient(145deg, #0c2112 0%, #07170c 68%, #06120a 100%) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 30px 70px rgba(0, 0, 0, 0.25);
}

#markets a[href="/token/hood2x"]:hover {
  border-color: rgba(208, 247, 6, 0.58) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 34px 84px rgba(0, 0, 0, 0.33);
}

#markets a[href="/token/hood2x"] .grid.grid-cols-4 {
  border-color: rgba(237, 243, 238, 0.08) !important;
}

/* Mechanism reads like product architecture, not a card gallery */
#markets + section {
  border: 1px solid rgba(237, 243, 238, 0.09) !important;
  background:
    radial-gradient(circle at 84% 0%, rgba(208, 247, 6, 0.1), transparent 28rem),
    linear-gradient(145deg, #04140a 0%, #07170c 100%) !important;
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.28);
}

#markets + section .hood-card {
  color: #edf3ee;
  border-color: rgba(237, 243, 238, 0.1) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)) !important;
  box-shadow: none;
}

#markets + section .hood-card:hover {
  border-color: rgba(208, 247, 6, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(208, 247, 6, 0.07), rgba(255, 255, 255, 0.015)) !important;
}

#markets + section .hood-card h3,
#markets + section .hood-card p,
#markets + section .hood-card span {
  color: inherit;
}

#markets + section .hood-card p {
  color: rgba(237, 243, 238, 0.58) !important;
}

#markets + section .hood-card img:not([src*="hoodx-logo"]) {
  opacity: 0.24 !important;
  filter: hue-rotate(-52deg) saturate(1.45) brightness(0.62) contrast(1.12) !important;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 0%, #000 44%, #000 100%);
}

/* Inner app pages share the same dark product system */
main > .hood-aurora,
main > div.hood-aurora {
  background:
    radial-gradient(circle at 78% 8%, rgba(208, 247, 6, 0.075), transparent 25rem) !important;
}

main > .hood-aurora .bg-card,
main > div.hood-aurora .bg-card,
main > .hood-aurora .hood-panel-glow,
main > div.hood-aurora .hood-panel-glow,
main > .hood-aurora .hood-card,
main > div.hood-aurora .hood-card {
  color: #edf3ee;
  border-color: rgba(237, 243, 238, 0.1) !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(208, 247, 6, 0.055), transparent 18rem),
    linear-gradient(155deg, rgba(10, 29, 16, 0.96), rgba(5, 19, 10, 0.96)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 24px 70px rgba(0, 0, 0, 0.24);
}

main > .hood-aurora input,
main > div.hood-aurora input,
main > .hood-aurora textarea,
main > div.hood-aurora textarea,
main > .hood-aurora [role="combobox"],
main > div.hood-aurora [role="combobox"] {
  color: #edf3ee !important;
  border-color: rgba(237, 243, 238, 0.12) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

main > .hood-aurora input::placeholder,
main > div.hood-aurora input::placeholder,
main > .hood-aurora textarea::placeholder,
main > div.hood-aurora textarea::placeholder {
  color: rgba(237, 243, 238, 0.38);
}

main > .hood-aurora img.bg-white,
main > div.hood-aurora img.bg-white {
  border-color: rgba(237, 243, 238, 0.09) !important;
  background: #07150c !important;
  filter: hue-rotate(-52deg) saturate(1.32) brightness(0.72) contrast(1.08) !important;
}

main > .hood-aurora button,
main > div.hood-aurora button {
  border-color: rgba(237, 243, 238, 0.12);
}

main article {
  color: #edf3ee;
  border-color: rgba(237, 243, 238, 0.09) !important;
  background:
    linear-gradient(155deg, rgba(10, 29, 16, 0.95), rgba(4, 17, 9, 0.96)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 26px 74px rgba(0, 0, 0, 0.24);
}

main article code {
  color: var(--hood-green);
  background: rgba(208, 247, 6, 0.075);
}

footer {
  border-color: rgba(237, 243, 238, 0.08) !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(208, 247, 6, 0.075), transparent 25rem),
    #000b04 !important;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 84px;
  }

  header.sticky > .container {
    height: 62px !important;
  }

  header nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 80;
    display: flex !important;
    width: min(calc(100vw - 28px), 380px);
    justify-content: space-between;
    padding: 5px;
    border-color: rgba(237, 243, 238, 0.12);
    background: rgba(5, 21, 11, 0.9);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(22px) saturate(1.2);
    transform: translateX(-50%);
  }

  header nav a {
    min-width: 0;
    flex: 1;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 0.74rem;
  }

  main > div:has(> #markets) > section:first-of-type {
    min-height: 580px;
  }

  main > div:has(> #markets) > section:first-of-type::before {
    background:
      linear-gradient(180deg, #031108 0%, rgba(3, 17, 8, 0.96) 54%, rgba(3, 17, 8, 0.46) 100%),
      linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.36));
  }

  main > div:has(> #markets) > section:first-of-type > .absolute.inset-0.bg-cover {
    opacity: 0.46;
    background-position: 62% bottom !important;
  }

  main > div:has(> #markets) > section:first-of-type > .relative.container {
    min-height: 580px;
    padding: 44px 26px 28px !important;
    align-items: flex-start;
  }

  main > div:has(> #markets) > section:first-of-type h1 {
    font-size: clamp(3rem, 14vw, 4rem) !important;
    line-height: 0.94 !important;
  }

  #markets .container > .flex.flex-col.lg\:flex-row > aside {
    background: rgba(7, 24, 13, 0.82) !important;
  }

  #markets + section {
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > div:has(> #markets) > section:first-of-type a:hover,
  #markets a[href="/token/hood2x"]:hover {
    transform: none;
  }
}
