/* ─── FOC Base ──────────────────────────────────────────────────────────────── */
.foc-body {
  background: #0f0f0f;
  color: #f5f4f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── FOC Nav ──────────────────────────────────────────────────────────────── */
.foc-nav {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.foc-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.foc-logo { display: flex; align-items: baseline; gap: 0.3rem; }
.foc-logo .logo-mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.1em; color: #f5f4f0; }
.foc-logo .logo-sub  { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em; color: #c8a84b; }

.foc-nav-links { list-style: none; display: flex; gap: 0.25rem; }
.foc-nav-links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.foc-nav-links a:hover { color: #f5f4f0; background: rgba(255,255,255,0.06); }
.foc-nav-links a.active { color: #f5f4f0; background: rgba(255,255,255,0.08); }

.foc-nav-right { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.foc-pilot-name { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.foc-logout {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.35rem 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.foc-logout:hover { color: #f5f4f0; border-color: rgba(255,255,255,0.4); }

/* ─── FOC Main ─────────────────────────────────────────────────────────────── */
.foc-main { flex: 1; }

.foc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ─── Page header ──────────────────────────────────────────────────────────── */
.foc-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.foc-page-header h1 {
  font-size: 2.2rem;
  color: #f5f4f0;
  margin-bottom: 0.25rem;
}
.foc-page-header p { font-size: 0.9rem; color: rgba(255,255,255,0.4); }

/* ─── Stat cards ───────────────────────────────────────────────────────────── */
.foc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2.5rem;
}
.foc-stat {
  background: #141414;
  padding: 1.75rem 1.5rem;
}
.foc-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.6rem;
}
.foc-stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #f5f4f0;
  line-height: 1;
}
.foc-stat-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.4rem;
}
.foc-stat-accent .foc-stat-value { color: #c8a84b; }

/* ─── Cards / panels ───────────────────────────────────────────────────────── */
.foc-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.foc-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #f5f4f0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foc-card-title a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.foc-card-title a:hover { color: #f5f4f0; }

/* ─── Two-column layout ────────────────────────────────────────────────────── */
.foc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .foc-grid-2 { grid-template-columns: 1fr; } }

/* ─── PIREP table ──────────────────────────────────────────────────────────── */
.foc-table { width: 100%; border-collapse: collapse; }
.foc-table th {
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.foc-table td {
  padding: 0.9rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.foc-table tr:last-child td { border-bottom: none; }
.foc-table tr:hover td { background: rgba(255,255,255,0.02); }
.foc-code { font-family: var(--font-display); letter-spacing: 0.08em; color: #f5f4f0; font-size: 1rem; }
.foc-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}
.foc-badge-gold { border-color: rgba(200,168,75,0.4); color: #c8a84b; }
.foc-badge-green { border-color: rgba(100,200,100,0.3); color: #7dc87d; }

/* ─── Rank bar ─────────────────────────────────────────────────────────────── */
.foc-rank-bar-wrap { margin-top: 0.5rem; }
.foc-rank-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}
.foc-rank-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.foc-rank-bar-fill {
  height: 100%;
  background: #c8a84b;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ─── Empty state ──────────────────────────────────────────────────────────── */
.foc-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
}

/* ─── Login page ───────────────────────────────────────────────────────────── */
.foc-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #0a0a0a;
  position: relative;
}
.foc-login-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 79px,rgba(255,255,255,0.025) 80px),
    repeating-linear-gradient(90deg,transparent,transparent 79px,rgba(255,255,255,0.025) 80px);
}
.foc-login-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem;
  text-align: center;
}
.foc-login-logo { margin-bottom: 2rem; }
.foc-login-logo .logo-mark { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.1em; color: #f5f4f0; }
.foc-login-logo .logo-sub  { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.3em; color: #c8a84b; display: block; margin-top: 0.1rem; }
.foc-login-box h2 { font-size: 1.6rem; color: #f5f4f0; margin-bottom: 0.5rem; }
.foc-login-box p  { font-size: 0.88rem; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }
.foc-btn-vamsys {
  display: block;
  width: 100%;
  background: #f5f4f0;
  color: #0a0a0a;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.foc-btn-vamsys:hover { background: #ddd; }
.foc-login-note { margin-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.foc-login-note a { color: rgba(255,255,255,0.4); text-decoration: underline; }

/* ─── Error / alert ────────────────────────────────────────────────────────── */
.foc-alert {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid;
}
.foc-alert-error   { background: rgba(220,50,50,0.08);  border-color: #dc3232; color: #f88; }
.foc-alert-success { background: rgba(50,180,50,0.08);  border-color: #32b432; color: #7dc87d; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.foc-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 2rem;
  background: #0a0a0a;
}
.foc-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}
.foc-footer-link { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.foc-footer-link:hover { color: #f5f4f0; }

.foc-badge-gold { border-color: rgba(200,168,75,0.4); color: #c8a84b; }
.foc-badge-red  { border-color: rgba(255,80,80,0.4);  color: #f88; }

/* ─── Nav Dropdown ──────────────────────────────────────────────────────── */
.foc-nav-dropdown { position: relative; display: flex; align-items: center; }

.foc-nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
}
.foc-nav-dropdown-btn:hover,
.foc-nav-dropdown-btn.active { color: #f5f4f0; background: rgba(255,255,255,0.08); }
.foc-nav-dropdown-btn.open   { color: #f5f4f0; background: rgba(255,255,255,0.08); }

.foc-nav-caret {
  font-size: 0.5rem;
  transition: transform 0.2s;
  display: inline-block;
}
.foc-nav-dropdown-btn.open .foc-nav-caret { transform: rotate(180deg); }

.foc-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  list-style: none;
  z-index: 200;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.foc-nav-dropdown-menu.open { display: block; }

.foc-nav-dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, background 0.2s;
}
.foc-nav-dropdown-menu li a:hover {
  color: #f5f4f0;
  background: rgba(255,255,255,0.05);
}
.foc-nav-dropdown-menu li a.active {
  color: #c8a84b;
}
