/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* Design System Variables */
:root {
  --bg-color: #FDFCF8;
  --text-primary: #1A1A1A;
  --accent-blue: #2B4C7E;
  --highlight-yellow: #F7C948;
  --success-green: #2D5F3F;
  --border-color: #D4C5B9;
  --card-shadow: 4px 4px 0px #D4C5B9;
  --card-shadow-pressed: 2px 2px 0px #D4C5B9;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-family: 'Courier Prime', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--text-primary);
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: white;
  border: 3px solid var(--text-primary);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Neighborhood Cards */
.neighborhood-card {
  cursor: pointer;
  transition: transform 0.1s ease;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.neighborhood-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--card-shadow-pressed);
}

.neighborhood-card:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.neighborhood-name {
  font-family: 'Courier Prime', monospace;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.neighborhood-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.8;
}

.progress-bar {
  background: var(--border-color);
  height: 8px;
  border: 2px solid var(--text-primary);
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent-blue);
  height: 100%;
  transition: width 0.5s ease;
}

/* Discovery Card */
.discovery-card {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spot-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-blue);
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 2px solid var(--text-primary);
}

.spot-name {
  font-family: 'Courier Prime', monospace;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.spot-description {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.spot-address {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: 2px solid var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  transition: all 0.1s ease;
  position: relative;
}

.btn-discover {
  background: var(--highlight-yellow);
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
}

.btn-discover:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--card-shadow-pressed);
}

.btn-discover:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-discovered {
  background: var(--success-green);
  color: white;
  cursor: default;
  box-shadow: none;
}

.btn-discovered:hover {
  transform: none;
}

/* Score Display */
.score-box {
  border: 3px solid var(--text-primary);
  padding: 1rem;
  text-align: center;
  background: white;
  margin-bottom: 1.5rem;
}

.score-number {
  font-family: 'Courier Prime', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.score-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.1s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

/* Counter Animation */
@keyframes countUp {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.score-animate {
  animation: countUp 0.5s ease;
}

/* Mobile Optimization */
@media (max-width: 640px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.25rem;
  }

  .spot-name {
    font-size: 1.5rem;
  }

  .score-number {
    font-size: 2.5rem;
  }
}

/* Loading State */
.loading {
  opacity: 0.5;
  pointer-events: none;
}
