/* ========================================
   🖼️ IMAGE COMPRESSOR BLOG CSS
   YouTube Title Generator blog ke design pattern ke according
   Index.html design ke saath consistency
======================================== */

/* ✅ Blog Post Container - YouTube Title Generator ke jesa */
.blog-post-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease;
}

.blog-post {
  color: var(--text-color);
}

/* ========================================
   📅 POST META INFO
======================================== */
.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.post-meta span {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-date,
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========================================
   📰 BLOG TITLE
======================================== */
.blog-post h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

/* ========================================
   🖼️ FEATURED IMAGE
======================================== */
.featured-image {
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================
   📝 POST CONTENT SECTIONS
======================================== */
.post-section {
  margin: 2.5rem 0;
}

.post-section h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.post-section h3 {
  font-size: 1.35rem;
  color: var(--text-color);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.post-section h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin: 1rem 0 0.75rem;
  font-weight: 600;
}

.post-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1rem;
}

.intro-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
}

/* ========================================
   📋 TABLE OF CONTENTS
======================================== */
.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.table-of-contents h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.table-of-contents ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.75rem;
}

.table-of-contents a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ========================================
   📊 STATS HIGHLIGHT BOX
======================================== */
.stats-highlight {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  color: white;
}

.stats-highlight h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}
 
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.stat-value {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* ========================================
   📦 INFO BOXES & TIP BOXES
======================================== */
.info-box,
.tip-box {
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.info-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.tip-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-left-color: var(--accent-color);
}

.info-box p,
.tip-box p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-color);
}

.info-box strong,
.tip-box strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ========================================
   📋 LISTS
======================================== */
.post-section ul,
.post-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
}

.post-section ul li,
.post-section ol li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-color);
}

.post-section ul li strong,
.post-section ol li strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========================================
   🎴 COMPRESSION CARDS (Special for this page)
======================================== */
.compression-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.compression-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.compression-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.compression-card p {
  margin-bottom: 1rem;
}

/* ========================================
   🛠️ TOOL CARDS (Special for this page)
======================================== */
.tool-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-header h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Badges for pricing */
.badge-free,
.badge-freemium,
.badge-paid {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-free {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-freemium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.badge-paid {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.tool-features {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 3px solid var(--secondary-color);
}

.tool-features p strong {
  color: var(--primary-dark);
}

.tool-features ul {
  margin-top: 0.75rem;
  margin-left: 1.5rem;
}

.tool-specs {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.tool-specs p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tool-specs strong {
  color: var(--primary-dark);
}

/* ========================================
   📊 COMPARISON TABLE
======================================== */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.comparison-table td strong {
  color: var(--primary-dark);
}

/* ========================================
   📊 EXAMPLE BOXES
======================================== */
.example-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 3px solid var(--secondary-color);
}

.example-box p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.example-box code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.example-box strong {
  color: var(--primary-dark);
}

/* ========================================
   ⚙️ TECHNIQUE CARDS
======================================== */
.technique-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.technique-card p {
  margin-bottom: 1rem;
}

.technique-card strong {
  color: var(--primary-dark);
}

/* ========================================
   📁 FORMAT COMPARISON
======================================== */
.format-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.format-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.format-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.format-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.format-card strong {
  color: var(--primary-dark);
}

/* ========================================
   ✅ BEST PRACTICE CARDS
======================================== */
.best-practice-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.best-practice-card h4 {
  color: #059669;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.best-practice-card p {
  margin-bottom: 0.75rem;
}

.best-practice-card ul {
  margin-left: 1.5rem;
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   🔗 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.related-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

/* ========================================
   🔗 INLINE LINKS
======================================== */
.post-section a,
.intro-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.post-section a:hover,
.intro-text a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .blog-post-container {
    padding: 2.5rem 2rem;
  }

  .blog-post h1 {
    font-size: 2.5rem;
  }

  .post-section h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .format-comparison {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .blog-post-container {
    padding: 3rem 2.5rem;
  }

  .blog-post h1 {
    font-size: 2.75rem;
  }

  .post-meta {
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .format-comparison {
    grid-template-columns: repeat(4, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-post-container {
    max-width: 1000px;
    padding: 3.5rem 3rem;
  }

  .blog-post h1 {
    font-size: 3rem;
  }

  .post-section h2 {
    font-size: 2.25rem;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
.compression-card,
.tool-card,
.technique-card,
.format-card,
.best-practice-card,
.related-card,
.info-box,
.tip-box,
.stat-item {
  animation: fadeIn 0.6s ease backwards;
}

.tool-card:nth-of-type(1) { animation-delay: 0.1s; }
.tool-card:nth-of-type(2) { animation-delay: 0.2s; }
.tool-card:nth-of-type(3) { animation-delay: 0.3s; }
.tool-card:nth-of-type(4) { animation-delay: 0.4s; }
.tool-card:nth-of-type(5) { animation-delay: 0.5s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   🎯 ACCESSIBILITY
======================================== */
.post-section a:focus,
.cta-button:focus,
.related-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .compression-card,
  .tool-card,
  .technique-card,
  .format-card,
  .best-practice-card,
  .related-card,
  .info-box,
  .tip-box,
  .stat-item {
    animation: none;
  }
}

.hilltop-banner-wrapper {
  text-align: center; /* Banner ko center mein laayega */
  margin-top: 20px; /* Top se thoda space (chipakne se bachayega, adjust kar le 30px if zyada chahiye) */
  margin-bottom: 20px; /* Neeche bhi space de, optional */
  width: 100%; /* Full width for responsive */
}

.hilltop-banner-wrapper img {
  max-width: 100%; /* Image responsive rahe, overflow na ho */
  height: auto; /* Aspect ratio maintain */
}