/* ============================================================
   THE LEATHER APRON LEAGUE — Complete Redesign
   ESPN/DraftKings Sports Aesthetic
   ============================================================ */

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

:root {
  --dark-bg:     #1a1a2e;
  --darker-bg:   #0f0f1e;
  --card-bg:     #252541;
  --border:      #3a3a52;
  --border-dark: #2a2a40;
  --accent-red:  #e63946;
  --accent-red-hover: #d02835;
  --white:       #ffffff;
  --text-light:  #f0f0f0;
  --text-muted:  #a0a0b0;
  --success:     #2ecc71;
  --font-head:   'Oswald', 'Barlow Condensed', sans-serif;
  --font-body:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-red-hover);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark-bg);
  border-bottom: 2px solid var(--accent-red);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 60px;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-brand .accent {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: var(--font-body);
  transition: color var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  min-width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  z-index: 1001;
}

.nav-item:hover .dropdown-menu {
  max-height: 300px;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.dropdown-item:hover {
  background: var(--border);
  color: var(--accent-red);
  padding-left: 24px;
}

.dropdown-item:first-child {
  border-top: 1px solid var(--border-dark);
}

/* Mobile menu toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

/* ============================================================
   LAYOUT
   ============================================================ */
#app {
  padding-top: 70px;
  min-height: 100vh;
}

.section {
  display: none;
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--card-bg) 100%);
  border-bottom: 3px solid var(--accent-red);
  padding: 100px 40px;
  text-align: center;
  margin-bottom: 80px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--accent-red);
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================================
   MATCHUP CARDS
   ============================================================ */
.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--accent-red);
  border-radius: 2px;
}

.matchups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.matchup-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
}

.matchup-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.15);
}

.matchup-header {
  background: var(--border-dark);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.matchup-status {
  color: var(--accent-red);
}

.matchup-teams {
  display: flex;
  height: 140px;
}

.matchup-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  background: var(--card-bg);
}

.matchup-team:first-child {
  border-right: 1px solid var(--border);
}

.team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.3;
}

.team-manager {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.team-score {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 1px;
}

.team-projected {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   SMACK TALK FEED
   ============================================================ */
.feed-section {
  margin-bottom: 80px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.feed-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 12px;
}

.feed-item {
  background: var(--card-bg);
  border-left: 3px solid var(--accent-red);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: 2px;
  padding: 16px;
  transition: all var(--transition);
}

.feed-item:hover {
  border-color: var(--accent-red);
  background: var(--darker-bg);
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.feed-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
}

.feed-team {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-dark);
  padding: 2px 8px;
  border-radius: 2px;
}

.feed-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.feed-message {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   STANDINGS PAGE
   ============================================================ */
.standings-wrapper {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.standings-table thead {
  background: var(--border-dark);
}

.standings-table th {
  padding: 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.standings-table th:not(:first-child) {
  text-align: center;
}

.standings-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.standings-table td:not(:first-child) {
  text-align: center;
}

.standings-table tbody tr {
  background: var(--card-bg);
  transition: all var(--transition);
}

.standings-table tbody tr:hover {
  background: var(--border-dark);
}

.standings-table tbody tr:nth-child(1),
.standings-table tbody tr:nth-child(2),
.standings-table tbody tr:nth-child(3) {
  border-left: 4px solid var(--accent-red);
}

.rank-cell {
  font-weight: 700;
  color: var(--accent-red);
  font-family: var(--font-head);
  font-size: 14px;
}

.team-cell {
  color: var(--text-light);
  font-weight: 600;
}

.manager-cell {
  color: var(--text-muted);
  font-size: 12px;
}

.stat-cell {
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.15);
}

.news-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--border-dark) 0%, var(--darker-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  border-bottom: 1px solid var(--border);
}

.news-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-red);
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  width: fit-content;
}

.news-headline {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.news-teaser {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.news-author {
  font-weight: 600;
}

.news-date {
  color: var(--text-muted);
}

/* ============================================================
   WEEKLY RECAP
   ============================================================ */
.recap-wrapper {
  max-width: 900px;
}

.recap-masthead {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--accent-red);
}

.recap-icon {
  font-size: 48px;
}

.recap-meta {
  flex: 1;
}

.recap-byline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.recap-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.recap-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
}

