/* BoomBo — cinematic cyan catalog */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: optional;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #061018;
  --ink-2: #0b1a24;
  --panel: rgba(10, 24, 34, 0.72);
  --text: #eef7ff;
  --text-soft: #b7c9d8;
  --muted: #7f96aa;
  --line: rgba(160, 210, 240, 0.14);
  --cyan: #1ec8d6;
  --blue: #0a8fd4;
  --deep: #005a9c;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  --container: min(1280px, calc(100% - 2rem));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(30, 200, 214, 0.18), transparent 55%),
    radial-gradient(820px 480px at 92% 0%, rgba(10, 143, 212, 0.16), transparent 58%),
    linear-gradient(180deg, #061018 0%, #081621 42%, #0a1c28 100%);
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.container { width: var(--container); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; color: #000; padding: .5rem 1rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 16, 24, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  padding: .65rem 0;
}

.brand-logo {
  width: 142px;
  height: 39px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(30, 200, 214, 0.55))
    drop-shadow(0 0 16px rgba(10, 143, 212, 0.45))
    drop-shadow(0 4px 18px rgba(30, 200, 214, 0.35));
  transition: filter .25s ease, transform .25s ease;
}
.brand:hover .brand-logo {
  filter:
    drop-shadow(0 0 8px rgba(34, 211, 238, 0.75))
    drop-shadow(0 0 22px rgba(10, 143, 212, 0.55))
    drop-shadow(0 6px 22px rgba(30, 200, 214, 0.4));
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
}

.main-nav-link {
  position: relative;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav-link:hover,
.main-nav-link.is-active {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
}

.main-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(240px, 28vw);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .15rem .2rem .15rem .85rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  padding: .45rem 0;
}

.header-search input::placeholder { color: var(--muted); }

.header-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header-ghost {
  color: var(--text-soft);
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.header-ghost:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2de0ef 0%, #0a8fd4 48%, #005a9c 100%);
  color: #041018;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(10, 143, 212, 0.35);
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { color: #041018; filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(34, 211, 238, 0.35); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ── Home hero ── */
.home-hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.35) 0%, rgba(6, 16, 24, 0.55) 38%, rgba(6, 16, 24, 0.94) 100%),
    radial-gradient(700px 320px at 18% 20%, rgba(30, 200, 214, 0.28), transparent 60%);
}
.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 210, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 210, 240, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 75%);
  opacity: .55;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
}

.home-hero-logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 1rem;
  content-visibility: auto;
  filter:
    drop-shadow(0 0 10px rgba(30, 200, 214, 0.65))
    drop-shadow(0 0 28px rgba(10, 143, 212, 0.45))
    drop-shadow(0 0 48px rgba(0, 90, 156, 0.35))
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}

.home-hero-lead {
  max-width: 34rem;
  margin: 0 0 1.4rem;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-soft);
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ── Portals ── */
.home-portals { padding: 1.25rem 0 2.5rem; }
.home-portals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal {
  position: relative;
  display: grid;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.portal:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  color: inherit;
}

.portal-media {
  position: absolute;
  inset: 0;
}
.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.portal:hover .portal-media img { transform: scale(1.06); }

.portal-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.15) 0%, rgba(6, 16, 24, 0.82) 70%, rgba(6, 16, 24, 0.95) 100%);
}
.portal-pics .portal-wash {
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.1), rgba(6, 16, 24, 0.78) 65%, rgba(6, 16, 24, 0.95)),
    radial-gradient(420px 220px at 20% 20%, rgba(30, 200, 214, 0.35), transparent 70%);
}
.portal-gifs .portal-wash {
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.1), rgba(6, 16, 24, 0.78) 65%, rgba(6, 16, 24, 0.95)),
    radial-gradient(420px 220px at 20% 20%, rgba(56, 189, 248, 0.35), transparent 70%);
}
.portal-arts .portal-wash {
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.1), rgba(6, 16, 24, 0.78) 65%, rgba(6, 16, 24, 0.95)),
    radial-gradient(420px 220px at 20% 20%, rgba(232, 156, 98, 0.38), transparent 70%);
}
.portal-videos .portal-wash {
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.1), rgba(6, 16, 24, 0.78) 65%, rgba(6, 16, 24, 0.95)),
    radial-gradient(420px 220px at 20% 20%, rgba(0, 90, 156, 0.45), transparent 70%);
}

.portal-body {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: .4rem;
  padding: 1.35rem 1.3rem 1.4rem;
}
.portal-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.portal-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.portal-lead {
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.45;
  max-width: 26ch;
}
.portal-go {
  margin-top: .35rem;
  font-weight: 800;
  color: #fff;
}

/* ── Sections / feed ── */
.section { padding: 2.4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2,
.fresh-block-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}
.eyebrow {
  margin: 0 0 .35rem;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.text-link {
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}
.text-link:hover { color: #fff; }

.masonry-feed {
  columns: 4 210px;
  column-gap: 14px;
}
.masonry-feed .card-wall {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform .22s ease, border-color .22s ease;
}
.masonry-feed .card-wall:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
}
.masonry-feed .card-wall-link { display: block; position: relative; color: inherit; }
.masonry-feed .card-wall img,
.masonry-feed .thumb-fallback {
  width: 100%;
  border-radius: 0;
}
.masonry-feed .card-wall-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .85rem .75rem;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 18, 0.9));
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}

