/* ============================================
   FriendScores — Shared Stylesheet
   ============================================
   Design: Bold, social, clean. Venmo meets GroupMe meets ESPN.
   Color-coding: 1-3 red, 4-6 yellow/orange, 7-10 green.
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --color-bg: #FAFAFA;
  --color-dark: #0F0F0F;
  --color-green: #28C850;
  --color-yellow: #D4D400;
  --color-orange: #F08000;
  --color-red: #DC2020;
  --color-text: #1A1A1A;
  --color-text-muted: #888888;
  --color-border: #E5E5E5;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --border-radius: 12px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.14);
  --transition: all 0.2s ease;
}

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

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

/* ----- Score Color Utilities ----- */
/* Use these classes to color-code scores: 1-3 red, 4-6 yellow, 7-10 green */
.score-red { color: var(--color-red); }
.score-yellow { color: var(--color-yellow); }
.score-orange { color: var(--color-orange); }
.score-green { color: var(--color-green); }

/* ----- Navbar (fixed top, all pages) ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--color-green);
  font-weight: 700;
}

/* Hamburger button (visible only on mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 24px;
  z-index: 999;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile .nav-links {
  flex-direction: column;
  gap: 0;
}

.nav-mobile .nav-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .nav-links a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links:not(.nav-mobile .nav-links) {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }
}

/* ----- Page Main Content ----- */
main {
  padding-top: 64px;
  min-height: 100vh;
}

/* ----- Section Utilities ----- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ----- Cards ----- */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: var(--transition);
}

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

/* ----- Footer ----- */
.footer {
  background: var(--color-dark);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  max-height: 36px;
  width: auto;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
