/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --midnight: #0B1F33;
  --chalk: #F8F6F0;
  --cobalt: #2F6BFF;
  --coral: #FF6F61;
  --pale-blue: #DDE8F7;
  --graphite: #28323D;
  --black: #050E17;
  --border-thick: 4px;
}

body {
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 0.05em;
  background-color: var(--chalk);
  color: var(--midnight);
  overflow-x: hidden;
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-weight: 900;
}

p, a, li, label, input, textarea, button, td, th {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

/* CARTOON SPORT STYLING UTILITIES */
.cartoon-box {
  background-color: #ffffff;
  border: var(--border-thick) solid var(--midnight);
  box-shadow: 6px 6px 0px var(--midnight);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cartoon-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--midnight);
}

.cartoon-btn {
  background-color: var(--coral);
  color: #ffffff;
  border: var(--border-thick) solid var(--midnight);
  box-shadow: 4px 4px 0px var(--midnight);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  font-family: 'Impact', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-block;
  transition: all 0.1s ease;
}

.cartoon-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--midnight);
  background-color: var(--cobalt);
}

.cartoon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--midnight);
}

/* HEADER & NAVIGATION */
.top-bar {
  background-color: var(--midnight);
  color: var(--chalk);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--graphite);
}

header {
  background-color: var(--cobalt);
  border-bottom: var(--border-thick) solid var(--midnight);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.8rem;
  color: var(--chalk);
  text-shadow: 3px 3px 0px var(--midnight);
  text-transform: uppercase;
  font-style: italic;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--chalk);
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--chalk);
  color: var(--midnight);
  border-color: var(--midnight);
  transform: rotate(-2deg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--chalk);
  cursor: pointer;
}

/* DATE BAND & METRICS BAR */
.full-date-band {
  background-color: var(--coral);
  color: var(--midnight);
  padding: 0.75rem 1rem;
  border-bottom: var(--border-thick) solid var(--midnight);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.date-band-item {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.date-band-item::before {
  content: '★';
  color: var(--chalk);
}

/* HERO SECTION */
.hero {
  background-color: var(--pale-blue);
  border-bottom: var(--border-thick) solid var(--midnight);
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--cobalt) 15%, transparent 16%);
  background-size: 24px 24px;
  opacity: 0.15;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  background-color: var(--midnight);
  color: var(--chalk);
  display: inline-block;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  transform: rotate(-1deg);
  border-radius: 4px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--midnight);
  line-height: 1;
  text-shadow: 4px 4px 0px var(--chalk);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--cobalt);
  display: block;
  font-style: italic;
  font-size: 4rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--graphite);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* DATA CUTOFF NOTICE BAR */
.cutoff-notice {
  background-color: #FFF3CD;
  border: 3px solid #FFC107;
  color: #856404;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 4px 4px 0px #000;
}

.cutoff-notice svg {
  flex-shrink: 0;
}

/* MAIN CONTENT GRID */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* DECISION BOARD COMPONENT */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 2px 2px 0px var(--pale-blue);
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 35px;
  background-color: var(--coral);
  transform: skewX(-15deg);
}

.board-intro {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 800px;
}

