/* ==========================================================================
   iLoveScribdDownloader.com - Signature iLovePDF & PDFFetch Design Theme
   ========================================================================== */

:root {
  --ilove-red: #e5322d;
  --ilove-red-hover: #c72823;
  --ilove-red-light: #fff5f5;
  --ilove-dark: #161616;
  --ilove-gray-bg: #f5f5fa;
  --ilove-border: #e3e3e8;
  --ilove-text-dark: #222222;
  --ilove-text-muted: #666666;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ilove-text-dark);
  background-color: var(--ilove-gray-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4.5rem;
  overflow-x: hidden;
}

.main-content {
  flex: 1 0 auto;
}

/* ==========================================================================
   iLovePDF Clean Navbar
   ========================================================================== */
.ilove-nav {
  height: 68px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ilove-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo-i {
  color: var(--ilove-dark);
}

.logo-love {
  color: var(--ilove-red);
  font-size: 1.25rem;
  margin: 0 1px;
}

.logo-pdf {
  color: var(--ilove-dark);
  font-weight: 800;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #444444 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ilove-red) !important;
}

/* ==========================================================================
   Hero Section & Big Red Action Card
   ========================================================================== */
.hero-ilove {
  padding: 3.5rem 0 3rem;
  background: #ffffff;
}

.hero-ilove-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ilove-dark);
  margin-bottom: 0.75rem;
}

.hero-ilove-subtitle {
  font-size: 1.15rem;
  color: var(--ilove-text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.ilove-action-box {
  max-width: 740px;
  background: var(--ilove-gray-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ilove-border);
  box-shadow: var(--shadow-sm);
}

.ilove-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.ilove-input-icon {
  position: absolute;
  left: 18px;
  color: #888888;
  font-size: 1.1rem;
  pointer-events: none;
}

.ilove-input {
  height: 60px;
  padding-left: 50px;
  padding-right: 120px;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid var(--ilove-border);
  background: #ffffff;
  transition: all 0.2s ease;
}

.ilove-input:focus {
  border-color: var(--ilove-red);
  box-shadow: 0 0 0 4px rgba(229, 50, 45, 0.15);
}

.ilove-btn-paste {
  position: absolute;
  right: 12px;
  height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #444444;
  background: #f0f0f5;
  border: 1px solid var(--ilove-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.ilove-btn-paste:hover {
  background: #e2e2ea;
  color: #111111;
}

/* Big Red Action Button */
.btn-ilove-red {
  background-color: var(--ilove-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  height: 60px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 6px 18px rgba(229, 50, 45, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ilove-red:hover {
  background-color: var(--ilove-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 50, 45, 0.45);
}

/* Progress bar */
.ilove-progress-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ilove-border);
}

.ilove-progress {
  height: 12px;
  border-radius: 10px;
  background-color: #f0f0f5;
}

/* ==========================================================================
   Result Card & Live In-Page PDF Reader
   ========================================================================== */
.ilove-result-card {
  max-width: 900px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ilove-border);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ilove-thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #f1f1f5;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ilove-thumb-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ilove-badge-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.ilove-doc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ilove-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ilove-doc-author {
  font-size: 0.92rem;
  color: var(--ilove-text-muted);
  margin-bottom: 8px;
}

.ilove-doc-desc {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ilove-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.btn-ilove-action {
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-ilove-action:hover {
  transform: translateY(-2px);
}

.btn-pdf {
  background-color: var(--ilove-red);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 50, 45, 0.3);
}

.btn-pdf:hover {
  background-color: var(--ilove-red-hover);
  color: #ffffff;
}

.btn-open {
  background-color: #2b2b2b;
  color: #ffffff;
}

.btn-open:hover {
  background-color: #111111;
  color: #ffffff;
}

.btn-zip {
  background-color: #f59e0b;
  color: #ffffff;
}

.btn-zip:hover {
  background-color: #d97706;
  color: #ffffff;
}

.btn-txt {
  background-color: #64748b;
  color: #ffffff;
}

.btn-txt:hover {
  background-color: #475569;
  color: #ffffff;
}

/* In-Page Live Document Reader */
.ilove-inpage-reader {
  background: var(--ilove-gray-bg);
  border-radius: var(--radius-md);
  padding: 20px;
}

.ilove-pages-scrollbox {
  max-height: 700px;
  overflow-y: auto;
  background: #2b2f3a;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.in-page-page-wrapper {
  margin-bottom: 24px;
}

.preview-page-img {
  max-width: 100%;
  max-height: 900px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-radius: 6px;
  background: #ffffff;
}

/* ==========================================================================
   iLovePDF-Style Tool Cards Grid
   ========================================================================== */
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

.ilove-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ilove-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.ilove-tool-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ilove-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: pointer;
}

.ilove-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d0d0d8;
}

.tool-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.tool-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ilove-dark);
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 0.92rem;
  color: var(--ilove-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   Step Cards & FAQ
   ========================================================================== */
.ilove-step-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ilove-border);
  height: 100%;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ilove-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--ilove-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.ilove-accordion .accordion-item {
  border: 1px solid var(--ilove-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.ilove-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ilove-dark);
  padding: 18px 22px;
  background: #ffffff;
}

.ilove-accordion .accordion-button:not(.collapsed) {
  background: var(--ilove-red-light);
  color: var(--ilove-red);
  box-shadow: none;
}

.ilove-accordion .accordion-body {
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 18px 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ilove-footer {
  background-color: #ffffff;
}

.footer-link {
  color: #666666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--ilove-red);
  text-decoration: underline;
}

/* Comparison Table & SEO Guide Styling */
.table thead th {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.table tbody tr td {
  padding: 16px 12px;
  font-size: 0.95rem;
}

.leading-relaxed {
  line-height: 1.75;
  font-size: 1rem;
}

#guide article h2 {
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

#guide article h3 {
  font-size: 1.25rem;
  letter-spacing: -0.3px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-ilove-title {
    font-size: 2rem;
  }
  .ilove-action-box {
    padding: 16px;
  }
  .ilove-input {
    height: 52px;
    font-size: 0.95rem;
    padding-right: 105px;
  }
  .ilove-btn-paste {
    height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  .btn-ilove-red {
    height: 50px;
    font-size: 1.05rem;
  }
  .ilove-download-grid {
    grid-template-columns: 1fr 1fr;
  }
}
