@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah:wght@400&display=swap');

/* CSS Custom Properties */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 0%);
  --card: hsl(0, 0%, 98%);
  --card-foreground: hsl(0, 0%, 5%);
  --primary: hsl(320, 91%, 61%); /* #ff3bb6 */
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(107, 100%, 71%); /* #6BFF7A */
  --secondary-foreground: hsl(0, 0%, 0%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 45%);
  --border: hsl(0, 0%, 89%);
  --radius: 0.5rem;
}

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

body {
  font-family: 'Gloria Hallelujah', system-ui, sans-serif;
  background: var(--background) url('/assets/scribble.svg');
  color: var(--foreground);
  line-height: 1.6;
}

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

/* Typography */
.text-pink {
  color: var(--primary);
}

.text-green {
  color: var(--secondary);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--foreground);
  z-index: 50;
  padding: 1rem 0;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: 3px solid var(--foreground);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  animation: jitter 0.3s ease-in-out infinite;
}

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

.btn-primary:hover {
  box-shadow: 0 5px 15px hsla(320, 91%, 61%, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  box-shadow: 0 5px 15px hsla(107, 100%, 71%, 0.3);
}

.btn-share {
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-face {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
  border-radius: 1rem;
  border: 3px solid var(--foreground);
}

/* Cards */
.card {
  background: var(--card);
  border: 3px solid var(--foreground);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px dashed var(--muted-foreground);
  border-radius: 1rem;
  opacity: 0.3;
}

.card:nth-child(odd) {
  transform: rotate(-1deg);
}

.card:nth-child(even) {
  transform: rotate(1deg);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Lore */
.lore-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Pill */
.pill-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.pill {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: 4px solid var(--foreground);
  border-radius: 50px;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pill:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 59, 182, 0.3);
  animation: jitter 0.3s ease-in-out infinite;
}

.ca-display {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

#ca-address {
  font-family: monospace;
  font-size: 0.875rem;
}

/* Motivation Notes */
.shuffle-container {
  text-align: center;
  margin-bottom: 2rem;
}

.notes {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.note {
  background: #fff3cd;
  border: 2px solid var(--foreground);
  border-radius: 0.5rem;
  padding: 1rem;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

.note:nth-child(2) {
  background: #d1ecf1;
  transform: rotate(1deg);
}

.note:nth-child(3) {
  background: #f8d7da;
  transform: rotate(-0.5deg);
}

.note:nth-child(4) {
  background: #d4edda;
  transform: rotate(1.5deg);
}

/* Meter */
.meter {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.meter-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: var(--muted);
  outline: none;
  border-radius: 10px;
  border: 3px solid var(--foreground);
  margin: 1rem 0;
}

.meter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: 3px solid var(--foreground);
  border-radius: 50%;
  cursor: pointer;
}

.meter-slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: 3px solid var(--foreground);
  border-radius: 50%;
  cursor: pointer;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.meter-reaction {
  margin: 2rem 0;
}

.reaction-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.reaction-text {
  font-size: 1.25rem;
  font-weight: bold;
}

.danger-warning {
  background: var(--card);
  border: 4px solid #ff0000;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  animation: shake 0.5s ease-in-out infinite;
}

.danger-warning .warning-text {
  color: #ff0000;
  font-weight: bold;
  font-size: 1.25rem;
}

.hidden {
  display: none;
}

/* Community */
.community-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.community-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.3s ease;
}

.community-card:hover {
  background: var(--muted);
  transform: rotate(0deg) scale(1.05);
}

.community-subtitle {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Divider */
.divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--muted-foreground);
}

.squiggle {
  width: 200px;
  height: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.toast {
  background: var(--card);
  border: 3px solid var(--foreground);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: bold;
  animation: wobble 0.6s ease-out;
}

/* Animations */
@keyframes jitter {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-1px) rotate(-0.5deg); }
  50% { transform: translateX(1px) rotate(0.5deg); }
  75% { transform: translateX(-0.5px) rotate(-0.2deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  75% { transform: rotate(-1.5deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.wobble-in {
  animation: wobble 0.6s ease-out;
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-face {
    max-width: 420px;
  }
  
  .notes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .community-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-face {
    max-width: 520px;
  }
}

/* Scroll Animations */
.scroll-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-in.visible {
  opacity: 1;
  transform: translateY(0);
}
