/* Polla Mundial - estilos custom (plain CSS, no Tailwind @apply) */
/* Colores Barquilleria */
:root {
  --barqui-50:  #fffaf0;
  --barqui-100: #fef0d5;
  --barqui-200: #fcdba6;
  --barqui-300: #f8c378;
  --barqui-400: #f3a249;
  --barqui-500: #e88323;
  --barqui-600: #cc6816;
  --barqui-700: #a64f15;
  --barqui-800: #823f16;
  --barqui-900: #6a3415;
}

/* Buttons */
.btn-primary {
  background: var(--barqui-600);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--barqui-700); }
.btn-primary:active { background: var(--barqui-800); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { background: #e2e8f0; }

/* Forms */
.form-input {
  width: 100%;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--barqui-500);
}

/* Nav */
.nav-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { color: #0f172a; background: #f1f5f9; }
.nav-btn-active { background: var(--barqui-100); color: var(--barqui-800); }
.nav-btn-active:hover { background: var(--barqui-200); }

.nav-btn-mobile {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-btn-mobile:hover { color: #0f172a; }
.nav-btn-mobile-active {
  color: var(--barqui-700);
  border-bottom: 2px solid var(--barqui-500);
}

/* Auth tabs */
.auth-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}
.auth-tab-active {
  color: var(--barqui-700);
  border-bottom-color: var(--barqui-500);
}

/* Match cards */
.match-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.match-card-locked { background: #f8fafc; }
.match-card-finished { background: rgba(236, 253, 245, 0.4); border-color: #a7f3d0; }

/* Score input */
.score-input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  background: white;
  outline: none;
}
.score-input:focus {
  border-color: var(--barqui-500);
  box-shadow: 0 0 0 2px rgba(232, 131, 35, 0.2);
}
.score-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Toast */
.toast-msg {
  background: #0f172a;
  color: white;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  max-width: 20rem;
}
.toast-success { background: #059669; }
.toast-error { background: #e11d48; }
.toast-info { background: #1e293b; }

/* Bracket card */
.bracket-stage-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
}

/* Group card */
.group-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
}

/* Position pill */
.pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pos-1 { background: #d1fae5; color: #065f46; }
.pos-2 { background: #ecfdf5; color: #047857; }
.pos-3 { background: #fef3c7; color: #b45309; }
.pos-4 { background: #f1f5f9; color: #64748b; }
