/* ==========================================================================
   TheNexAeon — page-specific layouts
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-accent);
  padding: clamp(28px, 5vw, 64px); margin-bottom: 26px; isolation: isolate;
  background:
    radial-gradient(70% 90% at 85% 40%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(201, 170, 107, 0.08), transparent 60%),
    linear-gradient(180deg, #110d1d, #08070d);
}
.hero-art { position: absolute; z-index: -1; right: -6%; top: 50%; width: min(620px, 70%); aspect-ratio: 1; transform: translateY(-50%); color: var(--accent-2); opacity: .9; }
.hero-art .spin { transform-origin: 50% 50%; animation: spin 140s linear infinite; }
.hero-art .spin-rev { transform-origin: 50% 50%; animation: spin 220s linear infinite reverse; }
.hero-art .breathe { transform-origin: 50% 50%; animation: breathe 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hero-copy { max-width: 620px; position: relative; }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; margin: 14px 0 18px; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 520px; }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--accent-3); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .pillars { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.hero .pillars span::before { content: "◇ "; color: var(--accent-2); }
@media (max-width: 700px) {
  .hero { padding: 30px 22px 34px; }
  .hero-art { right: -40%; top: 8%; width: 110%; transform: none; opacity: .4; }
}
.hero.compact { padding: 26px 28px; }
.hero.compact h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 6px 0 8px; }

/* Realm strip ------------------------------------------------------------ */
.realm-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.realm-strip .realm-card { min-height: 160px; padding: 16px; }
.realm-strip .realm-card h3 { font-size: 1.25rem; }
.realm-strip .realm-card .sigil { width: 34px; height: 34px; }
@media (max-width: 1100px) { .realm-strip { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .realm-strip > * { scroll-snap-align: start; } }

/* Ecosystem -------------------------------------------------------------- */
.eco { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.eco a { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.eco a:hover { border-color: var(--line-accent); transform: translateY(-2px); color: inherit; }
.eco .icon { width: 24px; height: 24px; color: var(--accent-2); margin-bottom: 12px; }
.eco h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }
.eco p { font-size: var(--fs-xs); color: var(--text-3); margin: 0; }
@media (max-width: 1000px) { .eco { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Realm landing ---------------------------------------------------------- */
.realm-hero { --realm: var(--accent); position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); margin-bottom: 24px; border: 1px solid color-mix(in oklab, var(--realm) 30%, transparent);
  background: radial-gradient(70% 120% at 90% 10%, color-mix(in oklab, var(--realm) 30%, transparent), transparent 60%), linear-gradient(180deg, #110e19, #08070c); }
.realm-hero .sigil-lg { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: min(260px, 40%); color: var(--realm); opacity: .35; filter: drop-shadow(0 0 30px var(--realm)); }
.realm-hero h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 500; margin: 8px 0 10px; }
.realm-hero p { max-width: 560px; color: var(--text-2); }
@media (max-width: 700px) { .realm-hero .sigil-lg { opacity: .18; width: 60%; right: -10%; } }

/* Profile ---------------------------------------------------------------- */
.profile-cover { height: clamp(150px, 24vw, 250px); border-radius: var(--r-xl) var(--r-xl) 0 0; border: 1px solid var(--line); border-bottom: 0; }
.profile-card { border-radius: 0 0 var(--r-xl) var(--r-xl); border-top: 0; padding: 0 24px 22px; margin-bottom: 20px; }
.profile-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: -48px; }
.profile-top .avatar { box-shadow: 0 0 0 5px var(--surface), 0 0 40px var(--p-accent, var(--glow)); }
.profile-top .actions { margin-left: auto; display: flex; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; }
.profile-name { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1.1; margin-top: 12px; }
.profile-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-sm); color: var(--text-3); }
.profile-stats b { color: var(--text); font-weight: 600; margin-right: 4px; }
.profile-themed { --accent: var(--p-accent); --accent-2: var(--p-accent-2); --accent-3: var(--p-accent-3); --accent-soft: color-mix(in oklab, var(--p-accent) 16%, transparent); --line-accent: color-mix(in oklab, var(--p-accent) 32%, transparent); --glow: color-mix(in oklab, var(--p-accent) 40%, transparent); }
.theme-swatch { width: 100%; aspect-ratio: 1.6; border-radius: var(--r-md); border: 2px solid transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 8px; font-size: 11px; font-weight: 600; color: #fff; }
.theme-swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }

/* Conclave --------------------------------------------------------------- */
.versus { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 14px; }
.versus .side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.versus .side.r { flex-direction: row-reverse; text-align: right; }
.versus .vs { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--gold); padding: 0 6px; }
.motion { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.2; }
.motion::before { content: "“"; color: var(--accent-2); }
.motion::after { content: "”"; color: var(--accent-2); }
.stage { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-accent); background: radial-gradient(60% 100% at 50% 0%, rgba(139,92,246,.2), transparent 65%), linear-gradient(180deg, #120e1e, #08070c); }
.stage .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.stage .seat { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(0,0,0,.25); padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stage .seat.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px var(--glow); }
@media (max-width: 600px) { .stage .duo { grid-template-columns: 1fr 1fr; gap: 8px; } .stage .seat { padding: 12px 8px; } .versus .vs { font-size: 1.2rem; } }
.turn-card { border-left: 2px solid var(--line-2); padding: 0 0 0 18px; position: relative; }
.turn-card::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--side-c, var(--accent)); }
.turn-card.for { --side-c: var(--accent-2); }
.turn-card.against { --side-c: var(--gold); }
.turn-card .round { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--side-c); }
.sources { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.sources li { margin: 2px 0; overflow-wrap: anywhere; }
.vote-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.vote-bar span { display: block; height: 100%; transition: width .5s var(--ease); }
.vote-bar .f { background: var(--accent-2); }
.vote-bar .u { background: #4a4560; }
.vote-bar .a { background: var(--gold); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* Market ----------------------------------------------------------------- */
.product-card { display: flex; flex-direction: column; gap: 10px; }
.product-card .title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.product-card .price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--text); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; font-size: var(--fs-sm); }
.filters { display: flex; flex-direction: column; gap: 18px; }
.market-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .market-layout { grid-template-columns: 1fr; } .market-layout .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* Press ------------------------------------------------------------------ */
.article-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-row:last-child { border-bottom: 0; }
.article-row h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin: 6px 0; }
.article-row:hover h3 { color: var(--accent-3); }
.article-row .thumb { aspect-ratio: 4/3; }
@media (max-width: 560px) { .article-row { grid-template-columns: minmax(0,1fr) 96px; gap: 12px; } .article-row h3 { font-size: 1.2rem; } }
.article-head h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0; }
.article-head .dek { font-size: 1.2rem; color: var(--text-2); font-family: var(--font-display); font-style: italic; }
.pub-masthead { text-align: center; padding: 40px 20px 30px; }
.pub-masthead h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 500; }

