/* ===== Material Design 3 - Formula 1 2026 ===== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary - F1 Red */
  --md-sys-color-primary: #E10600;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #FFDAD5;
  --md-sys-color-on-primary-container: #410001;
  
  /* Secondary */
  --md-sys-color-secondary: #775652;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #FFDAD5;
  --md-sys-color-on-secondary-container: #2C1512;
  
  /* Tertiary */
  --md-sys-color-tertiary: #FFB300;
  --md-sys-color-on-tertiary: #000000;
  --md-sys-color-tertiary-container: #FFDDB3;
  --md-sys-color-on-tertiary-container: #2B1700;
  
  /* Error */
  --md-sys-color-error: #BA1A1A;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #FFDAD6;
  --md-sys-color-on-error-container: #410002;
  
  /* Background & Surface */
  --md-sys-color-background: #0A0A0A;
  --md-sys-color-on-background: #E6E1E5;
  --md-sys-color-surface: #1C1B1F;
  --md-sys-color-on-surface: #E6E1E5;
  --md-sys-color-surface-variant: #49454F;
  --md-sys-color-on-surface-variant: #CAC4D0;
  --md-sys-color-surface-dim: #141218;
  --md-sys-color-surface-bright: #3B383E;
  
  /* Outline */
  --md-sys-color-outline: #938F99;
  --md-sys-color-outline-variant: #49454F;
  
  /* Inverse */
  --md-sys-color-inverse-surface: #E6E1E5;
  --md-sys-color-inverse-on-surface: #1C1B1F;
  --md-sys-color-inverse-primary: #E10600;
  
  /* Elevation */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
  --md-sys-elevation-level4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3);
  --md-sys-elevation-level5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3);
  
  /* Shape */
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;
  
  /* Motion */
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
  --md-sys-motion-duration-short: 200ms;
  --md-sys-motion-duration-medium: 300ms;
  --md-sys-motion-duration-long: 400ms;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== Top App Bar ===== */
.md-top-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-level2);
  z-index: 100;
}

.md-top-app-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 4px 0 16px;
}

.md-top-app-bar-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-top-app-bar-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-left: 12px;
}

.f1-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--md-sys-color-primary);
  letter-spacing: 2px;
}

.f1-season {
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

.md-icon-button {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  border-radius: var(--md-sys-shape-corner-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.md-icon-button:hover {
  background-color: rgba(202, 196, 208, 0.08);
}

.md-icon-button:active {
  background-color: rgba(202, 196, 208, 0.12);
}

/* ===== Navigation Drawer ===== */
.md-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-level1);
  transform: translateX(-100%);
  transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
  z-index: 99;
  overflow-y: auto;
}

.md-drawer.open {
  transform: translateX(0);
}

.md-drawer-content {
  padding: 16px 0;
}

.md-drawer-header {
  padding: 16px 28px 24px;
}

.md-drawer-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.md-drawer-subtitle {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.md-list {
  display: flex;
  flex-direction: column;
}

.md-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  cursor: pointer;
}

.md-list-item:hover {
  background-color: rgba(202, 196, 208, 0.08);
}

.md-list-item.active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.md-list-item-icon {
  font-size: 24px;
}

.md-list-item-text {
  font-size: 14px;
  font-weight: 500;
}

.md-divider {
  height: 1px;
  background-color: var(--md-sys-color-outline-variant);
  margin: 8px 0;
}

/* ===== Scrim (Overlay) ===== */
.md-scrim {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
  z-index: 98;
}

.md-scrim.visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== Main Content ===== */
.md-content {
  margin-top: 64px;
  padding: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--md-sys-color-on-background);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===== Cards ===== */
.md-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  box-shadow: var(--md-sys-elevation-level1);
  padding: 16px;
  transition: box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.md-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

/* Next Race Card */
.next-race-container {
  margin-bottom: 32px;
}

.next-race-card {
  background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #8B0000 100%);
  color: var(--md-sys-color-on-primary);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  box-shadow: var(--md-sys-elevation-level3);
}

.next-race-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.next-race-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.next-race-circuit {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.next-race-date {
  font-size: 14px;
  opacity: 0.8;
}

.countdown-timer {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.countdown-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* Races Grid */
.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.race-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 20px;
  box-shadow: var(--md-sys-elevation-level1);
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  cursor: pointer;
  border-left: 4px solid var(--md-sys-color-primary);
}

.race-card:hover {
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-2px);
}

.race-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.race-round {
  font-size: 12px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.race-flag {
  font-size: 32px;
}

.race-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.race-circuit {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
}

.race-date {
  font-size: 14px;
  color: var(--md-sys-color-primary);
  font-weight: 500;
}

.race-info {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.race-info-item {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
}

.race-info-value {
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

/* Teams Grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.team-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 20px;
  box-shadow: var(--md-sys-elevation-level1);
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--team-color);
}

.team-card:hover {
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-2px);
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.team-full-name {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 16px;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.team-info-label {
  color: var(--md-sys-color-on-surface-variant);
}

.team-info-value {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}

.team-championships {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-championships-icon {
  color: var(--md-sys-color-tertiary);
}

.team-championships-text {
  font-size: 14px;
  color: var(--md-sys-color-on-surface);
}

/* Drivers Grid */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.driver-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 20px;
  box-shadow: var(--md-sys-elevation-level1);
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  cursor: pointer;
}

.driver-card:hover {
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-2px);
}

.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.driver-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--md-sys-color-outline-variant);
  line-height: 1;
}

