/* ===========================================================================
   Solana Summit Canada theme  (v2 — red)
   Loaded AFTER the mirrored stylesheets so it wins on cascade order.
   Palette:  bg #CF1F1F (red) + cream pattern + noise · accent/text-on-red
             #FEEAA4 (cream) · ink #262626 (text inside cream chips)
   Accent gradients/states are recolored to cream in the source CSS; this file
   flips the surface to red and provides the pattern + noise layers.
   =========================================================================== */

/* --- design tokens -------------------------------------------------------- */
:root {
  --background: 0 74% 47%;           /* #CF1F1F */
  --foreground: 47 96% 88%;          /* cream text on red */
  --card: 47 96% 88%;                /* cream cards */
  --card-foreground: 0 0% 15%;       /* ink on cream */
  --popover: 47 96% 88%;
  --popover-foreground: 0 0% 15%;
  --primary: 47 96% 88%;             /* cream accent */
  --primary-foreground: 0 0% 15%;    /* ink on cream button */
  --secondary: 47 96% 88%;
  --secondary-foreground: 0 0% 15%;
  --muted: 0 55% 40%;
  --muted-foreground: 46 85% 84%;    /* dim cream */
  --accent: 47 96% 88%;
  --accent-foreground: 0 0% 15%;
  --border: 46 85% 80%;
  --input: 46 85% 80%;
  --ring: 46 90% 85%;
}

/* --- fixed background: red + cream pattern + grain ------------------------ */
html { background-color: #CF1F1F; }
body { background: transparent; color: #FEEAA4; }

.ssc-bg { position: fixed; inset: 0; z-index: -1; background-color: #CF1F1F; pointer-events: none; }
.ssc-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("/images/bg-pattern.svg") repeat;
  background-size: 620px 620px;
  opacity: 0.30;
}
.ssc-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("/mirror/noise3.svg") repeat;
  background-size: 200px 200px;
  opacity: 0.45;
  mix-blend-mode: soft-light;
}

/* kill dark vignettes / dark side panels left over from the black theme */
.summit-hero-stage::after,
.summit-hero-stage::before,
.summit-pattern-section::after,
.summit-final-stage::after { background: none !important; }
.summit-hero-side-patterns,
.summit-side-pattern-left,
.summit-side-pattern-right { display: none !important; }

/* --- let the red surface show: drop opaque section backgrounds ------------ */
.summit-theme,
.summit-section,
.summit-hero-stage,
.summit-final-stage,
.summit-pattern-section,
.bg-black,
[class*="bg-[#050505]"],
[class*="bg-[#0a0a0a]"],
[class*="bg-[#0f0f0f]"],
[class*="bg-[#0F0F0F]"] { background: transparent !important; }

/* --- text: white/ink copy -> cream on red -------------------------------- */
[class*="text-white"] { color: #FEEAA4 !important; }
.summit-hero-copy h1 { color: #FEEAA4 !important; -webkit-text-fill-color: #FEEAA4 !important; }

/* --- borders & separators: cream ----------------------------------------- */
[class*="border-white"] { border-color: rgba(254, 234, 164, 0.22) !important; }
.summit-divider { background-color: rgba(254, 234, 164, 0.30) !important; }

/* --- outline CTA: cream ring, transparent interior, cream label ----------- */
.summit-outline-cta {
  background: transparent !important;
  border-color: rgba(254, 234, 164, 0.6) !important;
  box-shadow: 0 0 32px rgba(254, 234, 164, 0.14) !important;
}

/* --- solid cream pill (hero "Request to Join"): ink label ----------------- */
[class*="to-[#14f195]"],
[class*="to-[#14f195]"] * { color: #262626 !important; }

/* --- menu: links pinned to top (tall logo) ------------------------------- */
header .summit-container { align-items: flex-start !important; }
header nav,
header .summit-container > a:not([href="/"]) + * { margin-top: 0.5rem; }

/* --- hero: video band on top, dates/title/CTA below it ------------------- */
.summit-hero-stage { min-height: auto !important; }
/* crop a little off the TOP so the captions (bottom of frame) sit before the fold */
.ssc-hero-video {
  position: relative; z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  line-height: 0;
}
.ssc-hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
/* top tint for nav legibility + bottom fade into the red section below */
.ssc-hero-video-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(150,12,12,0.55) 0%,
    rgba(150,12,12,0) 22%,
    rgba(207,31,31,0) 89%,
    rgba(207,31,31,0.85) 96%,
    rgba(207,31,31,1) 100%);
}
.summit-hero-copy {
  position: relative; z-index: 10;
  min-height: auto !important;
  justify-content: flex-start !important;
  padding-top: 44px !important;
  padding-bottom: 110px !important;
}
/* dates graphic stays sensible on small screens */
.summit-hero-copy img { max-width: min(330px, 82vw) !important; height: auto !important; }

/* --- blurred "unknown yet" stat numbers ---------------------------------- */
.ssc-blur { filter: blur(9px); user-select: none; pointer-events: none; }

/* --- speakers: show the placeholder portrait clearly; blur the text ------- */
#speakers article .aspect-square img {
  filter: none !important;
  transform: none !important;
  grayscale: 0 !important;
}
#speakers article h3,
#speakers article p {
  filter: blur(6px) !important;
  user-select: none !important;
  pointer-events: none !important;
}