/* Community -------------------------------------------------------------- */
.community-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.channel-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-sm); color: var(--text-3); font-size: var(--fs-sm); text-align: left; }
.channel-list button:hover { background: var(--surface-2); color: var(--text); }
.channel-list button[aria-current="true"] { background: var(--accent-soft); color: var(--text); }
.channel-list .hash { font-family: var(--font-mono); opacity: .6; }
@media (max-width: 860px) { .community-layout { grid-template-columns: 1fr; } .channel-list { display: flex; overflow-x: auto; gap: 4px; } .channel-list button { width: auto; flex-shrink: 0; } }

/* Events ----------------------------------------------------------------- */
.event-date { width: 58px; flex-shrink: 0; text-align: center; border-radius: var(--r-md); border: 1px solid var(--line-accent); background: var(--accent-soft); padding: 7px 0; }
.event-date .m { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-3); }
.event-date .d { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; }

/* Founding --------------------------------------------------------------- */
.founding-hero { text-align: center; padding: clamp(40px, 7vw, 90px) 20px; position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid rgba(201,170,107,.3);
  background: radial-gradient(60% 80% at 50% 0%, rgba(201,170,107,.18), transparent 60%), radial-gradient(60% 80% at 50% 100%, rgba(139,92,246,.22), transparent 60%), #09080d; }
.founding-hero .numeral { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 11rem); font-weight: 500; line-height: .9; background: linear-gradient(180deg, #f4e3bd, #b48c47 70%, #6b5228); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founding-hero h1 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 14px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .icon { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }

/* Admin ------------------------------------------------------------------ */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.admin-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-md); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-align: left; }
.admin-nav button:hover { background: var(--surface); color: var(--text); }
.admin-nav button[aria-current="true"] { background: var(--accent-soft); color: var(--text); }
.admin-nav .count { margin-left: auto; font-size: 11px; background: var(--danger-soft); color: var(--danger); border-radius: 99px; padding: 0 7px; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; overflow-x: auto; } .admin-nav button { flex-shrink: 0; } }

/* Auth ------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - var(--topbar-h) - 120px); display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 500; text-align: center; margin-bottom: 4px; }
.auth-mark { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent-2); filter: drop-shadow(0 0 18px var(--glow)); }

/* Video ------------------------------------------------------------------ */
.video-player { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; position: relative; display: grid; place-items: center; border: 1px solid var(--line-2); }
.video-player .center { position: relative; z-index: 1; text-align: center; padding: 20px; max-width: 460px; }
.video-player .play { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }

/* Search ----------------------------------------------------------------- */
.search-hero { position: relative; margin-bottom: 18px; }
.search-hero .input { height: 54px; padding-left: 48px; font-size: 1.05rem; border-radius: var(--r-pill); }
.search-hero .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 20px; height: 20px; }
mark { background: rgba(167,139,250,.28); color: inherit; border-radius: 3px; padding: 0 2px; }
.lead-article { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 700px) { .lead-article { grid-template-columns: 1fr; } .lead-article .cover { min-height: 150px !important; } }
