/* TriviaHub Canada - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #D8292F;
  --secondary: #1E293B;
  --background: #F8FAFC;
  --accent: #FBBF24;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --card: #FFFFFF;
  --radius: 0.75rem;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.25rem; }
.logo span.red { color: var(--primary); }
.logo span.dark { color: var(--secondary); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-family: 'Montserrat', sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--text); transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.875rem; transition: opacity 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--text); padding: 0.75rem 2rem;
  border-radius: var(--radius); font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 1rem; transition: opacity 0.2s; border: none; cursor: pointer;
}
.btn-accent:hover { opacity: 0.9; }

/* Hero */
.hero { background: var(--secondary); color: #fff; }
.hero-inner {
  display: flex; align-items: center; gap: 2.5rem;
  padding: 4rem 0;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block; background: rgba(216,41,47,0.2); color: var(--primary);
  padding: 0.25rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .red { color: var(--primary); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; max-width: 32rem; }
.hero-image {
  flex-shrink: 0; width: 280px; height: 280px;
  background: rgba(255,255,255,0.05); border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
}

/* Cards Grid */
.section { padding: 3rem 0; }
.section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
.cat-card .emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.cat-card .name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.875rem; }
.cat-card .count { font-size: 0.75rem; color: var(--muted); }

.quiz-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.quiz-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
.quiz-card .thumb {
  aspect-ratio: 16/10; background: var(--background);
  display: flex; align-items: center; justify-content: center; font-size: 3.75rem;
}
.quiz-card .body { padding: 1.25rem; }
.quiz-card .meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.quiz-card .tag {
  background: rgba(216,41,47,0.1); color: var(--primary);
  padding: 0.125rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.quiz-card .qcount { font-size: 0.75rem; color: var(--muted); }
.quiz-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.125rem;
  line-height: 1.3; margin-bottom: 0.25rem; transition: color 0.2s;
}
.quiz-card:hover h3 { color: var(--primary); }
.quiz-card .desc { font-size: 0.875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Footer */
.footer { background: var(--secondary); color: #fff; }
.footer-inner { padding: 3rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; opacity: 0.8; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(255,255,255,0.5);
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--primary); }

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.legal h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal .date { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }

/* Review pages */
.review-container { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.review-container h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.review-container .review-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.review-container p { margin-bottom: 1rem; }
.review-container h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.review-container ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.review-container li { margin-bottom: 0.5rem; }
.review-container .rating { font-size: 1.5rem; margin-bottom: 1rem; }
.review-container .back-link { display: inline-block; color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; transition: color 0.2s; }
.review-container .back-link:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; padding: 2.5rem 0; }
  .hero p { margin: 0 auto 2rem; }
  .hero-image { width: 200px; height: 200px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
