/* ============================================
   Serenity7Angel - Cute Audiobook Portfolio
   Lightweight · SEO Optimized · Fast Loading
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #ff6b9d;
  --primary-dark: #e85a8a;
  --secondary: #c44dff;
  --accent: #ffd93d;
  --accent-soft: #ffe8a0;
  --bg-gradient-start: #fce4ec;
  --bg-gradient-end: #f3e5f5;
  --bg-main: #fff5f9;
  --text-dark: #2d1b3d;
  --text-soft: #6b4f7c;
  --text-light: #9b83ad;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 8px 32px rgba(107, 79, 124, 0.12);
  --card-hover-shadow: 0 16px 48px rgba(107, 79, 124, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end), #e8eaf6);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Floating Background Elements --- */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatBubble 20s infinite ease-in-out;
}

.bg-bubble:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.bg-bubble:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: -40px;
  right: -40px;
  animation-delay: -5s;
}

.bg-bubble:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--accent);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

.bg-bubble:nth-child(4) {
  width: 100px;
  height: 100px;
  background: var(--primary);
  bottom: 20%;
  left: 10%;
  animation-delay: -15s;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* --- Layout Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(107, 79, 124, 0.08);
  transition: var(--transition);
}

.top-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo .logo-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 157, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  color: white;
  border: none;
  cursor: pointer;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.social-link.tiktok {
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link.youtube {
  background: #ff0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-link.blog {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- CTA Buttons --- */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(107, 79, 124, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: rgba(196, 77, 255, 0.1);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-desc {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Audiobook Cards --- */
.audiobooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.audiobook-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audiobook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.audiobook-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.audiobook-card:hover::before {
  opacity: 1;
}

.audiobook-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.audiobook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audiobook-cover .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.audiobook-card:hover .play-overlay {
  opacity: 1;
}

.play-btn-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.play-btn-icon:hover {
  transform: scale(1.1);
}

.audiobook-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.audiobook-author {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.audiobook-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.audiobook-meta .rating {
  color: var(--accent);
  font-weight: 600;
}

/* --- Reviewer Cards --- */
.reviewers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.review-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Author Section / Page --- */
.author-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.author-avatar-large {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.25);
}

.author-info {
  flex: 1;
  min-width: 280px;
}

.author-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-tagline {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.author-bio {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

.author-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.blog-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-body {
  padding: 20px;
}

.blog-tag {
  display: inline-block;
  background: rgba(255, 107, 157, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-link:hover {
  gap: 8px;
}

/* --- Newsletter / Subscribe --- */
.subscribe-section {
  background: linear-gradient(135deg, 
    rgba(255, 107, 157, 0.08), 
    rgba(196, 77, 255, 0.08)
  );
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.subscribe-desc {
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: 100px;
  border: 2px solid rgba(107, 79, 124, 0.15);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: white;
}

.subscribe-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.subscribe-form button {
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.35);
}

/* --- Footer --- */
.footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(107, 79, 124, 0.08);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-light);
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--text-soft);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 79, 124, 0.06);
}

.footer-social a:hover {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.1);
  transform: translateY(-2px);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 120px 20px 60px;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-breadcrumb {
  color: var(--text-light);
  font-size: 0.9rem;
}

.page-breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SEO / Structured Data (hidden) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-bottom: 1px solid rgba(107, 79, 124, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .author-stats {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  .social-link span {
    display: none;
  }

  .audiobooks-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 16px 40px;
  }

  .subscribe-section {
    padding: 40px 20px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input {
    min-width: 100%;
  }

  .audiobooks-grid {
    grid-template-columns: 1fr;
  }

  .reviewers-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
