/*
Theme Name: NFL Week 1 Picks
Theme URI: https://example.com/nfl-week1-picks
Author: Grok
Description: A simple WordPress theme that lists the 2026 NFL Week 1 schedule with score-input boxes next to each team.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nfl-week1-picks
*/

:root {
  --navy: #0b1d36;
  --navy-2: #12263f;
  --field: #1b7a3d;
  --field-dark: #145c2e;
  --gold: #c9a227;
  --cream: #f4efe3;
  --ink: #013369;
  --line: #d7deea;
  --white: #ffffff;
  --type: 13px;
  --box-line: #1b7a3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--type);
  background: #eef2f6;
  color: var(--ink);
  min-height: 100vh;
}

.site-header {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  color: var(--white);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--field) 0%, var(--field-dark) 100%);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: var(--type);
}

.site-title {
  margin: 0;
  font-size: var(--type);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.site-title a {
  color: var(--white);
  text-decoration: none;
}

.site-tagline {
  margin: 4px 0 0;
  color: #d7e0ee;
  font-size: var(--type);
}

.site-main {
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 24px 16px 40px;
}

.board {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(7, 20, 34, 0.22);
  overflow: hidden;
  border: 1px solid #d9e1ec;
}

.board-logo-wrap {
  background: #3b2418;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.board-logo {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
}

.board-head {
  background: #f6f8fb;
  color: var(--ink);
  padding: 18px 22px 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.board-head > div {
  width: 100%;
}

.board-head h1 {
  margin: 0;
  font-size: 18px;
  color: #ffd400;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
}

.board-head .board-kicker {
  margin: 0;
  color: #013369;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  line-height: 1.4;
  text-align: center;
}

.board-head p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 400;
  font-size: var(--type);
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #1a1403;
}

.btn-ghost {
  background: transparent;
  color: #e8eef7;
  border: 1px solid #4a5d78;
}

.number-pool {
  padding: 4px 22px 10px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--line);
}

.pool-label {
  display: block;
  font-size: var(--type);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 10px;
  text-align: center;
}

.pool-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pool-break {
  display: none;
}

.num-chip {
  appearance: none;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  border: 2px solid var(--box-line);
  color: var(--ink);
  font-weight: 400;
  font-size: var(--type);
  cursor: pointer;
  user-select: none;
}

.num-chip.used {
  background: #e7ebf1;
  color: var(--field);
  border-color: var(--box-line);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  cursor: default;
}

.num-chip.flash {
  outline: 3px solid #c0392b;
}

.score-box.invalid {
  border-color: #c0392b;
  background: #fff3f2;
}

.day-block {
  padding: 22px 48px 12px;
}

.day-label {
  margin: 0 auto 12px;
  width: 394px;
  max-width: 100%;
  font-size: var(--type);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--field);
  font-weight: 800;
  border-bottom: 2px solid var(--field);
  display: block;
  padding-bottom: 3px;
  text-align: left;
  box-sizing: border-box;
}

.matchup {
  display: grid;
  grid-template-columns: 28px minmax(110px, 150px) 22px minmax(110px, 150px) 28px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 0;
  width: 394px;
  max-width: 100%;
  margin: 0 auto;
}

.team {
  font-size: var(--type);
  font-weight: 400;
  line-height: 1.2;
}

.team.away {
  text-align: right;
}

.team.home {
  text-align: left;
}

.vs {
  text-align: center;
  color: var(--field);
  font-weight: 400;
  font-size: var(--type);
  letter-spacing: 0.04em;
}

.score-box {
  width: 28px;
  height: 28px;
  border: 2px solid var(--box-line);
  border-radius: 6px;
  background: #fbfbf8;
  text-align: center;
  font-size: var(--type);
  font-weight: 400;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff;
}

.score-box.filled {
  background: #e8f6ec;
  border-color: var(--field);
}

.score-box:focus {
  outline: 3px solid rgba(27, 122, 61, 0.28);
  border-color: var(--field);
}

.score-box::-webkit-outer-spin-button,
.score-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.score-box[type="number"] {
  -moz-appearance: textfield;
}

.entries-wrap {
  display: none;
  padding: 8px 22px 22px;
}

.entries-wrap.has-rows {
  display: block;
}