.decision-board {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.date-chapter {
  background-color: var(--pale-blue);
  border: var(--border-thick) solid var(--midnight);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 6px 6px 0px var(--midnight);
}

.date-chapter-header {
  font-size: 2rem;
  color: var(--midnight);
  border-bottom: 4px dashed var(--midnight);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-badge {
  background-color: var(--cobalt);
  color: var(--chalk);
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* POSTER STRIP FIXTURES */
.fixture-lane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poster-strip {
  background-color: #ffffff;
  border: 3px solid var(--midnight);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr 1.8fr;
  align-items: center;
  padding: 1rem;
  box-shadow: 4px 4px 0px var(--midnight);
  transition: transform 0.15s ease;
}

.poster-strip:hover {
  transform: scale(1.01);
}

.strip-group {
  background-color: var(--midnight);
  color: var(--chalk);
  font-size: 1.3rem;
  padding: 0.5rem;
  text-align: center;
  border-radius: 8px;
  text-transform: uppercase;
}

.strip-teams {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
}

.strip-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 1.5rem;
}

.team-name {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--midnight);
}

.team-pts {
  font-size: 0.9rem;
  color: var(--graphite);
}

.strip-versus-data {
  border-left: 2px solid var(--pale-blue);
  border-right: 2px solid var(--pale-blue);
  text-align: center;
  padding: 0 1rem;
}

.strip-gd-record {
  font-size: 0.85rem;
  color: var(--graphite);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gd-badge {
  background-color: var(--pale-blue);
  border: 1px solid var(--midnight);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: bold;
}

.strip-notes {
  padding-left: 1rem;
}

.notes-header {
  font-size: 0.8rem;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.notes-text {
  font-size: 0.9rem;
  color: var(--midnight);
  line-height: 1.3;
}

/* STACKED GROUP CONTEXT PAGE */
.stacked-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.group-strip-card {
  background-color: #ffffff;
  border: var(--border-thick) solid var(--midnight);
  border-radius: 16px;
  box-shadow: 6px 6px 0px var(--midnight);
  overflow: hidden;
}

.group-strip-header {
  background-color: var(--cobalt);
  color: var(--chalk);
  padding: 0.75rem 1rem;
  font-size: 1.4rem;
  border-bottom: var(--border-thick) solid var(--midnight);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.group-strip-header .status-tag {
  background-color: var(--midnight);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.group-table-rows {
  padding: 0.5rem;
}

.table-row-item {
  display: grid;
  grid-template-columns: 24px 1.2fr repeat(4, 40px);
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--pale-blue);
}

.table-row-item:last-child {
  border-bottom: none;
}

.table-row-item.header-row {
  font-size: 0.8rem;
  color: var(--graphite);
  border-bottom: 2px solid var(--midnight);
}

.row-pos {
  font-size: 0.9rem;
  color: var(--graphite);
}

.row-team {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.row-stat {
  text-align: center;
  font-size: 0.9rem;
}

.row-stat.highlight {
  font-family: 'Impact', sans-serif;
  color: var(--cobalt);
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.sidebar-box {
  background-color: var(--pale-blue);
  border: var(--border-thick) solid var(--midnight);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 6px 6px 0px var(--midnight);
}

.sidebar-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--midnight);
  padding-bottom: 0.25rem;
}

/* CONTACT PAGE styled form */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  border: var(--border-thick) solid var(--midnight);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--chalk);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--cobalt);
}

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

.form-status {
  padding: 1rem;
  border-radius: 8px;
  border: 3px solid transparent;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #D4EDDA;
  border-color: #C3E6CB;
  color: #155724;
}

/* LEGAL PAGES & CARTOON GRID */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 3px solid var(--midnight);
  padding-bottom: 0.25rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.25rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* FINLAND ADDRESS & FOOTER */
footer {
  background-color: var(--midnight);
  color: var(--chalk);
  border-top: var(--border-thick) solid var(--midnight);
  padding: 3rem 1rem 1rem 1rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--graphite);
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pale-blue);
}

.footer-address strong {
  color: var(--coral);
}

.footer-links h4, .footer-legal h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-links ul, .footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-legal a {
  color: var(--pale-blue);
  transition: color 0.15s ease;
}

.footer-links a:hover, .footer-legal a:hover {
  color: var(--coral);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--pale-blue);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  background-color: #ffffff;
  border: var(--border-thick) solid var(--midnight);
  box-shadow: 8px 8px 0px var(--midnight);
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-title {
  font-size: 1.3rem;
  color: var(--midnight);
  text-transform: uppercase;
  margin: 0;
}

.cookie-desc {
  font-size: 0.9rem;
  color: var(--graphite);
  line-height: 1.4;
}

.cookie-desc a {
  color: var(--cobalt);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  min-width: 110px;
}

.cookie-btn-secondary {
  background-color: var(--pale-blue);
  color: var(--midnight);
}

.cookie-btn-secondary:hover {
  background-color: var(--graphite);
  color: #ffffff;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1200px) {
  .container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 992px) {
  .poster-strip {
    grid-template-columns: 80px 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  .strip-notes {
    grid-column: 1 / span 3;
    padding-left: 0;
    border-top: 2px dashed var(--pale-blue);
    padding-top: 0.75rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cobalt);
    border-top: var(--border-thick) solid var(--midnight);
    border-bottom: var(--border-thick) solid var(--midnight);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-title span {
    font-size: 2.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .full-date-band {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-title span {
    font-size: 2.2rem;
  }
  .poster-strip {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: center;
  }
  .strip-versus-data {
    border-left: none;
    border-right: none;
    border-top: 2px solid var(--pale-blue);
    border-bottom: 2px solid var(--pale-blue);
    padding: 0.75rem 0;
  }
  .strip-teams {
    padding-left: 0;
  }
  .strip-team-row {
    padding-right: 0;
    justify-content: center;
    gap: 1rem;
  }
  .strip-notes {
    grid-column: 1;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}