/* =========================================================
   Tips & Tricks Hub — stylesheet
   ========================================================= */

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

:root {
  --bg:          #0d0d1a;
  --bg-alt:      #12122a;
  --surface:     #1a1a32;
  --surface-2:   #22223d;
  --border:      #2e2e52;
  --text:        #e2e2f0;
  --text-muted:  #8888aa;
  --accent-m8:   #00e5cc;
  --accent-race: #f0c040;
  --accent-epl:  #5b9bd5;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.45);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

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

kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.82em;
  font-family: monospace;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,204,0.08) 0%, transparent 60%),
              var(--bg);
}

.hero-content { max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.15s, opacity 0.15s;
}

.badge:hover { transform: translateY(-2px); opacity: 0.85; }

.badge-m8    { background: rgba(0,229,204,0.12); border-color: var(--accent-m8);   color: var(--accent-m8); }
.badge-racing{ background: rgba(240,192,64,0.12); border-color: var(--accent-race); color: var(--accent-race); }
.badge-epl   { background: rgba(91,155,213,0.12); border-color: var(--accent-epl);  color: var(--accent-epl); }

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Coloured top border per section */
#m8    .section-header h2 { color: var(--accent-m8); }
#racing .section-header h2 { color: var(--accent-race); }
#epl   .section-header h2 { color: var(--accent-epl); }

/* ---------- Tips Grid ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#m8    .tip-card:hover { border-color: var(--accent-m8); }
#racing .tip-card:hover { border-color: var(--accent-race); }
#epl   .tip-card:hover { border-color: var(--accent-epl); }

.tip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.tip-tag {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

#m8    .tip-tag { background: rgba(0,229,204,0.15); color: var(--accent-m8); }
#racing .tip-tag { background: rgba(240,192,64,0.15); color: var(--accent-race); }
#epl   .tip-tag { background: rgba(91,155,213,0.15); color: var(--accent-epl); }

.tip-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tip-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: rgba(240,192,64,0.07);
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  color: #ccaa44;
  margin-bottom: 1.75rem;
}

.disclaimer a { text-decoration: underline; color: inherit; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-container { max-width: 900px; margin: 0 auto; }

.footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.footer a { color: var(--accent-m8); text-decoration: underline; }

.footer-disclaimer {
  font-size: 0.78rem;
}

/* ---------- Pattern cards ---------- */
.pattern-pre {
  background: #0a0a18;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: var(--accent-m8);
  overflow-x: auto;
  margin: 0.75rem 0 0.6rem;
  white-space: pre;
  line-height: 1.5;
}

.pattern-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 0.75rem 0 0.6rem;
  display: block;
  image-rendering: pixelated; /* keeps tracker screenshots crisp */
}

/* ---------- Archive page ---------- */
.archive-section {
  margin-bottom: 2.5rem;
}

.archive-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-m8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.archive-grid .tip-card {
  opacity: 0.75;
}

.archive-grid .tip-card:hover {
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 1.2rem; }
  .section-header { flex-direction: column; gap: 0.6rem; }
  .tips-grid { grid-template-columns: 1fr; }
}