.driver-flag {
  font-size: 32px;
}

.driver-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.driver-team {
  font-size: 14px;
  color: var(--md-sys-color-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.driver-stat {
  text-align: center;
}

.driver-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  display: block;
}

.driver-stat-label {
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
}

/* Standings */
.standings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.md-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.md-tab:hover {
  background-color: rgba(202, 196, 208, 0.08);
}

.md-tab.active {
  color: var(--md-sys-color-primary);
  border-bottom-color: var(--md-sys-color-primary);
}

.standings-table-container {
  display: none;
}

.standings-table-container.active {
  display: block;
}

.standings-table {
  width: 100%;
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
}

.standings-table thead {
  background-color: var(--md-sys-color-surface-variant);
}

.standings-table th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-table td {
  padding: 16px;
  font-size: 14px;
  color: var(--md-sys-color-on-surface);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.standings-table tr:hover {
  background-color: rgba(202, 196, 208, 0.08);
}

.standings-position {
  font-weight: 700;
  font-size: 16px;
}

.standings-name {
  font-weight: 500;
}

.standings-points {
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

/* About Section */
.about-content {
  max-width: 800px;
}

.about-card {
  padding: 24px;
  margin-bottom: 24px;
}

.about-card h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 16px;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-spec-item {
  padding: 16px;
  background-color: var(--md-sys-color-surface-variant);
  border-radius: var(--md-sys-shape-corner-small);
}

.tech-spec-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
}

.tech-spec-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-spec-detail {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

/* FAB */
.md-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border: none;
  box-shadow: var(--md-sys-elevation-level3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
}

.md-fab.visible {
  opacity: 1;
  pointer-events: all;
}

.md-fab:hover {
  box-shadow: var(--md-sys-elevation-level4);
}

/* Snackbar */
.md-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  border-radius: var(--md-sys-shape-corner-extra-small);
  padding: 14px 16px;
  box-shadow: var(--md-sys-elevation-level3);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 344px;
  max-width: 672px;
  opacity: 0;
  transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
  z-index: 110;
}

.md-snackbar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.md-snackbar-text {
  flex: 1;
  font-size: 14px;
}

.md-snackbar-action {
  background: transparent;
  border: none;
  color: var(--md-sys-color-inverse-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-corner-extra-small);
}

.md-snackbar-action:hover {
  background-color: rgba(225, 6, 0, 0.08);
}

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--md-sys-color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 1;
  transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.md-circular-progress {
  width: 48px;
  height: 48px;
  animation: rotate 2s linear infinite;
}

.md-circular-progress circle {
  fill: none;
  stroke: var(--md-sys-color-primary);
  stroke-width: 4;
  stroke-dasharray: 113;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 113;
  }
  50% {
    stroke-dashoffset: 28;
  }
  100% {
    stroke-dashoffset: 113;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .md-content {
    padding: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .races-grid,
  .teams-grid,
  .drivers-grid {
    grid-template-columns: 1fr;
  }
  
  .md-fab {
    bottom: 16px;
    right: 16px;
  }
  
  .md-snackbar {
    min-width: auto;
    max-width: calc(100vw - 32px);
  }
  
  .countdown-timer {
    gap: 8px;
  }
  
  .countdown-value {
    font-size: 24px;
  }
}

@media (min-width: 769px) {
  .md-drawer {
    transform: translateX(0);
  }
  
  .md-content {
    margin-left: 280px;
  }
  
  #menu-button {
    display: none;
  }
  
  .md-scrim {
    display: none;
  }
}

/* ===== Wiki Section ===== */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wiki-icon {
  font-size: 48px;
  margin-bottom: 16px;
  text-align: center;
}

.md-card-text {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.record-card .md-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.record-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.record-info {
  flex: 1;
}

.record-name {
  font-weight: 500;
  font-size: 16px;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.record-desc {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===== Analytics Section ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card .md-card-content {
  text-align: center;
  padding: 24px 16px;
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.progress-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 12px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--md-sys-color-surface-variant);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background-color: var(--md-sys-color-primary);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.upcoming {
  background-color: var(--md-sys-color-secondary);
}

.progress-text {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.geography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.geography-card .md-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.geography-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.geography-info {
  flex: 1;
}

.geography-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.geography-count {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

.analytics-article {
  margin-bottom: 24px;
}

.article-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 24px;
}

.article-section {
  margin-bottom: 24px;
}

.article-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  margin-bottom: 12px;
}

.article-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 12px;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  background-color: var(--md-sys-color-surface-variant);
  border-radius: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 24px;
}

.stat-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

/* ===== About Section ===== */
.about-content {
  max-width: 900px;
}

.about-card {
  padding: 24px;
}

.about-card h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 24px;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-spec-item {
  padding: 16px;
  background-color: var(--md-sys-color-surface-variant);
  border-radius: 8px;
}

.tech-spec-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-primary);
  margin-bottom: 12px;
}

.tech-spec-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-spec-detail {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
  padding-left: 16px;
  position: relative;
}

.tech-spec-detail::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--md-sys-color-primary);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .wiki-grid,
  .records-grid,
  .stats-grid,
  .geography-grid {
    grid-template-columns: 1fr;
  }
  
  .article-stats {
    grid-template-columns: 1fr;
  }
}