.recap-body p {
  margin-bottom: 20px;
}

.recap-body p strong {
  color: var(--accent-red);
  font-weight: 700;
}

.pull-quote {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-red);
  border-left: 4px solid var(--accent-red);
  padding-left: 24px;
  margin: 40px 0;
  letter-spacing: 1px;
  line-height: 1.3;
}

.recap-author {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ============================================================
   HISTORY PAGE
   ============================================================ */
.history-timeline {
  position: relative;
  padding-left: 60px;
  max-width: 800px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-red);
}

.history-entry {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.history-entry::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--dark-bg);
  border: 3px solid var(--accent-red);
  border-radius: 50%;
}

.history-year {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.history-champion {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.history-team {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.history-trophy {
  margin-right: 8px;
}

/* ============================================================
   TRASH TALK BOARD
   ============================================================ */
.trash-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: 1200px;
}

.trash-feed {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
}

.trash-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trash-post {
  background: var(--darker-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: 2px;
  padding: 16px;
  transition: all var(--transition);
}

.trash-post:hover {
  border-color: var(--accent-red);
  background: var(--border-dark);
}

.trash-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.trash-post-author {
  font-weight: 700;
  color: var(--accent-red);
  font-size: 12px;
  text-transform: uppercase;
}

.trash-post-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.trash-post-team {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-dark);
  padding: 2px 8px;
  border-radius: 2px;
}

.trash-post-message {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.trash-empty {
  text-align: center;
  padding: 100px 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.trash-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.trash-form-card h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--darker-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-light);
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-red);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--darker-bg);
  color: var(--text-light);
}

.btn-post {
  background: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: 2px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-post:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

.btn-post:active {
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--darker-bg);
  border-top: 2px solid var(--accent-red);
  padding: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 80px;
}

footer strong {
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #nav {
    padding: 0 24px;
    gap: 40px;
  }

  .section {
    padding: 40px 24px;
  }

  .hero {
    padding: 60px 24px;
  }

  .trash-wrapper {
    grid-template-columns: 1fr;
  }

  .trash-form-card {
    position: static;
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 0 16px;
    gap: 16px;
    height: 60px;
  }

  #nav-toggle {
    display: flex;
  }

  .nav-brand {
    font-size: 18px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .dropdown-menu {
    position: static;
    background: var(--darker-bg);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    max-height: 600px;
    overflow: visible;
  }

  .nav-item:hover .dropdown-menu {
    max-height: 600px;
  }

  .dropdown-item {
    padding-left: 32px;
  }

  #app {
    padding-top: 60px;
  }

  .section {
    padding: 32px 16px;
  }

  .hero {
    padding: 40px 16px;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .matchups-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .standings-table {
    font-size: 12px;
  }

  .standings-table th,
  .standings-table td {
    padding: 10px 8px;
  }

  .recap-title {
    font-size: 24px;
  }

  .pull-quote {
    font-size: 20px;
  }

  .trash-wrapper {
    gap: 20px;
  }

  .trash-feed {
    height: 400px;
  }
}

@media (max-width: 480px) {
  #nav {
    height: 60px;
    padding: 0 12px;
  }

  .nav-brand {
    font-size: 16px;
  }

  .section {
    padding: 24px 12px;
  }

  .hero {
    padding: 30px 12px;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-title::before {
    width: 4px;
    height: 20px;
  }

  .matchup-card {
    border-radius: 2px;
  }

  .matchup-teams {
    height: 100px;
  }

  .team-score {
    font-size: 32px;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 4px;
    font-size: 11px;
  }

  .news-headline {
    font-size: 14px;
  }

  .news-teaser {
    font-size: 12px;
  }

  .history-timeline {
    padding-left: 40px;
  }

  .history-entry::before {
    left: -30px;
  }

  .history-year {
    font-size: 18px;
  }

  .trash-form-card {
    padding: 16px;
  }

  .trash-feed {
    height: 300px;
    padding: 16px;
  }

  footer {
    padding: 24px 12px;
    font-size: 11px;
  }
}
