/* ===== Shellel Web Design System ===== */
/* Matches the mobile app: hand-drawn borders, Gaegu font, sketch aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- Tokens (from app tailwind config + code) --- */
:root {
  --primary: #2DB67D;
  --bg: #FCFBF8;
  --ink: #1A1D1E;
  --white: #ffffff;
  --text: #1A2B3D;
  --text-muted: #5A6E7F;
  --slate-400: #94a3b8;
  --amber: #E8944A;
  --gold: #F5B731;
  --rose: #E06B8F;

  --font-hand: 'Gaegu', cursive;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --sketch-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sketch-shadow: 4px 4px 0px 0px rgba(45, 182, 125, 0.2);
  --sketch-shadow-hard: 4px 4px 0px 0px rgba(26, 29, 30, 1);
}

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

body {
  font-family: var(--font-hand);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.3;
}

p, ul, ol { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* --- Sketch Border Classes (from app code) --- */
.sketch-border {
  border: 2px solid var(--ink);
  border-radius: var(--sketch-radius);
}

.sketch-border-primary {
  border: 3px solid var(--primary);
  border-radius: var(--sketch-radius);
}

.sketch-shadow { box-shadow: var(--sketch-shadow); }
.sketch-shadow-hard { box-shadow: var(--sketch-shadow-hard); }

/* --- Speech Bubble (from app's plan screen) --- */
.speech-bubble {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--sketch-radius);
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* --- Sketch Button (matches app "Continue" buttons) --- */
.sketch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--sketch-radius);
  box-shadow: var(--sketch-shadow-hard);
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.sketch-btn:hover {
  background: rgba(45, 182, 125, 0.05);
  text-decoration: none;
}

.sketch-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--ink);
}

.sketch-btn--primary {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--sketch-shadow);
}

/* --- Site Header --- */
.site-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
}

.site-header a {
  text-decoration: none;
}

.site-header .logo-text {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- Site Footer (matches app bottom border style) --- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 2px solid var(--ink);
  font-size: 1rem;
}

.site-footer nav {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--primary);
  font-weight: 700;
}

.site-footer .copyright {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* --- Content Page (privacy, terms, delete) --- */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content-page .page-title {
  font-size: 2.2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.25rem;
}

.content-page .updated {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.content-page .intro-bubble {
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.content-page .content-card {
  background: var(--white);
  padding: 2rem;
}

.content-page .content-card h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page .content-card h2:first-child {
  margin-top: 0;
}

.content-page .content-card p,
.content-page .content-card li {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-page .content-card strong {
  color: var(--ink);
}

.content-page .content-card a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(45, 182, 125, 0.3);
  text-underline-offset: 3px;
}

.content-page .content-card a:hover {
  text-decoration-color: var(--primary);
}

/* --- Floating Doodles --- */
.doodle-float {
  position: absolute;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  color: var(--primary);
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

.anim-float-y { animation: float-y 5s ease-in-out infinite; }
.anim-float-x { animation: float-x 6s ease-in-out infinite; }
.anim-wobble  { animation: wobble  4s ease-in-out infinite; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-header { padding: 0.75rem 1rem; }
  .content-page { padding: 1.5rem 1rem; }
  .content-page .content-card { padding: 1.5rem 1.25rem; }
  .content-page .page-title { font-size: 1.8rem; }
}
