/* Design tokens — Playful / Friendly palette */
:root {
  --primary:    #FF6B6B;
  --secondary:  #4ECDC4;
  --accent:     #FFD166;
  --bg:         #FFFDF7;
  --surface:    #FFFFFF;
  --text:       #2D2A32;
  --muted:      #9B96A3;
  --border:     #FCE3D6;
  --success:    #43C59E;
  --warning:    #FFB703;
  --danger:     #FF5C8A;
  --radius-pill: 9999px;
  --radius-card: 1.5rem;
  --shadow-soft: 0 4px 24px rgba(255, 107, 107, 0.12);
}

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

html, body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Top nav */
.app-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(255, 107, 107, 0.08);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-logo { font-size: 1.75rem; }

.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 130px);
  padding: 2rem 1.5rem 1rem;
  gap: 1.5rem;
  text-align: center;
}

.hello-world {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--primary);
  text-shadow: 3px 3px 0 var(--accent);
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Dog image */
.dog-container {
  width: min(520px, 90vw);
  height: min(360px, 56vw);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fade-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

/* Button */
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.45);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
}

/* HTMX loading spinner */
.spinner {
  font-size: 1.5rem;
  display: none;
  animation: spin 0.8s linear infinite;
}

.htmx-request .spinner,
.htmx-request.spinner { display: inline-block; }

/* Footer */
.app-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-text {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Animations */
@keyframes bounce-in {
  from { opacity: 0; transform: scale(0.7) translateY(-20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fade-pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
