@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

/* =============================================
   DESIGN TOKENS - MINT AESTHETIC
   ============================================= */
/* =============================================
   DESIGN TOKENS - PASTEL AESTHETIC
   ============================================= */
:root {
  --bg-mint: #e8f4f8;         /* Soft Pastel Baby Blue */
  --bg-mint-light: #f5fafd;   /* Lighter pastel for lower sections */
  --dark-teal: #576574;       /* Soft slate/grey-blue for text and buttons */
  --coral-red: #ffc3a0;       /* Pastel Peach/Pink */
  --card-white: #ffffff;
  --text-main: #4b6584;       /* Soft navy for main text */
  --text-muted: #8395a7;      /* Muted slate for secondary text */
  
  --radius-pill: 50px;
  --radius-card: 20px;
  --radius-lg: 32px;
  
  --font-heading: 'Fredoka', 'Prompt', sans-serif;
  --font-body: 'Prompt', sans-serif;
  
  --shadow-soft: 0 10px 25px rgba(75, 101, 132, 0.08);
  --shadow-hover: 0 15px 35px rgba(75, 101, 132, 0.15);
}

/* =============================================
   BASE & LAYOUT
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ddeeff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   SWIRL WAVE BACKGROUND
   ============================================= */
.mint-gradient-bg {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #c8e6f9 0%, #ddf0fb 30%, #f0f8ff 60%, #cce4f7 100%);
}

/* Wave blobs using pseudo-elements */
.mint-gradient-bg::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  border-radius: 50% 60% 50% 70% / 50% 50% 60% 60%;
  background: radial-gradient(ellipse at center, rgba(160, 210, 245, 0.75) 0%, rgba(180, 225, 250, 0.4) 50%, transparent 75%);
  filter: blur(40px);
  animation: swirl1 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.mint-gradient-bg::after {
  content: '';
  position: fixed;
  top: 20%;
  right: -25%;
  width: 75%;
  height: 75%;
  border-radius: 70% 50% 60% 50% / 60% 60% 50% 50%;
  background: radial-gradient(ellipse at center, rgba(180, 220, 250, 0.65) 0%, rgba(200, 235, 255, 0.35) 50%, transparent 75%);
  filter: blur(50px);
  animation: swirl2 22s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Extra blob for bottom curve */
.mint-gradient-bg .bg-blob-bottom {
  position: fixed;
  bottom: -20%;
  left: 10%;
  width: 70%;
  height: 60%;
  border-radius: 50% 70% 50% 60% / 60% 50% 70% 50%;
  background: radial-gradient(ellipse at center, rgba(150, 205, 240, 0.55) 0%, rgba(190, 230, 252, 0.25) 55%, transparent 80%);
  filter: blur(55px);
  animation: swirl3 26s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Ribbon arcs - top-left */
.mint-gradient-bg .bg-arc-1 {
  position: fixed;
  top: -15%;
  left: -15%;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  border: 28px solid rgba(140, 200, 240, 0.25);
  filter: blur(6px);
  animation: arcSpin1 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Ribbon arcs - top-right */
.mint-gradient-bg .bg-arc-2 {
  position: fixed;
  top: -10%;
  right: -20%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 22px solid rgba(160, 215, 248, 0.2);
  filter: blur(8px);
  animation: arcSpin2 40s linear infinite reverse;
  z-index: 0;
  pointer-events: none;
}

/* Subtle inner ribbon */
.mint-gradient-bg .bg-arc-3 {
  position: fixed;
  top: 5%;
  right: -5%;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 14px solid rgba(180, 225, 252, 0.18);
  filter: blur(4px);
  animation: arcSpin1 25s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* All content inside must sit above the bg */
.mint-gradient-bg > *:not(.bg-blob-bottom):not(.bg-arc-1):not(.bg-arc-2):not(.bg-arc-3) {
  position: relative;
  z-index: 1;
}

@keyframes swirl1 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(5%, 8%) rotate(20deg) scale(1.08); }
  100% { transform: translate(-4%, 5%) rotate(-15deg) scale(0.95); }
}
@keyframes swirl2 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(-6%, 6%) rotate(-18deg) scale(1.1); }
  100% { transform: translate(4%, -4%) rotate(12deg) scale(0.97); }
}
@keyframes swirl3 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(3%, -5%) rotate(10deg) scale(1.06); }
  100% { transform: translate(-5%, 3%) rotate(-8deg) scale(0.96); }
}
@keyframes arcSpin1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes arcSpin2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =============================================
   TOP NAVBAR (FLOATING, CENTERED)
   ============================================= */
.mint-navbar {
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.mint-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark-teal);
  text-decoration: none;
}
.nav-brand img {
  width: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--dark-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }

.btn-dark-pill {
  background-color: var(--dark-teal);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-dark-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 101, 132, 0.3);
  color: white;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-mint {
  padding: 140px 0 80px 0;
  position: relative;
}

.hero-mint-content {
  max-width: 500px;
}

.hero-mint-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.hero-mint-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-book-stack {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(75, 101, 132, 0.15));
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* =============================================
   PILL FILTERS
   ============================================= */
.filter-section {
  text-align: center;
  margin: 60px 0 40px 0;
}
.filter-section h2 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.8rem;
}
.filter-section p {
  color: var(--text-muted);
  font-weight: 500;
}

