/* =========================
   Arrival 1000 – Base Style
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

/* =========================
   Layout
   ========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header,
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 26px;
}

/* =========================
   Cards
   ========================= */

.card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

/* =========================
   Typography
   ========================= */

h1, h2, h3 {
  margin-top: 0;
}

h2 {
  font-size: 20px;
}

.small {
  font-size: 13px;
  color: #666;
}

/* =========================
   Buttons (Base)
   ========================= */

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.btn.secondary {
  background: #f2f2f2;
  color: #111;
}

.btn:hover {
  opacity: 0.9;
}

/* =========================
   Buttons (Modern / Premium)
   ========================= */

.btn-primary {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;

  background: linear-gradient(135deg, #111, #000);
  color: #fff;

  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.06);

  transition: all .25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 6px 18px rgba(0,0,0,.35);
}

.btn-secondary {
  background: #f1f1f1;
  color: #111;
  border-radius: 14px;
  padding: 16px 22px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-secondary:hover {
  background: #e5e5e5;
}

/* =========================
   Forms
   ========================= */

form {
  width: 100%;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* =========================
   Tables
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

/* =========================
   Badges / Tags
   ========================= */

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   Links
   ========================= */

a {
  color: #111;
}

a:hover {
  opacity: 0.8;
}

/* =========================
   Checkbox
   ========================= */

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* =========================
   Ranking – Estados
========================= */

.in-progress {
  opacity: 0.6;
}

.progress-badge {
  background: #ff9800;
  color: #111;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.athlete-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.athlete-name {
  font-size: 15px;
}

.badge-official {
  background: #111;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}

.athlete-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 6px;
  align-items: center;
}

.athlete-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-audit {
  background: #f1f1f1;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.btn-audit:hover {
  background: #e5e5e5;
}

.audit-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.athlete-info h2{
  margin:0;
  font-size:22px;
}

.badge{
  display:inline-block;
  margin-top:6px;
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
}
.badge.male{ background:#e3f2fd; color:#0d47a1; }
.badge.female{ background:#fce4ec; color:#880e4f; }

.rank-box{
  text-align:center;
  padding:10px 16px;
  border-radius:14px;
  background:#111;
  color:#fff;
}
.rank-box.empty{
  background:#eee;
  color:#555;
}
.rank-box strong{
  font-size:26px;
  display:block;
}

.audit-actions{
  display:flex;
  gap:16px;
  align-items:flex-end;
  padding:14px;
  border:1px solid #eee;
  border-radius:14px;
  background:#fafafa;
}

.audit-actions label{
  font-size:12px;
  opacity:.7;
}

.btn-primary{
  background:#111;
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.btn-secondary{
  background:#e0e0e0;
  border:none;
  padding:10px 16px;
  border-radius:12px;
  cursor:pointer;
}
.audit-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.audit-subtitle{
  font-size:13px;
  opacity:.6;
}

.audit-left h2{
  margin:4px 0 10px;
}

.audit-links{
  display:flex;
  gap:10px;
}

.social-btn{
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  text-decoration:none;
  font-weight:600;
}

.social-btn.ig{
  background:#fce4ec;
  color:#880e4f;
}

.social-btn.strava{
  background:#fff3e0;
  color:#e65100;
}

.km-box{
  text-align:center;
  padding:14px 20px;
  border-radius:18px;
  background:#111;
  color:#fff;
  min-width:160px;
}

.km-box strong{
  font-size:28px;
  display:block;
}

.add-ride-row{
  display:grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  gap:12px;
}

.add-ride-row input{
  padding:12px;
  border-radius:10px;
  border:1px solid #ccc;
  font-size:14px;
}