.home-empty { padding-top: 1rem; }
.empty-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .75rem;
  padding: 3rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(30, 200, 214, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.empty-panel h2 { margin: 0; font-family: var(--display); }
.empty-panel p { margin: 0 0 .5rem; color: var(--text-soft); max-width: 34rem; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tag-chip:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  color: #fff;
  transform: translateY(-1px);
}
.tag-chip em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 800;
}

/* ── Footer ── */
.site-footer {
  margin-top: 2rem;
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.footer-inner { display: grid; gap: 1.1rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(30, 200, 214, 0.2));
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.15rem;
}
.footer-links a { color: var(--text-soft); font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; color: var(--muted); font-size: .9rem; }

/* ── Shared overrides over app.css ── */
.site-header .header-nav,
.section-nav,
.mega-nav { display: none !important; }

.flash {
  margin: .85rem auto 0;
  border-radius: 12px;
}
.flash-ok { background: rgba(34, 197, 94, 0.15); color: #bbf7d0; border: 1px solid rgba(34, 197, 94, 0.25); }
.flash-err { background: rgba(251, 113, 133, 0.12); color: #fecdd3; border: 1px solid rgba(251, 113, 133, 0.25); }

.modal-dialog {
  background: #0b1a24;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.modal-close { color: var(--text); }

.breadcrumbs,
.crumbs {
  color: var(--muted);
}
.breadcrumbs a { color: var(--text-soft); }

.card-wall,
.grid-card,
.panel,
.stack-form.panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.page-head h1,
.legal-page h1,
.legal-page h2 {
  font-family: var(--display);
  letter-spacing: -0.03em;
}
.prose { color: var(--text-soft); line-height: 1.65; }
.prose a { color: var(--accent); }

/* Auth / forms (needed when app.css is not loaded) */
.narrow { width: min(480px, calc(100% - 2rem)); }
.section { padding: 3rem 0; }
.auth-box {
  padding: 1.5rem;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-box h1 { margin: 0 0 1rem; font-family: var(--display); letter-spacing: -0.03em; }
.stack-form { display: grid; gap: .9rem; }
.stack-form label { display: grid; gap: .35rem; font-weight: 500; color: var(--text-soft); }
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 16, 24, 0.75);
  color: var(--text);
  font: inherit;
}
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    gap: .55rem .75rem;
  }
  .brand { grid-area: brand; }
  .main-nav { grid-area: nav; justify-content: flex-start; overflow-x: auto; }
  .header-tools { grid-area: tools; }
  .home-portals-grid { grid-template-columns: 1fr; }
  .portal { min-height: 220px; }
  .masonry-feed { columns: 2 160px; }
}

@media (max-width: 640px) {
  .header-search { width: 42px; padding: .15rem; }
  .header-search input { display: none; }
  .header-search:focus-within { width: min(70vw, 220px); padding-left: .85rem; }
  .header-search:focus-within input { display: block; }
  .home-hero { min-height: 68vh; }
  .home-hero-inner { padding: 3.2rem 0 2.4rem; }
  .masonry-feed { columns: 2 140px; column-gap: 10px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}


.card-rating{position:absolute;right:.55rem;top:.55rem;left:auto;z-index:5;display:inline-flex;flex-direction:row;align-items:center;gap:1px;padding:5px 7px;border-radius:999px;background:rgba(6,16,24,.6);backdrop-filter:blur(4px);font-size:.78rem;line-height:1;color:rgba(255,255,255,.35);pointer-events:auto}.card-rating .star-btn{border:0;background:transparent;color:rgba(255,255,255,.35);font-size:inherit;cursor:pointer;line-height:1;padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;height:1em;transition:color .12s ease,transform .12s ease;pointer-events:auto}.card-rating .star-btn.is-on,.card-rating .star-btn.is-hover{color:#f5c542}.card-rating .star-btn.is-hover{transform:scale(1.08)}
.vote-toast{position:fixed;left:50%;top:18%;z-index:14000;display:inline-flex;align-items:center;gap:.65rem;padding:.85rem 1.25rem .85rem 1rem;border-radius:999px;border:1px solid rgba(245,197,66,.35);background:linear-gradient(135deg,rgba(18,24,34,.92),rgba(10,14,22,.94));color:#f7f3e8;box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.04) inset,0 0 28px rgba(245,197,66,.12);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:.98rem;font-weight:650;letter-spacing:.01em;pointer-events:none;opacity:0;transform:translate(-50%,-8px) scale(.96);transition:opacity .22s ease,transform .22s ease}
.vote-toast.is-in{opacity:1;transform:translate(-50%,0) scale(1)}
.vote-toast.is-out{opacity:0;transform:translate(-50%,-6px) scale(.98)}
.vote-toast-star{display:inline-grid;place-items:center;width:1.85rem;height:1.85rem;border-radius:50%;color:#1a1408;background:linear-gradient(145deg,#ffe08a,#f5c542 55%,#e0a21a);box-shadow:0 4px 14px rgba(245,197,66,.35);font-size:1rem;line-height:1}
.vote-toast-text{white-space:nowrap}
