/* ===== MangoBubbles Shared Stylesheet ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --primary-red: #E63946;
  --soft-pink: #FFB4C2;
  --warm-coral: #FF6B6B;
  --leaf-green: #2D6A4F;
  --light-green: #95D5B2;
  --cream-white: #FFF5F5;
  --warm-yellow: #FFD166;
  --dark-text: #2B2D42;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark-text);
  background-color: var(--cream-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  line-height: 1.2;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--warm-coral);
}

img, svg {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--warm-coral);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 0 20px;
}

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

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  color: var(--primary-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark-text);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-red);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-red), var(--warm-coral), var(--soft-pink));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero .btn {
  font-size: 1.1rem;
}

/* Decorative blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.hero::before {
  width: 300px;
  height: 300px;
  background: var(--warm-yellow);
  top: -80px;
  right: -60px;
}

.hero::after {
  width: 200px;
  height: 200px;
  background: var(--light-green);
  bottom: -50px;
  left: -40px;
}

/* ===== Section Styles ===== */
section {
  padding: 60px 20px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

section p {
  max-width: 700px;
}

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

.section-header p {
  margin: 8px auto 0;
  color: #666;
  font-size: 1.1rem;
}

/* ===== App Cards ===== */
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* App icon images (iOS-style rounded corners) */
.app-icon-img {
  width: 90px;
  height: 90px;
  border-radius: 22%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 16px;
  object-fit: cover;
}

.app-icon-img-lg {
  width: 140px;
  height: 140px;
  border-radius: 22%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
  object-fit: cover;
}

.app-icon-img-sm {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
  margin-right: 4px;
}

.app-card .app-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.app-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.app-card .app-tagline {
  color: #666;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.app-card .app-creator {
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.app-card .btn {
  margin-bottom: 16px;
}

.app-store-badge {
  height: 40px;
  transition: opacity var(--transition);
}

.app-store-badge:hover {
  opacity: 0.8;
}

/* ===== About Teaser ===== */
.about-teaser {
  background: var(--white);
  text-align: center;
}

.about-teaser p {
  margin: 0 auto 24px;
}

/* ===== App Detail Hero ===== */
.app-hero {
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.app-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.app-hero .tagline {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 8px;
}

.app-hero .creator {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.app-hero .app-store-badge {
  height: 44px;
}

/* App-specific gradients */
.hero-bookshelf {
  background: linear-gradient(135deg, #FF9A3C, #FFD166, #FF6B6B);
}

.hero-mangoscript {
  background: linear-gradient(135deg, #E63946, #9B2335, #6B2FA0);
}

.hero-bubbleanimals {
  background: linear-gradient(135deg, #2D6A4F, #95D5B2, #4ECDC4);
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== App Details Section ===== */
.app-details {
  background: var(--white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 24px auto 0;
}

.detail-item {
  text-align: center;
  padding: 16px;
}

.detail-item .detail-label {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-item .detail-value {
  font-size: 1rem;
}

/* ===== App Links Section ===== */
.app-links {
  text-align: center;
}

.app-links a {
  margin: 0 12px;
  display: inline-block;
}

.app-links .link-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

/* ===== About Page ===== */
.about-section {
  max-width: 800px;
  margin: 0 auto;
}

.about-section p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.founder-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.founder-card h2 {
  color: var(--primary-red);
  margin-bottom: 4px;
}

.founder-card .founder-age {
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}

.founder-card .founder-apps {
  font-weight: 700;
  margin-bottom: 12px;
}

.founder-card p {
  margin-bottom: 12px;
}

.founder-card a {
  font-weight: 600;
}

/* ===== Support & Privacy Pages ===== */
.support-page,
.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.support-page h1,
.privacy-page h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--primary-red);
}

.support-page h2,
.privacy-page h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.support-page p,
.privacy-page p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary-red);
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
  color: #555;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
  background: var(--white);
}

.contact-section a {
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-text);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--warm-yellow);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--soft-pink);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.footer-email {
  margin-bottom: 16px;
}

.footer-email a {
  color: var(--light-green);
}

.footer-email a:hover {
  color: var(--warm-yellow);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .app-hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 40px 20px;
  }

  section h2 {
    font-size: 1.6rem;
  }

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

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

  .hero h1 {
    font-size: 1.75rem;
  }

  .app-cards {
    grid-template-columns: 1fr;
  }

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

/* ===== Print Styles ===== */
@media print {
  .navbar, .footer, .hamburger {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero, .app-hero {
    background: #eee !important;
    color: black !important;
    padding: 20px;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .app-card, .feature-card, .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
