/* Add-player form container for consistent width */

/* Make add-player form match the full-width input style used after a player is added */
#playerForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 auto 18px auto;
}

#playerForm input[type="text"],
#playerForm input[type="number"] {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 1.08rem;
  border-radius: 8px;
  border: 1.5px solid #bbb;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#playerForm input[type="text"]:focus,
#playerForm input[type="number"]:focus {
  border-color: #003366;
  outline: none;
}

#playerForm button[type="submit"] {
  width: 60%;
  min-width: 140px;
  max-width: 260px;
  margin: 0 auto;
  padding: 12px 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

#playerForm button[type="submit"]:hover {
  filter: brightness(0.95);
}
:root {
  --primary: #003366;
  --primary-grad: linear-gradient(to right, #003366, #004080);
  --accent: #ff6600;
  --light-bg: #FAFAFA;
  --dark-text: #1c1c1c;
  --action-border: #111;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Utility: make main content expand so footer stays at bottom */
.main-fill { flex: 1; }

/* Header (landing-style) */
.site-header {
  background: var(--primary-grad);
  color: white;
  text-align: center;
  padding: 24px 16px;
}
.site-header h1 { font-size: 2rem; font-weight: 700; margin: 0 0 6px 0; }
.site-header p { margin: 0; opacity: 0.95; }

/* Page container */
.container { max-width: 1000px; margin: 24px auto; padding: 0 20px; }

/* CTA buttons */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.2s ease;
}
.cta-button:hover { filter: brightness(0.95); }

button:hover {
  filter: brightness(0.95);
}

/* Dark borders for action buttons/links */
:where(
  button,
  input[type="submit"],
  input[type="button"],
  .cta-button,
  .upgrade-button,
  .close-button,
  .login-button,
  .menu-link,
  .team-link,
  .confirm-btn,
  .delete-team,
  .edit-team,
  .save-btn
) {
  border: 2px solid var(--action-border) !important;
}

/* Cards/grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Footer */
.site-footer {
  text-align: center;
  background: var(--primary-grad);
  color: white;
  padding: 20px 0;
  margin-top: 2rem;
  /* Force full-bleed width even inside centered containers */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.site-footer .inner { max-width: 900px; margin: auto; }
.site-footer a { color: white !important; text-decoration: none; margin: 0 15px; }
.site-footer a { font-size: 1rem; }
.site-footer a:link { color: white !important; }
.site-footer a:visited { color: white !important; }
.site-footer a:hover { color: white !important; filter: brightness(0.95); }
.site-footer a:active { color: white !important; }
.site-footer .links { margin-bottom: 10px; }
.site-footer .copyright { font-size: 0.9em; }

/* 1-Click Rostering button */
.one-click-rostering {
  display: flex;
  justify-content: center;
  margin: 16px 0 10px;
}

.one-click-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 102, 0, 0.25);
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.one-click-btn:hover {
  filter: brightness(0.97);
  box-shadow: 0 10px 22px rgba(255, 102, 0, 0.3);
}

.one-click-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive helpers */
img,
video {
  max-width: 100%;
  height: auto;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-pane {
  transform: none;
}

@media (max-width: 980px) {
  body {
    font-size: 1rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-pane {
    transform: none;
  }

  .site-header h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 720px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    white-space: nowrap;
  }

  .site-footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .site-footer a {
    margin: 0 8px;
  }
}