.entries-heading {
  width: 394px;
  max-width: 100%;
  margin: 12px auto 8px;
  text-align: left;
  font-size: var(--type);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--field);
  padding-bottom: 3px;
  box-sizing: border-box;
  line-height: 1.45;
}

.entries-table {
  width: 394px;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: var(--type);
  color: var(--ink);
}

.entries-table td {
  text-align: left;
  padding: 4px 0;
  color: var(--ink);
  font-weight: 700;
}

.entries-table .entry-name {
  color: var(--ink);
  font-weight: 700;
}

.submissions-link {
  text-align: center;
  margin: 8px 22px 18px;
  font-size: var(--type);
}

.submissions-link a {
  color: var(--field);
  font-weight: 700;
  text-decoration: underline;
}

.sheets-list {
  padding: 16px 0 28px;
}

.sheet-card {
  width: 100%;
  max-width: 100%;
  margin: 0 0 56px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--field);
}

.sheet-card:last-child {
  border-bottom: 0;
  margin-bottom: 24px;
}

.pick-num {
  width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

.pick-num.picked,
.sheet-card .team.picked {
  color: var(--field);
}

.sheet-card h2 {
  margin: 0 0 6px;
  font-size: var(--type);
  font-weight: 800;
  color: var(--ink);
}

.tally-line {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.tally-line strong {
  font-weight: 800;
}

.sheet-card .matchup {
  padding: 2px 0;
}

.sheet-card .day-block {
  padding-top: 8px;
  padding-bottom: 8px;
}

.sheet-name {
  width: 394px;
  max-width: 100%;
  margin: 12px auto 8px;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 48px;
  box-sizing: border-box;
}

.sheet-when {
  margin: 0 0 10px;
  color: var(--field);
}

.team.picked {
  color: var(--field);
}

.entry-form {
  padding: 16px 22px 6px;
}

.field-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.field-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-submit {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  height: 28px;
  font-weight: 400;
  font-size: var(--type);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--field);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.btn-submit:disabled {
  background: #c5ced9;
  color: var(--field);
  cursor: not-allowed;
}

.btn-venmo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: #008cff;
  color: #fff;
  font-weight: 400;
  font-size: var(--type);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-venmo:hover {
  background: #0074d6;
}

.btn-clear {
  appearance: none;
  border: 2px solid var(--box-line);
  border-radius: 6px;
  padding: 0 8px;
  height: 28px;
  box-sizing: border-box;
  font-weight: 400;
  font-size: var(--type);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 8px;
}

.submit-msg {
  margin: 0 22px 8px;
  font-size: var(--type);
  font-weight: 400;
  color: var(--ink);
  min-height: 1.2em;
}

.field-row label {
  font-size: var(--type);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.name-box {
  flex: 1;
  max-width: 360px;
  height: 28px;
  border: 2px solid var(--box-line);
  border-radius: 6px;
  background: #fbfbf8;
  padding: 0 8px;
  font-size: var(--type);
  font-weight: 400;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff;
}

.name-box:focus {
  outline: 3px solid rgba(27, 122, 61, 0.28);
  border-color: var(--field);
}

.note {
  padding: 8px 22px 22px;
  color: var(--field);
  font-size: var(--type);
}

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 36px;
  color: var(--field);
  font-size: var(--type);
}

@media (max-width: 640px) {
  :root {
    --type: 12px;
  }

  .board-logo {
    max-height: none;
  }

  .board-head h1 {
    font-size: 16px;
  }

  .board-head p {
    font-size: 14px;
  }

  .num-chip {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: var(--type);
    border-width: 2px;
    border-radius: 4px;
  }

  .pool-row {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }

  .pool-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }

  .btn-clear {
    flex-basis: auto;
    width: auto;
    height: 22px;
    margin-left: 0;
    margin-top: 8px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .field-row,
  .button-row {
    flex-wrap: wrap;
  }

  .name-box {
    max-width: none;
    font-size: 16px;
    height: 36px;
  }

  .site-title {
    font-size: var(--type);
  }

  .day-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .matchup {
    grid-template-columns: 28px minmax(90px, 1fr) 22px minmax(90px, 1fr) 28px;
    gap: 4px;
  }

  .team {
    font-size: var(--type);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .score-box {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .actions,
  .site-footer {
    display: none;
  }

  .board {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
