/* ============================================================================
   MyPDFTools — Homepage Styles (style.css)
   Works with mpt-global.css design system
   ============================================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb1 8s ease-in-out infinite;
  z-index: -1;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb2 10s ease-in-out infinite;
  z-index: -1;
}

@keyframes heroOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.05); }
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-section p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--mpt-text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Trust badges under hero */
.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mpt-text-muted);
  font-size: 14px;
  font-weight: 500;
}
.hero-trust-item i {
  color: var(--mpt-success);
  font-size: 16px;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-section {
  padding: 20px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.tool-card {
  text-align: center;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.tool-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--mpt-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all var(--mpt-transition);
  position: relative;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.12) rotate(-3deg);
  background: var(--mpt-gradient);
  box-shadow: 0 8px 24px var(--mpt-primary-glow);
}

.tool-card i {
  font-size: 24px;
  color: var(--mpt-primary);
  transition: color var(--mpt-transition);
}
.tool-card:hover i { color: #fff; }

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--mpt-text);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--mpt-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tool-card .btn {
  padding: 8px 22px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--mpt-transition), transform var(--mpt-transition);
}
.tool-card:hover .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HOW IT WORKS — Animated Timeline
   ============================================================ */
.how-it-works {
  padding: 80px 24px;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--mpt-gradient-subtle);
  z-index: 0;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  background: var(--mpt-card);
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius);
  backdrop-filter: var(--mpt-glass-blur);
  -webkit-backdrop-filter: var(--mpt-glass-blur);
  transition: transform var(--mpt-transition), box-shadow var(--mpt-transition);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--mpt-shadow-glow);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mpt-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px var(--mpt-primary-glow);
}

.step i {
  font-size: 2rem;
  color: var(--mpt-secondary);
  margin-bottom: 16px;
  display: block;
}
.step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--mpt-text);
}
.step p {
  font-size: 0.9rem;
  color: var(--mpt-text-muted);
  margin: 0;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
  padding: 40px 0 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  text-decoration: none;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--mpt-text);
  transition: color var(--mpt-transition);
  line-height: 1.35;
}
.blog-card:hover h3 { color: var(--mpt-primary); }

.blog-card p {
  font-size: 0.9rem;
  color: var(--mpt-text-muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mpt-primary);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--mpt-transition);
}
.blog-card:hover .read-more { gap: 10px; }

/* ============================================================
   WHY CHOOSE US / FEATURES
   ============================================================ */
.features-section {
  padding: 60px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px;
  text-align: center;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mpt-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--mpt-primary);
  transition: all var(--mpt-transition);
}
.feature-card:hover .feature-icon {
  background: var(--mpt-gradient);
  color: #fff;
  transform: scale(1.08);
}

.feature-card h4 {
  margin-bottom: 8px;
  color: var(--mpt-text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--mpt-text-muted);
  margin: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--mpt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 14px;
  color: var(--mpt-text-muted);
  margin-top: 4px;
}

/* ============================================================
   GENERIC PAGE STYLES (About, Contact, etc.)
   ============================================================ */
.page-hero {
  text-align: center;
  padding: 60px 24px 40px;
}
.page-hero h1 {
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}
.page-content p, .page-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mpt-text-secondary);
}
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content li {
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 16px 50px;
  }
  .hero-section::before { width: 300px; height: 300px; }
  .hero-section::after { width: 250px; height: 250px; }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tool-card {
    padding: 20px 14px;
  }
  .tool-card .btn {
    opacity: 1;
    transform: translateY(0);
  }

  .steps::before { display: none; }
  .steps { gap: 16px; }
  .step { min-width: 100%; }

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

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

  .stats-bar { gap: 28px; }
  .stat-number { font-size: 1.8rem; }

  .hero-trust { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 48px 12px 40px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================================
   SINGLE BLOG POST STYLES
   ============================================================ */
.blog-post-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}
.blog-post-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mpt-text-muted);
  margin-bottom: 24px;
}
.blog-post-page .breadcrumb a {
  color: var(--mpt-text-muted);
  text-decoration: none;
}
.blog-post-page .breadcrumb a:hover {
  color: var(--mpt-primary);
}
.blog-post-page .hero {
  margin-bottom: 32px;
}
.blog-post-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mpt-primary-light);
  color: var(--mpt-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--mpt-radius-full);
  margin-bottom: 16px;
}
.blog-post-page .hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--mpt-text);
  margin-bottom: 16px;
}
.blog-post-page .hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mpt-text-muted);
  border-bottom: 1px solid var(--mpt-border);
  padding-bottom: 16px;
}
.blog-post-page .hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Table of Contents */
.blog-post-page .toc {
  background: var(--mpt-surface);
  border: 1px solid var(--mpt-border-strong);
  border-radius: var(--mpt-radius-lg);
  padding: 20px;
  margin-bottom: 32px;
}
.blog-post-page .toc-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--mpt-text);
  display: flex;
  align-items: center;
}
.blog-post-page .toc ol {
  padding-left: 20px;
}
.blog-post-page .toc li {
  margin-bottom: 8px;
  font-size: 14px;
}
.blog-post-page .toc a {
  color: var(--mpt-text-muted);
  text-decoration: none;
  transition: color var(--mpt-transition);
}
.blog-post-page .toc a:hover {
  color: var(--mpt-primary);
}

/* Prose Content */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mpt-text-muted);
}
.prose p {
  margin-bottom: 20px;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mpt-text);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mpt-border);
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mpt-text);
  margin-top: 24px;
  margin-bottom: 12px;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--mpt-text);
  font-weight: 700;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mpt-radius);
  margin: 24px 0;
  border: 1px solid var(--mpt-border);
}

/* Custom Callout boxes */
.infobox, .warnbox {
  padding: 16px;
  border-radius: var(--mpt-radius);
  margin: 24px 0;
  font-size: 14px;
}
.infobox {
  background: var(--mpt-primary-light);
  border: 1px solid var(--mpt-primary-glow);
  color: var(--mpt-text);
}
.infobox-title {
  font-weight: 700;
  color: var(--mpt-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.warnbox {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--mpt-text);
}
.warnbox-title {
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.cta-box {
  background: var(--mpt-gradient-subtle);
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius-lg);
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}
.cta-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.cta-box p {
  font-size: 14px;
  margin-bottom: 16px;
}
.ad-block {
  margin: 24px 0;
  text-align: center;
}
.ad-tag {
  display: block;
  font-size: 10px;
  color: var(--mpt-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}