/* Hack Club Congressional App Challenge Showcase — Main Styles */

:root {
  --hc-red: #ec3750;
  --hc-orange: #ff8c37;
  --hc-yellow: #f1c40f;
  --hc-green: #33d6a6;
  --hc-cyan: #5bc0de;
  --hc-blue: #338eda;
  --hc-purple: #a633d6;
  --hc-white: #ffffff;
  --hc-snow: #f9fafc;
  --hc-smoke: #e0e6ed;
  --hc-muted: #8492a6;
  --hc-slate: #3c4858;
  --hc-dark: #1f2d3d;
  --hc-darker: #121217;

  --font-body: 'Phantom Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--hc-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--hc-snow);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  min-height: 100%;
}

a {
  color: var(--hc-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Hero — compact banner with CTA */
.hero {
  color: var(--hc-white);
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.03) 10px,
      rgba(255,255,255,0.03) 20px
    ),
    linear-gradient(135deg, var(--hc-red), var(--hc-orange));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: var(--hc-white);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  z-index: 1;
}

.hero-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* Map */
#map {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#map-container {
  width: 100%;
  height: 600px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hc-smoke);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  color: var(--hc-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--hc-smoke);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.015) 3px,
      rgba(0,0,0,0.015) 4px
    );
}

footer kbd {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--hc-smoke);
  border: 1px solid #ccd3db;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem 2rem;
  }

  #map {
    padding: 2rem 1rem;
  }

  #map-container {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  #map-container {
    height: 350px;
  }
}
