/* 🍒 Cherry Chapeau — Restyle v6 (Feedback verwerkt) */

/* ── CSS Custom Properties ─────────── */

:root {
  /* Cherry reds — README: #A22332, emoji: #C92A2E */
  --cherry: #A22332;
  --cherry-light: #C92A2E;
  --cherry-hover: #8B1E2B;
  --cherry-pale: #F4D5D9;
  --cherry-glow: rgba(162, 35, 50, 0.08);
  --cherry-glow-strong: rgba(162, 35, 50, 0.14);

  /* Cherry tints — zachte varianten van vector #C92A2E */
  --cherry-soft: #F2C4C8;
  --cherry-blush: #F9E8EA;

  /* Warm neutrals — README: #FFF8ED, #4B3A3A */
  --cream: #FFF8ED;
  --brown: #4B3A3A;
  --brown-light: #6B5A5A;
  --brown-muted: #8B7D72;

  /* Utility */
  --white: #FFFFFF;
  --white-soft: #FFFAF5;
}

/* ── Reset & Base ──────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--brown);
  background: var(--cream);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ── Subtle Background Texture ─────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(162, 35, 50, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(75, 58, 58, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(162, 35, 50, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Typography ────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Amiri', Georgia, 'Times New Roman', serif;
  color: var(--brown);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.88rem; }

a {
  color: var(--cherry);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cherry-hover);
}

::selection {
  background: rgba(162, 35, 50, 0.15);
  color: var(--brown);
}

/* ── Hero Section ─────────────────── */

.hero-section {
  padding: 5rem 2rem 4rem;
  background: var(--cherry);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Subtle cherry watermark in hero background */
.hero-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 280px;
  height: 280px;
  background-image: url('img/cherry-emoji-design-vector.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--cherry-pale), transparent);
  opacity: 0.4;
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 8px rgba(244, 213, 217, 0.25), 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hero-profile:hover {
  box-shadow: 0 0 0 12px rgba(244, 213, 217, 0.4), 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
}

.hero-inner h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--cherry-pale);
  font-family: 'Amiri', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  max-width: 500px;
}

/* ── Section Styling ──────────────── */

.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Alternating section backgrounds */
#about {
  background: var(--cream);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#about > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* What to Expect — soft cherry section */
#expect {
  background: var(--cherry-soft);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#expect > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Books section */
#books {
  background: var(--cherry-blush);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#books > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Links section */
.links-section {
  background: var(--cherry) !important;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.links-section > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--brown);
  font-weight: 400;
}

/* Custom cherry emoji as section-title decoration */
.section-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 0.75rem auto 0;
  background-image: url('img/cherry-emoji-design-vector.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
}

.links-section .section-title::after {
  opacity: 0.9;
  filter: none;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 50%;
  background-color: #fff;
  background-origin: content-box;
}

/* ── About Section ────────────────── */

.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  color: var(--brown-light);
}

.about-text p + p {
  margin-top: 1.25rem;
}

/* ── What to Expect ───────────────── */

.expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.75rem;
  text-align: center;
}

.expect-item {
  padding: 2rem 1.25rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(162, 35, 50, 0.08);
  box-shadow: 0 2px 12px rgba(162, 35, 50, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.expect-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px var(--cherry-glow);
  border-color: rgba(162, 35, 50, 0.2);
}

.expect-item .expect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cherry-pale);
  color: var(--cherry);
  margin-bottom: 1rem;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.expect-item:hover .expect-icon {
  background: var(--cherry);
  color: var(--white);
  box-shadow: 0 0 20px var(--cherry-glow);
}

.expect-item h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--brown-light);
  line-height: 1.5;
}

/* ── Books Section ────────────────── */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.book-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(162, 35, 50, 0.12);
  box-shadow: 0 2px 12px rgba(162, 35, 50, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  color: inherit;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 35, 50, 0.25);
  box-shadow: 0 8px 28px rgba(162, 35, 50, 0.12);
  color: inherit;
}

.book-card img {
  width: 100%;
  height: auto;
  display: block;
}

.book-card-body {
  padding: 1.5rem;
}

.book-card-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  color: var(--brown);
  font-weight: 400;
}

.book-card-body .book-subtitle {
  font-size: 0.85rem;
  color: var(--cherry);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.book-card-body .book-meta {
  font-size: 0.82rem;
  color: var(--brown-light);
  line-height: 1.6;
}

.book-card-body .book-tags {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Single tag icon before the tag list */
.book-card-body .book-tags::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--brown-muted);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.55;
  flex-shrink: 0;
}

.book-card-body .book-tags span {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  color: var(--brown-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(162, 35, 50, 0.1);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.book-card-body .book-tags span:hover {
  background: var(--cherry-pale);
  color: var(--cherry);
  border-color: rgba(162, 35, 50, 0.25);
}

/* Coming Soon card */

.book-card.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--white-soft);
  border: 2px dashed rgba(162, 35, 50, 0.2);
  cursor: default;
}

.book-card.coming-soon:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 35, 50, 0.35);
  box-shadow: 0 8px 28px rgba(162, 35, 50, 0.1);
}

.book-card.coming-soon .coming-soon-text {
  text-align: center;
  color: var(--cherry);
  opacity: 0.7;
}

.book-card.coming-soon .coming-soon-text .cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--cherry);
}

.book-card.coming-soon .coming-soon-text h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--cherry);
  font-weight: 400;
}

.book-card.coming-soon .coming-soon-text p {
  font-size: 0.85rem;
  color: var(--brown-muted);
  margin-top: 0.3rem;
}

/* ── Links Section ────────────────── */

.links-section {
  text-align: center;
}

.links-section .section-title,
.links-section p {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-section .section-title {
  color: var(--white);
}

.links-section p {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.links-section .wattpad-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--white);
  color: var(--cherry);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.links-section .wattpad-link:hover {
  background: var(--white-soft);
  color: var(--cherry-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.links-section .wattpad-link svg {
  flex-shrink: 0;
}

/* ── Footer ───────────────────────── */

.site-footer {
  background: var(--brown);
  border-top: 3px solid var(--cherry);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  color: var(--cream);
}

/* ── Focus States (Accessibility) ─── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Print Styles ─────────────────── */

@media print {
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  body::before {
    display: none;
  }

  .hero-section {
    background: none;
    padding: 2rem 0;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-inner h1,
  .hero-tagline {
    color: #000;
  }

  .links-section {
    background: none !important;
  }

  .links-section .section-title,
  .links-section p {
    color: #000;
  }

  .wattpad-link {
    background: none;
    color: #000;
    border: 1px solid #000;
    box-shadow: none;
  }

  .site-footer {
    background: none;
    color: #000;
    border-top: 1px solid #000;
  }
}

/* ── Responsive ───────────────────── */

@media (max-width: 1024px) {
  .hero-inner h1 {
    font-size: 2.6rem;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-section::before {
    top: -20px;
    right: -40px;
    width: 180px;
    height: 180px;
    opacity: 0.05;
  }

  .hero-profile {
    width: 150px;
    height: 150px;
  }

  .hero-inner h1 {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
    max-width: none;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  #about > *,
  #expect > *,
  #books > * {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .expect-item {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-section::before {
    width: 120px;
    height: 120px;
    top: -10px;
    right: -30px;
  }

  .hero-profile {
    width: 130px;
    height: 130px;
  }

  .hero-inner h1 {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  #about > *,
  #expect > *,
  #books > * {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .expect-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-text {
    font-size: 1rem;
  }

  .links-section .wattpad-link {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}