/* --- partners: show placeholder logos as-is (no grayscale / invert) -------- */
#partners a[aria-label^="Visit"] { opacity: 1 !important; filter: none !important; }
#partners img { filter: none !important; }

/* --- speakers: keep 3 cards a sensible centered size (arbitrary TW classes
       added in HTML aren't compiled, so constrain here) --------------------- */
#speakers div.grid { max-width: 860px; margin-left: auto; margin-right: auto; }

/* --- mobile: header sits above the video (not overlaid) ------------------- */
@media (max-width: 768px) {
  .summit-hero-stage { padding-top: 84px; }
  .summit-hero-stage header {
    background-color: rgba(207, 31, 31, 0.22);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(254, 234, 164, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  }
  .summit-hero-stage header .summit-container { align-items: center !important; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .summit-hero-stage header img { width: 104px !important; }
  .summit-hero-copy { padding-top: 28px !important; padding-bottom: 72px !important; }
}

/* --- footer "Powered by Superteam Canada" lockup -------------------------- */
img[alt="Powered by Superteam Canada"] { width: 190px !important; height: auto !important; opacity: 0.9; }
@media (min-width: 768px) { img[alt="Powered by Superteam Canada"] { width: 220px !important; } }

/* --- footer skyline (moved from the hero) --------------------------------- */
.ssc-footer-skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 0; pointer-events: none; line-height: 0;
}
.ssc-footer-skyline img {
  display: block; width: 25%; height: auto; margin: 0 auto; opacity: 0.4;
}
.summit-final-stage { padding-bottom: 220px !important; }
/* side-events footer needs positioning context + room for the skyline */
.ssc-se-footer { position: relative; overflow: hidden; padding-bottom: 150px; }

/* --- fixed decorative corner patterns ------------------------------------ */
.ssc-corner {
  position: fixed;
  z-index: 15;            /* above the hero video, below the nav (z-20) */
  pointer-events: none;
  width: min(34vw, 360px);
  aspect-ratio: 1001 / 885;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}
.ssc-corner-tr { top: 0; right: 0; background-image: url("/images/header-pattern.svg"); background-position: top right; }
.ssc-corner-bl { bottom: 0; left: 0; background-image: url("/images/footer-pattern.svg"); background-position: bottom left; }
@media (max-width: 768px) { .ssc-corner { width: min(46vw, 220px); opacity: 0.8; } }

/* ===== Side Events page ==================================================== */
.ssc-se-header { background-color: #CF1F1F; }
.ssc-se-intro { text-align: center; }
.ssc-se-eyebrow { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(254,234,164,0.82); }
.ssc-se-title { font-size: clamp(52px, 9vw, 112px); font-weight: 300; line-height: 0.98; letter-spacing: -0.02em; margin-top: 12px; color: #FEEAA4; }
.ssc-se-lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; line-height: 1.7; color: rgba(254,234,164,0.82); }
.ssc-se-host { margin-top: 34px; min-height: 54px; padding: 0 30px; font-size: 14px; }
.ssc-se-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 900px) { .ssc-se-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ssc-se-grid { grid-template-columns: 1fr; } }
.ssc-se-day { border: 1px solid rgba(254,234,164,0.28); border-radius: 18px; padding: 22px 20px; }
.ssc-se-daynum { font-size: 46px; font-weight: 300; line-height: 1; color: #FEEAA4; }
.ssc-se-dayname { margin-top: 6px; font-size: 18px; color: #FEEAA4; }
.ssc-se-month { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(254,234,164,0.6); }
.ssc-se-events { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.ssc-se-event { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(254,234,164,0.16); }
.ssc-se-time { font-size: 13px; color: rgba(254,234,164,0.72); }
.ssc-se-name { font-size: 16px; color: #FEEAA4; }
.ssc-se-by   { font-size: 13px; color: rgba(254,234,164,0.55); }
.ssc-se-note { margin-top: 28px; text-align: center; font-size: 13px; color: rgba(254,234,164,0.55); }
.ssc-ph { filter: blur(5px); user-select: none; pointer-events: none; }

/* --- floating "back to top" button --------------------------------------- */
.ssc-totop {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  width: 54px; height: 54px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: #FEEAA4; color: #262626; border: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s ease;
}
.ssc-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ssc-totop:hover { background: #fff2c8; }
@media (max-width: 768px) { .ssc-totop { bottom: 20px; right: 20px; width: 48px; height: 48px; } }

/* --- titles: clean, no shadow/extrude ------------------------------------ */
.summit-hero-copy h1 { filter: none !important; text-shadow: none !important; }
.summit-section-heading,
.summit-final-stage h2,
.ssc-se-footer h2 { text-shadow: none !important; }

/* --- typography: Archivo (matches solanasummit.ca) on titles / subtitles / numbers --- */
.summit-theme h1,
.summit-theme h2,
.summit-theme h3,
.summit-theme h4,
.summit-theme summary,
.summit-section-heading,
.summit-gradient-text,
.summit-theme [class*="uppercase"],
.summit-theme [class*="text-[42px]"] {
  font-family: "__Archivo_5afde0", "__Archivo_Fallback_5afde0", sans-serif !important;
}

/* --- heavier title weights (Archivo is variable 100–900) ----------------- */
.summit-theme h1,
.summit-theme h2,
.summit-section-heading,
.summit-final-stage h2,
.ssc-se-footer h2 {
  font-weight: 800 !important;
}
.summit-hero-copy h1 { font-weight: 900 !important; }
/* speaker names + FAQ questions: a strong bold */
#speakers article h3,
.summit-theme summary { font-weight: 700 !important; }

/* --- hero title in all caps ---------------------------------------------- */
.summit-hero-copy h1 { text-transform: uppercase; }

/* --- titles: cream -> grey gradient fill (like the Getting There labels) --- */
.summit-hero-copy h1,
.summit-section-heading,
.ssc-grad-title {
  /* solid grey titles — cleaner than the gradient */
  background: none !important;
  color: #262626 !important;
  -webkit-text-fill-color: #262626 !important;
}

/* --- mobile menu overlay (vanilla-JS toggle from the hamburger) ----------- */
.ssc-mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #CF1F1F;
  background-image: url("/images/bg-pattern.svg");
  background-size: 520px 520px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.ssc-mobile-menu.is-open { opacity: 1; visibility: visible; }
.ssc-mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ssc-mobile-menu a {
  color: #FEEAA4; text-decoration: none;
  font-size: 30px; line-height: 1; font-weight: 600;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.ssc-mobile-menu a.ssc-mm-cta {
  margin-top: 14px; border: 1px solid rgba(254, 234, 164, 0.6);
  border-radius: 9999px; padding: 14px 30px;
  font-size: 15px; letter-spacing: 0.14em;
}
.ssc-mm-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: none; border: none; color: #FEEAA4;
  font-size: 40px; line-height: 1; cursor: pointer;
}

/* --- header "Request to Join": solid cream fill (legible over corner pattern) --- */
header .summit-outline-cta {
  background: #FEEAA4 !important;
  border-color: #FEEAA4 !important;
  box-shadow: none !important;
  color: #262626 !important;
}
header .summit-outline-cta:hover { background: #fff2c8 !important; border-color: #fff2c8 !important; }
header .summit-outline-cta,
header .summit-outline-cta * { color: #262626 !important; }

/* --- corner patterns: shrink to 80% once the page is scrolled ------------- */
.ssc-corner { transition: transform 0.35s ease; }
.ssc-corner-tr { transform-origin: top right; }
.ssc-corner-bl { transform-origin: bottom left; }
body.ssc-scrolled .ssc-corner { transform: scale(0.8); }

/* --- sticky header: pins to top, condenses to a red glass bar on scroll --- */
.summit-hero-stage header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.summit-hero-stage header img { transition: width .3s ease; }
.summit-hero-stage header .summit-container { transition: padding .25s ease; }
body.ssc-scrolled .summit-hero-stage header {
  background-color: rgba(207, 31, 31, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(254, 234, 164, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
body.ssc-scrolled .summit-hero-stage header .summit-container {
  align-items: center !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}
body.ssc-scrolled .summit-hero-stage header img { width: 84px !important; }

/* --- floating header on secondary pages (no hero video) ------------------- */
/* These pages have a relative in-flow header; pin it as a slim frosted bar
   and reserve space so the page content isn't hidden behind it. */
.summit-theme:not(:has(.summit-hero-stage)) header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.summit-theme:not(:has(.summit-hero-stage)) header img { transition: width .3s ease; }
body.ssc-scrolled .summit-theme:not(:has(.summit-hero-stage)) header {
  background-color: rgba(207, 31, 31, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(254, 234, 164, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.summit-theme:not(:has(.summit-hero-stage)) header .summit-container {
  align-items: center !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}
.summit-theme:not(:has(.summit-hero-stage)) header img { width: 92px !important; }
.summit-theme:not(:has(.summit-hero-stage)) main { padding-top: 104px; }
@media (max-width: 768px) {
  .summit-theme:not(:has(.summit-hero-stage)) header {
    background-color: rgba(207, 31, 31, 0.22);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(254, 234, 164, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  }
  .summit-theme:not(:has(.summit-hero-stage)) header img { width: 80px !important; }
  .summit-theme:not(:has(.summit-hero-stage)) main { padding-top: 88px; }
}

/* --- dates graphic overlaid on the hero video (bottom-right) -------------- */
.ssc-hero-dates {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(32vw, 340px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}
@media (max-width: 768px) {
  .ssc-hero-dates { width: 52vw; right: 5%; bottom: 6%; }
}
