/* beta.css — Shared styles for the beta portal */

/* ── Gated sections: hidden by default, shown by beta.js ──── */
.beta-gated { display: none; }
.beta-public { display: block; }

/* ── User bar ─────────────────────────────────────────────── */
#beta-user-bar {
  display: none;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
  padding: .5rem 1.5rem;
  font-size: .85rem;
}
#beta-user-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.beta-user-info {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.beta-user-name {
  font-weight: 600;
  color: var(--navy);
}

.beta-tier-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.beta-tier-badge.tier-free { background: #e8f5e9; color: #2e7d32; }
.beta-tier-badge.tier-season_pass { background: #e3f2fd; color: #1565c0; }
.beta-tier-badge.tier-navigator { background: #fff3e0; color: #e65100; }
.beta-tier-badge.tier-tactician { background: #fce4ec; color: #b71c1c; }
.beta-tier-badge.tier-internal { background: #f3e5f5; color: #6a1b9a; }
.beta-tier-badge.tier-beta { background: #e0e0e0; color: #424242; }

.beta-signout-btn {
  padding: .3rem .75rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-dark);
}
.beta-signout-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Secondary beta nav (right side of user bar) ─────────── */
.beta-subnav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.beta-subnav a {
  color: var(--gray-dark);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.beta-subnav a:hover { color: var(--gold); text-decoration: none; }

@media (max-width: 640px) {
  #beta-user-bar { flex-wrap: wrap; gap: .5rem; }
  .beta-subnav { width: 100%; justify-content: flex-start; gap: 1rem; }
}

/* ── Sign-in card ─────────────────────────────────────────── */
.beta-signin-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.beta-signin-card p {
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.btn-google:hover { border-color: var(--navy); }
.btn-google svg { width: 20px; height: 20px; }

/* ── Not a tester message ─────────────────────────────────── */
.beta-not-tester {
  display: none;
  text-align: center;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 480px;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  color: #5d4037;
  font-size: .9rem;
}

/* ── Portal nav cards ─────────────────────────────────────── */
.portal-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.portal-nav-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: var(--navy);
}
.portal-nav-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: var(--gold);
  text-decoration: none;
}
.portal-nav-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.portal-nav-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.portal-nav-card p {
  font-size: .85rem;
  color: var(--gray);
  margin: 0;
}

/* ── Beta hero ────────────────────────────────────────────── */
.beta-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
}
.beta-hero h1 {
  margin: 0 0 .5rem;
  font-size: 2rem;
}
.beta-hero .version {
  color: #64b5f6;
  font-family: monospace;
  font-size: 1rem;
}
.beta-hero .subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-top: .5rem;
}

/* ── Page content area ────────────────────────────────────── */
.beta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.beta-breadcrumb {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.beta-breadcrumb a { color: var(--blue); }

/* ── Update cards (changelog) ─────────────────────────────── */
.update {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}
.update:last-child { border-bottom: none; }
.update-date {
  font-size: .875rem;
  color: #666;
  margin-bottom: .25rem;
}
.update-version {
  font-family: monospace;
  background: #e8f5e9;
  color: #2e7d32;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .875rem;
  margin-left: .5rem;
}
.update h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.update h4 {
  margin: 1.5rem 0 .75rem;
  font-size: 1.1rem;
  color: #333;
}
.update ul { padding-left: 1.5rem; }
.update li { margin-bottom: .5rem; }

.test-focus {
  background: #fff8e1;
  border: 1px solid #ffc107;
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  color: #1a1a1a;
}
.test-focus strong { color: #e65100; font-weight: 700; }

/* ── Pointers / info boxes ────────────────────────────────── */
.pointers {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}
.pointers h2 { margin-top: 0; color: #0d47a1; font-size: 1.25rem; }
.pointers li { color: #1a1a1a; }
.pointers ul { margin: 0; padding-left: 1.5rem; }
.pointers li { margin-bottom: .5rem; }

.info-box {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}
.info-box h3 { margin: 0 0 .5rem; color: #0d47a1; font-size: 1.1rem; }
.info-box p { margin: 0; color: #1a1a1a; font-size: .9rem; }
.info-box a { color: #1565c0; font-weight: 600; }

/* ── Steps list ───────────────────────────────────────────── */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps-list li {
  counter-increment: step;
  padding: .75rem 0 .75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .75rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 1.75rem;
  font-size: .8rem;
  font-weight: 700;
}

/* ── Checklist ────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: .5rem 0 .5rem 1.75rem;
  position: relative;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Platform tabs ────────────────────────────────────────── */
.platform-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 1.5rem;
}
.platform-tab {
  padding: .6rem 1.5rem;
  border: none;
  background: none;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-dark);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.platform-tab:hover { color: var(--navy); }
.platform-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Dark mode overrides ──────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .pointers, .info-box {
    background: #1e3a5f;
    border-left-color: #64b5f6;
  }
  .pointers h2, .info-box h3 { color: #90caf9; }
  .pointers li, .info-box p { color: #e0e0e0; }
  .info-box a { color: #90caf9; }

  .update { border-bottom-color: #333; }
  .update-version { background: #1b3a2f; color: #81c784; }
  .update h4 { color: #e0e0e0; }

  .test-focus { background: #3d2a1a; border-color: #ffb74d; color: #f5f5f5; }
  .test-focus strong { color: #ffcc80; }

  .beta-not-tester { background: #3d2a1a; border-color: #ffb74d; color: #f5dcc0; }

  .portal-nav-card { background: #1a1a2e; border-color: #333; color: #e0e0e0; }
  .portal-nav-card:hover { border-color: var(--gold); }

  .beta-signin-card { background: #1a1a2e; border-color: #333; }
  .beta-signin-card p { color: #aaa; }

  .steps-list li { border-bottom-color: #333; }

  .platform-tabs { border-bottom-color: #444; }
  .platform-tab { color: #bbb; }
  .platform-tab:hover { color: #fff; }
  .platform-tab.active { color: #fff; border-bottom-color: #fff; }
}
