/* body stylings */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: linear-gradient(to bottom, #0a0a0c 0%, #1a1a1f 100%);
  color: #f0f0f0;
}

/* noise texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* login / hero header */
.login-hero-header {
  width: 100%;
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 0rem;
  z-index: 2;
}

.login-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

/* brand title */
.brand-title {
  font-family: 'Montserrat', arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #f5f7fb;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  text-shadow: none;
  animation: none;
  text-transform: none;
  text-align: center;
}

/* tagline */
.login-hero-center h2 {
  font-size: 1.1rem;
  color: #c3ccd8;
  margin: 0.25rem 0 1.25rem;
}

/* read-only fields */
input[readonly] {
  background: rgba(255,255,255,0.12);
  color: #e6edf3;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: default;
}

/* page-specific subtitle title, sibling to the site-header brand block
   (promoted from event.css/events.css, which had identical copies) */
.page-header {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6bb6ff;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* page-subtitle-block: a richer subtitle area (paragraph + status banners)
   used on new_play.php/pickem_play.php - previously this content lived
   inside a mis-scoped <header class="page-header"> wrapping BOTH the
   brand title and the subtitle, colliding with the .page-header class
   above. Same visual weight as .page-header, just on a <div> that can
   hold more than a single title line. */
.page-subtitle-block {
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6bb6ff;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem;
}

/* universal tagline */
.brand-tagline {
  font-family: 'Montserrat', arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #c3ccd8;
  margin: 0.25rem 0 1.25rem;
  text-align: center;
  font-style: italic;
  opacity: 0.95;
}

.login-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.login-page-layout {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0rem;
  position: relative;
}

/* universal footer */
.site-footer {
  background-color: #111;
  color: #aaa;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
  border-top: 0.1rem solid #333;
  width: 100%;
}

.site-footer a {
  color: #aaa;
  margin: 0 0.6rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer nav {
  display: inline-block;
}

/* page container */
.page-container {
  max-width: 70rem;
  margin: 0 auto;
}

/* pick grid */
.pick-grid {
  display: grid;
  grid-template-columns:
    1.2rem
    1rem
    12rem
    2rem
    1.2rem
    1rem
    12rem;
  align-items: center;
}

.pick-grid input[type="radio"] {
  margin: 0;
}

.pick-grid label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* gap splitter */
.gap-tny { margin-top: 0.25rem; }
.gap-sm  { margin-top: 0.5rem; }
.gap-sm-md  { margin-top: 0.6rem; }
.gap-md  { margin-top: .75rem; }
.gap-md-lg  { margin-top: 1rem; }
.gap-lg-sm  { margin-top: 1.25rem; }
.gap-lg-md  { margin-top: 1.5rem; }
.gap-lg-lg  { margin-top: 1.75rem; }
.gap-hg  { margin-top: 2rem; }
.gap-mg  { margin-top: 3rem; }

/* negative gaps */
.gap-tny-neg { margin-top: -0.25rem; }
.gap-sm-neg  { margin-top: -0.5rem; }
.gap-sm-md-neg  { margin-top: -0.6rem; }
.gap-md-neg  { margin-top: -0.75rem; }
.gap-md-lg-neg  { margin-top: -1rem; }
.gap-lg-sm-neg  { margin-top: -1.25rem; }
.gap-lg-md-neg  { margin-top: -1.5rem; }
.gap-lg-lg-neg  { margin-top: -1.75rem; }
.gap-hg-neg  { margin-top: -2rem; }
.gap-mg-neg  { margin-top: -3rem; }

/* horizontal gaps */
.gap-tny-h     { display: inline-block; margin-left: 0.25rem; }
.gap-sm-h      { display: inline-block; margin-left: 0.5rem; }
.gap-sm-md-h   { display: inline-block; margin-left: 0.6rem; }
.gap-md-h      { display: inline-block; margin-left: 0.75rem; }
.gap-md-lg-h   { display: inline-block; margin-left: 1rem; }
.gap-hg-h      { display: inline-block; margin-left: 2rem; }
.gap-mg-h      { display: inline-block; margin-left: 3rem; }

/* negative horizontal gaps */
.gap-tny-h-neg   { display: inline-block; margin-left: -0.25rem; }
.gap-sm-h-neg    { display: inline-block; margin-left: -0.5rem; }
.gap-sm-md-h-neg { display: inline-block; margin-left: -0.6rem; }
.gap-md-h-neg    { display: inline-block; margin-left: -0.75rem; }
.gap-md-lg-h-neg { display: inline-block; margin-left: -1rem; }
.gap-hg-h-neg    { display: inline-block; margin-left: -2rem; }
.gap-mg-h-neg    { display: inline-block; margin-left: -3rem; }

/* global scrollbar styling */
/* firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) rgba(255,255,255,0.08);
}

/* chrome / edge / safari */
*::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

*::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 0.25rem;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 0.25rem;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}

/* global nav */
.global-nav {
  text-align: center;
  margin-bottom: 2rem;
}

.global-nav-inner {
  display: inline-flex;
  gap: 1.2rem;
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #e6edf3;
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
  letter-spacing: 0.01rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #dce3ea;
  margin: 0.5rem 0 0.5rem 0;
  line-height: 1.3;
  letter-spacing: 0.005rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #c9d2db;
  margin: 0.4rem 0 0.4rem 0;
  line-height: 1.35;
  letter-spacing: 0.003rem;
}

/* "your pick" panel — the viewer's own leg + provisional live status */
.pick-panel {
    max-width: 30rem;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.85rem 1.1rem;
    text-align: center;
}

.pick-header {
    text-transform: lowercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted, #9a9a9a);
    margin-bottom: 0.4rem;
}

.pick-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pick-what {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.pick-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    padding: 0.15rem 0.6rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.pick-status--good    { background: #2e7d32; color: #ffffff; }
.pick-status--bad     { background: #b23b3b; color: #ffffff; }
.pick-status--even    { background: #6b6b6b; color: #ffffff; }
.pick-status--pending { background: transparent; color: var(--text-muted, #9a9a9a); border: 0.0625rem solid rgba(255, 255, 255, 0.25); }

.pick-note {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    color: var(--text-muted, #9a9a9a);
}

/* uniform vertical spacing between the stacked "forms" on the details pages
   (team box, your-pick, live boxes, note, button row). adjust --form-gap to taste. */
.mlb-details-page,
.nfl-details-page {
    --form-gap: 2rem;
}

.mlb-details-page > .login-hero-center > *,
.nfl-details-page > .login-hero-center > * {
    margin-top: 0;
    margin-bottom: var(--form-gap);
}

.mlb-details-page > .login-hero-center > *:last-child,
.nfl-details-page > .login-hero-center > *:last-child {
    margin-bottom: 0;
}

/* Interior pages (those wrapped in .site-header) don't need the full hero
   top gap the login/landing page uses. Trim it here; the global .brand-title
   keeps its airy 3.5rem on the login hero, which does not use .site-header. */
.site-header .brand-title {
    margin-top: 2rem;
}
