/* Shared Arena Brasil design system: Home and all server-rendered pages. */
:root {
  color-scheme: dark;
  --bg-primary: #030912;
  --bg-secondary: #071221;
  --bg-elevated: #0b1624;
  --text-primary: #f3f6fa;
  --text-secondary: #a9b4c2;
  --text-muted: #8a99ac;
  --accent-green: #00e676;
  --accent-blue: #1597ff;
  --accent-yellow: #ffd21f;
  --accent-danger: #ff8585;
  --border-subtle: rgba(255,255,255,.10);
  --border-hover: rgba(0,230,118,.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 12px 32px rgba(0,0,0,.18);
  --shadow-menu: 0 20px 40px rgba(0,0,0,.45);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --content-width: 1560px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --header-height: 72px;
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --night: var(--bg-primary);
  --blue: var(--accent-blue);
  --green: var(--accent-green);
  --yellow: var(--accent-yellow);
  --line: var(--border-subtle);
  --panel: var(--bg-secondary);
  --panel-solid: var(--bg-elevated);
  --shadow: var(--shadow-card);
}
html { scroll-snap-type: none; scroll-padding-top: calc(var(--header-height) + 24px); }
.arena-site, .arena-site main { scroll-snap-type: none; }
.arena-site { background: var(--bg-primary); color: var(--text-primary); }
.arena-site [hidden] { display: none !important; }
.arena-site :focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.arena-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arena-site .skip-link { position: fixed; z-index: 110; left: 20px; top: -80px; padding: 12px 20px; border-radius: var(--radius-sm); background: var(--green); color: var(--bg-primary); font-weight: 700; }
.arena-site .skip-link:focus { top: 10px; }
.site-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.arena-site .site-header { position: sticky; z-index: 50; top: 0; min-height: var(--header-height); height: var(--header-height); padding: 0 clamp(20px,3vw,76px); gap: clamp(20px,3vw,64px); flex-direction: row; align-items: center; background: rgba(3,9,18,.97); border-bottom: 1px solid rgba(0,230,118,.24); }
.arena-site .brand { flex: 0 0 auto; }
.arena-site .brand-logo { width: 115px; height: 62px; object-fit: contain; }
.arena-site .main-nav { flex: 1; min-width: 0; justify-content: flex-end; gap: clamp(16px,2vw,36px); font-size: .78rem; padding: 0; overflow: visible; }
.site-nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px,1.7vw,32px); margin-right: auto; height: var(--header-height); }
.arena-site .site-nav-links a { position: relative; display: flex; align-items: center; height: 100%; white-space: nowrap; }
.arena-site .site-nav-links a::after, .site-account-actions > a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 180ms ease; }
.arena-site .site-nav-links a:hover::after, .arena-site .site-nav-links a.is-current::after, .site-account-actions > a.is-current::after { transform: scaleX(1); }
.arena-site .site-nav-links a.is-current { color: var(--green); }
.arena-site .site-nav-start { min-width: 38px; justify-content: center; }
.arena-site .site-nav-start svg { width: 19px; height: 19px; }
.arena-site .top-search-form { position: relative; flex: 0 1 190px; min-width: 130px; }
.arena-site .top-search-form svg { position: absolute; top: 13px; left: 12px; width: 16px; height: 16px; color: var(--muted); }
.arena-site .top-search-form input { width: 100%; min-height: 42px; padding: 0 12px 0 36px; font-size: .75rem; border-color: #30404e; background: rgba(255,255,255,.025); border-radius: var(--radius-sm); }
.site-account-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.arena-site .site-account-actions > a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--radius-sm); padding: 0 16px; white-space: nowrap; }
.arena-site .site-account-actions .site-login { border: 1px solid #596673; color: var(--green); }
.arena-site .site-account-actions .site-register { background: var(--green); color: #02180d; }
.arena-site .site-register svg { width: 18px; height: 18px; }
.arena-site .site-account-actions .site-profile { border: 1px solid rgba(255,210,31,.3); color: var(--yellow); }
.arena-site .nav-link-button { min-height: 44px; padding: 0 8px; color: var(--accent-danger); }
.arena-site .site-nav-links a[href="/community"] { color: var(--yellow); }
.arena-site .site-menu-toggle { display: none; }
.arena-site .site-footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; padding: 20px max(var(--page-gutter),calc((100% - var(--content-width)) / 2)); border-top: 1px solid var(--line); background: #02070e; font-size: .75rem; }
.arena-site .site-footer p { color: var(--text-secondary); margin: 0; }
.arena-site .site-footer p small { display: block; margin-top: 4px; color: var(--text-muted); }
.arena-site .site-footer > a:last-child { color: var(--green); white-space: nowrap; padding: 12px 0; }
.footer-brand img { object-fit: contain; }
.footer-social { display: flex; gap: 6px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); }
.footer-social a:hover { background: var(--bg-elevated); }
.footer-social img { width: 20px; height: 20px; }

/* Controls are shared, while page composition stays in home.css / app.css. */
.arena-site .button { min-height: 46px; padding: 11px 20px; gap: 10px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .76rem; font-weight: 800; line-height: 1.35; letter-spacing: .015em; text-align: center; white-space: normal; transition: background 180ms, border-color 180ms, box-shadow 180ms; }
.arena-site .button:hover { transform: none; }
.arena-site .button.primary { color: #02180d; background: var(--green); box-shadow: 0 4px 20px rgba(0,230,118,.1); }
.arena-site .button.primary:hover { background: #35f596; }
.arena-site .button.secondary { color: var(--ink); background: var(--bg-elevated); border-color: #344253; box-shadow: none; }
.arena-site .button.secondary:hover { background: #132338; border-color: var(--accent-blue); }
.arena-site .button.blue { color: #d7edff; background: #0a2a45; border-color: rgba(21,151,255,.45); }
.arena-site .button.ghost { color: var(--text-secondary); background: transparent; border-color: transparent; }
.arena-site .button.danger { color: #ffb6b6; background: #29171e; border-color: rgba(255,133,133,.35); box-shadow: none; }
.arena-site .button.danger:hover { background: #402029; border-color: var(--accent-danger); }
.arena-site button:disabled, .arena-site .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.arena-site input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .arena-site select, .arena-site textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #334052; border-radius: var(--radius-sm); padding: 11px 13px; color: var(--ink); background: var(--bg-primary); font: inherit; font-size: .9rem; line-height: 1.5; }
.arena-site textarea { resize: vertical; }
.arena-site :is(input,textarea)::placeholder { color: var(--text-muted); opacity: 1; }
.arena-site :is(input,select,textarea):focus { border-color: var(--green); outline: 2px solid rgba(0,230,118,.24); outline-offset: 2px; }
.arena-site :is(input,select,textarea)[aria-invalid="true"] { border-color: var(--accent-danger); }
.arena-site :is(input,select,textarea):user-invalid { border-color: var(--accent-danger); }
.arena-site input:is([type="checkbox"],[type="radio"]) { accent-color: var(--green); width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; }
.arena-site input::file-selector-button { border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; margin-right: 12px; background: var(--bg-elevated); color: var(--ink); font: inherit; }
.arena-site .top-search-form input { padding-left: 36px; font-size: .75rem; }
.arena-site :is(.status-pill,.mini-badge,.admin-pill) { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; height: auto; min-height: 25px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.04); color: var(--text-secondary); font-size: .65rem; font-weight: 800; line-height: 1.3; white-space: normal; }
.arena-site .status-approved { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.26); color: #79ecb3; }
.arena-site .status-pending { background: rgba(255,210,31,.07); border-color: rgba(255,210,31,.25); color: #ffe28a; }
.arena-site .status-rejected { background: rgba(255,133,133,.08); border-color: rgba(255,133,133,.28); color: #ffb6b6; }
.arena-site .status-admin { background: rgba(21,151,255,.08); border-color: rgba(21,151,255,.3); color: #89caff; }
.arena-site .flash-message { font-weight: 500; font-size: .9rem; line-height: 1.6; border-radius: var(--radius-sm); }
.arena-site [aria-busy="true"] { opacity: .72; }
.arena-site .loading-status { min-height: 24px; }
.arena-site .loading-status[aria-busy="true"]::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; vertical-align: -2px; animation: arena-spin .7s linear infinite; }
@keyframes arena-spin { to { transform: rotate(360deg); } }
@media (max-width: 1350px) {
  .arena-site .site-header { padding-inline: 24px; gap: 20px; }
  .arena-site .site-nav-links { gap: 16px; }
  .arena-site .main-nav { gap: 16px; }
  .arena-site .brand-logo { width: 90px; }
  .arena-site .top-search-form { flex-basis: 145px; }
  .arena-site .site-account-actions > a { padding-inline: 12px; }
}
@media (max-width: 1180px) {
  .arena-site.has-site-menu .site-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; border: 1px solid #30404e; border-radius: var(--radius-sm); background: var(--bg-elevated); padding: 11px; }
  .site-menu-toggle span { display: block; height: 2px; width: 20px; background: var(--ink); transition: transform 180ms; }
  .site-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .arena-site .main-nav { display: grid; position: absolute; top: var(--header-height); left: 0; width: 100%; padding: 24px; max-height: calc(100svh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-secondary); border-bottom: 1px solid #274136; box-shadow: var(--shadow-menu); }
  .arena-site.has-site-menu .main-nav:not(.is-open) { display: none; }
  .arena-site .main-nav.is-open { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
  .arena-site .site-nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; height: auto; margin: 0; }
  .arena-site .site-nav-links a { padding: 12px 8px; min-height: 44px; }
  .arena-site .site-nav-start { justify-content: flex-start; }
  .arena-site .top-search-form { width: 100%; }
  .arena-site .site-account-actions { flex-wrap: wrap; }
  .arena-site:not(.has-site-menu) .site-header { position: relative; height: auto; flex-wrap: wrap; }
  .arena-site:not(.has-site-menu) .main-nav { position: static; flex-basis: 100%; max-height: none; box-shadow: none; }
}
@media (max-width: 760px) {
  .arena-site .site-footer { grid-template-columns: auto 1fr; gap: 12px 20px; }
  .arena-site .footer-brand { grid-row: 1 / 3; }
  .arena-site .footer-social { grid-column: 2; }
  .arena-site .site-footer > a:last-child { grid-column: 2; padding-top: 0; }
}
@media (max-width: 440px) {
  :root { --header-height: 66px; }
  .arena-site .site-header { padding-inline: 20px; }
  .arena-site .brand-logo { width: 95px; height: 55px; }
  .arena-site .site-footer { font-size: .7rem; }
  .arena-site .footer-brand img { width: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arena-site *, .arena-site *::before, .arena-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
