/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
html {
  height: 100%;
}

body {
  min-height: 100%;
  background: #0f0f10;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.9s ease, background 0.5s ease;
}

.site-header.scrolled {
  background: rgb(0, 0, 0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 75px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item {
  position: relative;
}

.nav-links a {
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #ff2b2b;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-item-dropdown .nav-link::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: #ff2b2b;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-dropdown:hover .nav-link::after,
.nav-item-dropdown:focus-within .nav-link::after {
  opacity: 1;
  transform: translateY(-1px) rotate(180deg);
}

.cta {
  background: #ff2b2b;
  color: white;
  padding: clamp(0.5rem, 0.75vw, 0.7rem);
  border-radius: 999px;
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.cta:hover {
  transform: scale(0.96);
}

.cta:active {
  transform: scale(0.92);
}

/* ===== PAGE TEMPLATE ===== */
.page-main {
  padding-top: 100px;
}

.page-hero {
  padding: 70px 0 36px;
  background: radial-gradient(circle at top, #171717, #0f0f10);
}

.page-kicker {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-description {
  max-width: 700px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.5;
  opacity: 0.82;
}

.page-section {
  padding: 60px 0 100px;
}

/* ===== STATS PAGE ===== */
.section-kicker {
  margin-bottom: 8px;
  color: #ff3b3b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== STATS TOOLBAR ===== */
.stats-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 40px;
  margin-bottom: 32px;
}

.stats-toolbar > div:first-child {
  min-width: 0;
  max-width: 850px;
}

.stats-toolbar h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-toolbar p {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.55;
  opacity: 0.78;
}

.year-filter {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
  margin-top: 28px;
  white-space: nowrap;
}

.year-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  white-space: nowrap;
}

.year-dropdown {
  width: 165px;
  height: 48px;
  padding: 0 44px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #171717;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='white' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.year-dropdown:hover,
.year-dropdown:focus {
  border-color: #ff2b2b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.18);
}

/* ===== STAT CARDS ===== */

.stat-card-grid{
    display:grid;

    width:100%;

    grid-template-columns:
    repeat(4,minmax(324px,1fr));

    gap:18px;

    margin:0 0 34px 0;
}

.stat-card-featured{
    grid-column:auto;
}

.stat-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.stat-card{
    min-height:205px;
    padding:28px;
    overflow:hidden;
    position:relative;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -55px;
  top: -55px;
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.14);
}

.stat-card-featured {
  grid-column: auto;
  background:
    radial-gradient(circle at top right, rgba(255, 43, 43, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.stat-label{
    display:block;
    margin-bottom:14px;

    font-size:.78rem;
    font-weight:900;

    letter-spacing:.12em;
    text-transform:uppercase;

    opacity:.64;
}


.stat-card strong{
    display:block;
    width:100%;

    font-size:clamp(2.3rem,4vw,4.8rem);

    line-height:.9;
    letter-spacing:-.05em;

    white-space:nowrap;
}

.stat-card p{
    width:100%;
    max-width:none;

    margin-top:18px;

    line-height:1.5;
    opacity:.68;
}

/* ===== MAIN LAYOUT ===== */
.stats-layout {
  display: block;
  width: 100%;
}

.stats-main-column{
    width:100%;
    max-width:none;
    display:flex;
    flex-direction:column;
    gap:22px;
}

.panel {
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 43, 43, 0.45);
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.12);
  color: #ff7a7a;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== TOP 5 FIRES TABLE ===== */
.top-fire-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
  -webkit-overflow-scrolling: touch;
}

.top-fire-table {
  width: 100%;
  border-collapse: collapse;
}

.top-fire-table th,
.top-fire-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-fire-table th {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-fire-table td {
  font-size: 0.92rem;
  font-weight: 800;
}

.top-fire-table tr:last-child td {
  border-bottom: none;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.14);
  color: #ff6969;
  font-size: 0.78rem;
  font-weight: 900;
}

/* ===== FIRES WORKED TABLE ===== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.stats-table th,
.stats-table td {
  padding: 16px 12px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-table th {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table td:nth-child(1) {
  width: 28%;
}

.stats-table td:nth-child(2) {
  width: 22%;
}

.stats-table td:nth-child(3),
.stats-table td:nth-child(4),
.stats-table td:nth-child(5) {
  width: 16%;
  white-space: nowrap;
}

.fire-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fire-name strong {
  opacity: 1;
}

.fire-name span {
  color: #ff6969;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.75;
}

.footer-links h3 {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: #ff2b2b;
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 18px 0;
    gap: 16px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .nav-item-dropdown .dropdown-menu {
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    transform: translate(-50%, 0);
  }

  .page-main {
    padding-top: 165px;
  }
}

@media (max-width:1050px){

.stat-card-grid{
    grid-template-columns:
    repeat(2,minmax(0,1fr));
}

}

@media(max-width:760px){

.stat-card-grid{
    grid-template-columns:1fr;
}

}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .stats-toolbar {
    grid-template-columns: 1fr;
  }

  .year-filter {
    justify-self: start;
    margin-top: 0;
  }

  .stat-card-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .stat-card {
    border-radius: 22px;
    padding: 22px;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-fire-table {
    min-width: 640px;
  }

  .stats-table {
    min-width: 720px;
    font-size: 0.82rem;
  }

  .top-fire-table th,
  .top-fire-table td,
  .stats-table th,
  .stats-table td {
    padding: 13px 10px;
  }
}

@media (max-width: 700px) {
  .site-header {
    background: rgba(10, 10, 10, 0.95);
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .logo img {
    height: 62px;
  }

  .nav {
    width: auto;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav.nav-open .nav-menu {
    display: flex;
  }

  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 4px;
  }

  .nav-item-dropdown .nav-link::after {
    opacity: 1;
    transform: rotate(0deg);
  }

  .dropdown-menu {
    position: static;
    left: auto;
    min-width: 0;
    margin-top: 4px;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
  }

  .dropdown-menu a {
    padding: 10px 0 10px 12px;
    font-size: 0.74rem;
    background: transparent;
  }

  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    left: auto;
    transform: none;
  }

  .nav-item-dropdown.submenu-open .dropdown-menu {
    left: auto;
    display: block;
    transform: none;
  }

  .nav-item-dropdown.submenu-open .nav-link::after {
    transform: rotate(180deg);
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .page-main {
    padding-top: 90px;
  }

  .page-hero {
    padding-top: 42px;
  }
}

@media (max-width: 600px) {
  .page-title {
    letter-spacing: 0.1em;
  }

  .page-description {
    font-size: 1rem;
    line-height: 1.35;
  }
}

.year-dropdown {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.year-dropdown:active {
  transform: scale(0.97);
}