.pill-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--dark-teal);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(75, 101, 132, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.filter-pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(75, 101, 132, 0.12);
  background: #ffffff;
}
.filter-pill.active {
  background: linear-gradient(135deg, #81ecec 0%, #74b9ff 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(116, 185, 255, 0.4);
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
}
.filter-pill i { font-size: 1.1rem; transition: transform 0.3s; }
.filter-pill:hover i, .filter-pill.active i { transform: rotate(-10deg) scale(1.1); }

.search-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(75, 101, 132, 0.1);
  transition: all 0.3s ease;
}
.search-pill:focus-within {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(75, 101, 132, 0.15), 0 0 0 3px rgba(116, 185, 255, 0.3); /* Soft blue glow */
  transform: translateY(-2px);
}
.search-pill input {
  border: none; outline: none; background: transparent;
  width: 100%;
  padding: 10px;
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.search-pill input::placeholder {
  color: #a4b0be;
}
.search-pill i {
  font-size: 1.2rem;
  color: var(--dark-teal);
  transition: color 0.3s;
}
.search-pill:focus-within i {
  color: #74b9ff;
}

/* Horizontal Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(75, 101, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  color: var(--dark-teal);
}
.scroll-btn:hover {
  background: var(--bg-mint-light);
  transform: translateY(-50%) scale(1.1);
  color: #74b9ff;
}
.scroll-left { left: -5px; }
.scroll-right { right: -5px; }

/* =============================================
   WHITE BOOK CARDS
   ============================================= */
.books-container {
  padding-bottom: 40px;
}

/* View Count Badge */
.view-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}
.view-badge i { font-size: 0.8rem; }

/* Clickable Cover Link */
.cover-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Hover Overlay on Cover */
.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(87, 101, 116, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}
.cover-overlay span {
  font-size: 1rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}
.cover-link:hover .cover-overlay {
  opacity: 1;
}
.cover-link:hover img {
  transform: scale(1.05);
}

/* Read Now Button */
.btn-read-now {
  background: var(--dark-teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s;
}
.btn-read-now:hover {
  background: #74b9ff;
  color: #fff;
  transform: translateX(3px);
}

/* Stat Mini Cards */
.stat-card-mini {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(75,101,132,0.08);
  transition: transform 0.3s;
}
.stat-card-mini:hover { transform: translateY(-5px); }
.stat-icon {
  font-size: 1.6rem;
  color: #74b9ff;
  margin-bottom: 8px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* Feature Card Icon */
.feat-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 16px;
  opacity: 0.85;
}

.book-card-white {
  background: var(--card-white);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.book-card-white:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.book-cover-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fdfdfd;
}
.book-cover-white {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card-white:hover .book-cover-white {
  transform: scale(1.05);
}

.book-title-white {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author-white {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.book-meta-white {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px dashed rgba(75, 101, 132, 0.15);
  padding-top: 12px;
}

.rating-stars { color: #ffb142; font-size: 0.8rem; letter-spacing: 2px; }

/* =============================================
   3 FEATURE CARDS SECTION
   ============================================= */
.feature-cards-section {
  padding: 80px 0;
}

.feature-title {
  font-family: var(--font-heading);
  color: var(--text-main);
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.feat-card-mint {
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  height: 100%;
  color: var(--text-main);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feat-card-mint:hover { transform: translateY(-10px); }

.feat-card-mint h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.feat-card-mint p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pastel Cards */
.bg-navy { background-color: #dcedc8; } /* Pastel Matcha */
.bg-coral { background-color: #ffccbc; } /* Pastel Peach */
.bg-teal { background-color: #b2ebf2; } /* Pastel Cyan */

/* =============================================
   FOOTER STRIPES
   ============================================= */
.footer-dark-strip {
  background-color: var(--dark-teal);
  color: white;
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-heading);
}

.footer-dark-strip h2 {
  font-size: 2rem;
  font-weight: 600;
}

.footer-light-strip {
  background-color: var(--bg-mint-light);
  padding: 60px 0;
  position: relative;
}
.footer-light-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(75, 101, 132, 0.03) 25%, transparent 25%, transparent 50%, rgba(75, 101, 132, 0.03) 50%, rgba(75, 101, 132, 0.03) 75%, transparent 75%, transparent);
  background-size: 60px 60px;
}

.newsletter-box-mint {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.newsletter-box-mint h3 {
  color: var(--dark-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}
.newsletter-box-mint p { color: var(--text-muted); margin: 5px 0 0 0; }

.newsletter-input-mint {
  display: flex;
  align-items: center;
  background: #f4f9f8;
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 20px;
  width: 400px;
}
.newsletter-input-mint input {
  border: none; background: transparent; outline: none; width: 100%;
  color: var(--dark-teal);
}
.newsletter-input-mint button {
  background: var(--coral-red);
  color: var(--text-main); border: none; border-radius: var(--radius-pill);
  padding: 10px 24px; font-weight: 600;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hero-mint-title { font-size: 2.5rem; }
  .newsletter-box-mint { flex-direction: column; text-align: center; gap: 20px; }
  .newsletter-input-mint { width: 100%; }
}
