/* ===============================
   RESET & BASE
================================ */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0a1230, #050914);
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ===============================
   LOGIN
================================ */
.login-screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 320px;
  background: #0f1c45;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  text-align: center;
}

.login-card h1 {
  margin: 0;
}

.login-card input,
.login-card button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: none;
}

.login-card input {
  background: #0a1433;
  color: #fff;
}

.login-card button {
  background: linear-gradient(135deg,#2f6bff,#1b3ea3);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* ===============================
   APP LAYOUT
================================ */
#app {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

/* ===============================
   HEADER
================================ */
.header {
  background: #0f1c45;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.logout-btn {
  background: #d64b4b;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}

/* ===============================
   MENU
================================ */
.menu {
  margin: 16px auto 0;
  width: 95%;
  max-width: 1000px;
  background: #0c1738;
  border-radius: 16px;
  display: flex;
  overflow: hidden;
}

.menu button {
  flex: 1;
  padding: 14px 6px;
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.menu button:hover {
  background: rgba(255,255,255,.08);
}

/* ===============================
   MAIN CONTAINER
================================ */
.container {
  width: 95%;
  max-width: 1000px;
  margin: 16px auto;
  flex: 1;
}

/* ===============================
   SECTIONS (CARDS)
================================ */
.section {
  display: none;
}

.section.active {
  display: block;
}

.section h3 {
  margin-top: 0;
}

.section {
  background: #0f1c45;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,.6);
}

/* ===============================
   FORMS
================================ */
.box {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.box input,
.box button {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.box input {
  background: #0a1433;
  color: #fff;
}

.box button {
  background: linear-gradient(135deg,#2f6bff,#1b3ea3);
  color: #fff;
  font-weight: bold;
}

/* ===============================
   CARDS (EQUIPOS / JUGADORES)
================================ */
.grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 14px;
}

.team-card,
.player-card {
  background: #0c1738;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.team-card img,
.player-photo {
  max-height: 80px;
  width: 100%;
  object-fit: contain;
}

/* ===============================
   TABLAS (GENERAL / GOLEO / ASIST)
================================ */
.tabla {
  overflow-x: auto;
}

.tabla-header,
.tabla-row {
  display: grid;
  grid-template-columns: 2fr repeat(8, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 800px;
}

.tabla-header {
  font-weight: bold;
  margin-bottom: 8px;
}

.tabla-row {
  background: #0c1738;
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.tabla-row input {
  width: 100%;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: #0a1433;
  color: #fff;
  text-align: center;
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  font-size: 12px;
  opacity: .6;
  padding: 16px;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {

  .menu {
    flex-wrap: wrap;
  }

  .menu button {
    flex: 1 1 50%;
    font-size: 13px;
  }

  .box {
    grid-template-columns: 1fr;
  }

}
