/* MyAutoEvents - Motorsport editorial custom CSS */

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

:root {
  --red: #E53935;
  --red-dark: #C62828;
  --slate: #263238;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --text: #1A1A1A;
  --text-light: #546E7A;
  --border: #E0E0E0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* Header */
.mae-header {
  background: var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mae-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

.mae-brand {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3em;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mae-brand:hover { color: var(--red); }

.mae-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 1.25em;
}

.mae-nav a:hover, .mae-nav a.active { color: var(--red); }

.mae-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, var(--slate) 40%);
}

/* Content */
.mae-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2em 1.5em 3em;
}

h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.1em;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75em;
  line-height: 1.2;
}

h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text);
  margin: 1.75em 0 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--red);
}

h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--slate);
  margin: 1.5em 0 0.4em;
}

p { margin-bottom: 1.25em; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1.25em 1.5em; }
li { margin-bottom: 0.4em; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em 0;
  display: block;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* Prep box */
.prep-box {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
  border-radius: 0 4px 4px 0;
}

.prep-box h3 {
  margin-top: 0;
  font-size: 1em;
  color: var(--red-dark);
  border-bottom: none;
}

.prep-box p:last-child { margin-bottom: 0; }

/* Checklist */
.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25em 1.5em;
  margin: 1.75em 0;
}

.checklist h3 {
  margin-top: 0;
  color: var(--slate);
}

.checklist ul {
  list-style: none;
  margin-left: 0;
}

.checklist li {
  padding: 0.3em 0;
  padding-left: 1.5em;
  position: relative;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
}

/* Event card (for hub pages) */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25em 1.5em;
  margin-bottom: 1em;
  transition: border-color 0.15s;
}

.event-card:hover { border-color: var(--red); }

.event-card h3 {
  margin: 0 0 0.3em;
  font-size: 1.05em;
}

.event-card h3 a { color: var(--text); }
.event-card h3 a:hover { color: var(--red); text-decoration: none; }

.event-card p {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Hub list */
.hub-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.hub-list li {
  padding: 0.75em 0;
  border-bottom: 1px solid var(--border);
}

.hub-list li:last-child { border-bottom: none; }

.hub-list a {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 1.05em;
}

.hub-list .desc {
  display: block;
  font-size: 0.9em;
  color: var(--text-light);
  margin-top: 0.2em;
}

/* Homepage grid */
.mae-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  margin: 2em 0;
}

/* Footer */
.mae-footer {
  background: var(--slate);
  padding: 2em 0;
  margin-top: 3em;
}

.mae-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5em;
  text-align: center;
}

.mae-footer-links { margin-bottom: 1em; }

.mae-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0.75em;
}

.mae-footer-links a:hover { color: var(--red); }

.mae-footer-copy { color: rgba(255,255,255,0.25); font-size: 0.75em; }

/* Responsive */
@media (max-width: 700px) {
  .mae-header-inner { flex-direction: column; align-items: flex-start; }
  .mae-nav a { margin-left: 0; margin-right: 0.75em; font-size: 0.78em; }
  h1 { font-size: 1.6em; }
  .mae-content { padding: 1.5em 1em 2em; }
  .mae-grid { grid-template-columns: 1fr; }
}
