/* ── Google Fonts imported via <link> in layout ── */

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

:root {
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text: #2d2d2d;
  --text-muted: #6b6565;
  --accent: #2ba5b5;
  --accent-dark: #1f8090;
  --accent2: #e8823a;
  --accent2-dark: #c96820;
  --shadow: 0 2px 12px rgba(80, 60, 30, 0.10);
  --shadow-hover: 0 6px 24px rgba(80, 60, 30, 0.18);
  --radius: 10px;
  --font-head: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Lato', 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

img { max-width: 100%; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, #2ba5b5 0%, #1a7f8f 60%, #15606e 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }

.main-nav { display: flex; gap: 1rem; align-items: center; }

.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-link:hover { background: rgba(255,255,255,0.15); text-decoration: none; color: #fff; }

.nav-link-cta {
  background: var(--accent2);
  color: #fff;
  background: linear-gradient(135deg, #e8823a, #c96820);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav-link-cta:hover { background: linear-gradient(135deg, #d6732e, #b55a18); color: #fff; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}

.mobile-nav {
  background: #1a7f8f;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1rem;
  gap: 0.5rem;
}
.mobile-nav .nav-link { color: #fff; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  background: linear-gradient(180deg, #e8f7f9 0%, var(--bg) 100%);
}

.bob-wave {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(16deg); }
  60% { transform: rotate(-8deg); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Sections ── */
.bobs-picks-section { padding: 2.5rem 0 2rem; }
.all-sites-section { padding: 2rem 0 3rem; }

.section-heading {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.picks-heading { color: var(--accent-dark); }

.section-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

/* ── Category Filter Bar ── */
.cat-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.cat-filter-link {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #ddd;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.cat-filter-link:hover, .cat-filter-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Site Cards Grid ── */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.site-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0,0,0,0.05);
}
.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.card-footer { margin-top: auto; }

/* ── Category Badges ── */
.category-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-tool    { background: #dbeafe; color: #1e40af; }
.badge-fun     { background: #fef9c3; color: #854d0e; }
.badge-learning{ background: #dcfce7; color: #166534; }
.badge-creative{ background: #fae8ff; color: #7e22ce; }
.badge-weird   { background: #ffe4e6; color: #9f1239; }
.badge-boring  { background: #e5e7eb; color: #4b5563; }
.badge-default { background: #f3f4f6; color: #374151; }

/* ── Bob's Pick Badge ── */
.bobs-pick-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  box-shadow: 0 1px 4px rgba(251,191,36,0.35);
}
.bobs-pick-badge.starburst {
  position: relative;
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
}

/* ── Visit Buttons ── */
.visit-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(43,165,181,0.25);
  text-decoration: none;
}
.visit-btn:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

.visit-btn-large {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent2-dark));
  color: #fff;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 10px rgba(232,130,58,0.35);
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  margin-top: 1rem;
}
.visit-btn-large:hover { opacity: 0.9; text-decoration: none; transform: translateY(-2px); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #e8823a 0%, #c96820 100%);
  color: #fff;
  text-align: center;
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.cta-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Page Container ── */
.page-container { padding: 2.5rem 1.25rem 3rem; }
.page-container.narrow { max-width: 680px; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); }

/* ── Page Header ── */
.page-header { margin-bottom: 2rem; }
.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-desc { color: var(--text-muted); font-size: 1rem; max-width: 600px; }

/* ── Category Layout ── */
.category-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.category-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 70px;
}
.category-sidebar h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.other-cats { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.other-cat-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
  text-decoration: none;
}
.other-cat-link:hover { background: #f0f9fa; color: var(--accent); text-decoration: none; }

.sidebar-cta {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sidebar-cta p { margin-bottom: 0.6rem; }

.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; }

/* ── Site Profile ── */
.site-profile {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.profile-header { margin-bottom: 1.5rem; }
.profile-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.profile-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.profile-url { font-size: 0.9rem; color: var(--text-muted); }
.profile-url a { color: var(--text-muted); text-decoration: underline; }

.profile-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 680px;
}

/* ── Related Sites ── */
.related-sites { margin-top: 1rem; }
.related-sites h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.see-all-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

/* ── Submit Form ── */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.submit-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
}

.required { color: #dc2626; margin-left: 2px; }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent2-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 3px 10px rgba(232,130,58,0.35);
  transition: opacity 0.2s, transform 0.15s;
  align-self: flex-start;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Success Page ── */
.success-page { text-align: center; }
.success-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  display: inline-block;
  max-width: 480px;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-card h1 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.success-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── Footer ── */
.site-footer {
  background: #1a2b2e;
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem 3rem;
}

.footer-about h3,
.footer-categories h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.footer-categories ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-categories a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-categories a:hover { color: #fff; text-decoration: none; }

.footer-bottom-text {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.footer-bottom-text a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* ── Prose (About / Privacy pages) ── */
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem 0;
  padding-left: 0.5rem;
}

.about-cat-list li {
  font-size: 0.97rem;
  line-height: 1.6;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-grid { grid-template-columns: repeat(2, 1fr); }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .profile-title { font-size: 1.8rem; }
  .form-card { padding: 1.25rem; }
}
