/* Mario Kart Tour Decline Archive - Styles */
html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(135deg, #c8102e, #f57c00);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.site-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 600;
}

.site-header nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.site-header nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.section {
  padding: 1rem;
}

.section h2 {
  color: #c8102e;
  margin-top: 0;
  border-bottom: 2px solid #f57c00;
  padding-bottom: 0.5rem;
  font-size: 1.5rem;
}

.timeline-event {
  border-left: 4px solid #c8102e;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.timeline-event time {
  font-weight: 600;
  color: #f57c00;
  display: block;
  margin-bottom: 0.25rem;
}

.community-quote {
  background: #fff8e1;
  border-left: 4px solid #f57c00;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.community-quote blockquote {
  margin: 0;
  font-style: italic;
}

.playstyle-selector fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.playstyle-selector legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.playstyle-selector label {
  display: block;
  margin: 0.25rem 0;
}

.game-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-card h3 {
  margin-top: 0;
  color: #c8102e;
  font-size: 1.1rem;
}

.game-card p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: #f57c00;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn:hover {
  background: #e65c00;
}

.guide-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.guide-card h3 {
  margin-top: 0;
  color: #c8102e;
  font-size: 1.1rem;
}

sidebar .sidebar {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  height: fit-content;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #c8102e;
}

.small-btn {
  display: block;
  background: #c8102e;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  text-align: center;
  border-radius: 4px;
  margin: 0.25rem 0;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.small-btn:hover {
  background: #a00e24;
}

.ad-placeholder {
  background: #e0e0e0;
  height: 60px;
  border-radius: 4px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
}

.site-footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  margin-top: auto;
}

.site-footer a {
  color: #f57c00;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.5rem;
  }
  
  .site-header nav a {
    display: block;
    margin: 0.3rem;
    text-align: center;
  }
  
  main {
    padding: 0 0.5rem;
  }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
