/* ========================================
   🎵 SOUND EXTRACTOR BLOG - CSS
   Matches Index.html Theme (Pure CSS - No JS)
======================================== */

/* ========================================
   📦 BASE BLOG POST STYLES
======================================== */
.blog-post-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-post {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.6s ease;
}

/* ========================================
   📋 POST META INFO
======================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.read-time {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   📝 TYPOGRAPHY
======================================== */
.blog-post h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 800;
}

.blog-post h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 700;
}

.blog-post h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-post h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.intro-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.9;
}

.blog-post code {
  background: var(--bg-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e83e8c;
  border: 1px solid var(--border-color);
}

/* ========================================
   🖼️ FEATURED IMAGE
======================================== */
.featured-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: var(--shadow-lg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   📋 TABLE OF CONTENTS
======================================== */
.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.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-weight: bold;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-dark);
  padding-left: 0.5rem;
}

/* ========================================
   📄 POST SECTIONS
======================================== */
.post-section {
  margin: 3rem 0;
}

.blog-post ul,
.blog-post ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post ul li::marker {
  color: var(--primary-color);
}

.blog-post ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post li strong {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.blog-post a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

.blog-post strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* ========================================
   💡 INFO BOX
======================================== */
.info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🎵 REASON GRID
======================================== */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.reason-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.reason-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.reason-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.reason-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.reason-card p {
  margin-bottom: 1rem;
  text-align: left;
}

.reason-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   🔧 TECH CARD
======================================== */
.tech-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.tech-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tech-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tech-step:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-info {
  flex: 1;
}

.step-info h4 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ========================================
   📊 COMPARISON TABLE
======================================== */
.comparison-table-wrapper {
  margin: 2rem 0;
}

.comparison-table-wrapper h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-color);
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* ========================================
   ⚡ TIP BOX
======================================== */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🛠️ TOOL CARDS
======================================== */
.tool-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.4rem;
}

.badge-free {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-features {
  margin: 1.5rem 0;
}

.tool-features ul {
  margin-left: 1.5rem;
}

.tool-features ul li {
  margin-bottom: 0.75rem;
}

.tool-specs {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.tool-specs p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* ========================================
   📱 PLATFORM GUIDE (FORMAT GUIDE)
======================================== */
.platform-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.platform-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.platform-card.mp3 {
  border-left: 4px solid #10b981;
}

.platform-card.wav {
  border-left: 4px solid #3b82f6;
}

.platform-card.aac {
  border-left: 4px solid #8b5cf6;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-icon {
  font-size: 2.5rem;
}

.platform-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.5rem;
}

.guide-section {
  margin-bottom: 1.5rem;
}

.guide-section h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.guide-section ol,
.guide-section ul {
  margin-left: 1.5rem;
}

.guide-section li {
  margin-bottom: 0.5rem;
}

.guide-tip {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border-left: 3px solid #ffc107;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.guide-tip p {
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   📖 TUTORIAL STEPS
======================================== */
.tutorial-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.tutorial-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.tutorial-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.tutorial-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tutorial-card h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.tutorial-card p {
  margin-bottom: 1rem;
}

.tutorial-example,
.tutorial-tip {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.tutorial-example p,
.tutorial-tip p {
  margin-bottom: 0.5rem;
}

.tutorial-example ul,
.tutorial-tip ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   💡 TIPS GRID
======================================== */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.tip-card {
  background: white;
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tip-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tip-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.tip-card p {
  margin-bottom: 0.75rem;
}

.tip-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   ⚠️ WARNING CARD
======================================== */
.warning-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid #ef4444;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-card h3 {
  margin-top: 0;
  color: #ef4444;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.warning-card ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   🔧 TROUBLESHOOT GRID
======================================== */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.troubleshoot-item {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.troubleshoot-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.troubleshoot-item h3 {
  margin-top: 0;
  color: #ef4444;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.problem {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border-left: 3px solid #ef4444;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.problem p {
  margin: 0;
  font-weight: 600;
}

.solution {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-left: 3px solid #10b981;
  padding: 1rem;
  border-radius: 6px;
}

.solution p {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.solution ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ========================================
   🎯 CONCLUSION HIGHLIGHTS
======================================== */
.conclusion-highlights {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.conclusion-highlights h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.conclusion-highlights ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.conclusion-highlights ul li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-bottom: none !important;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ========================================
   📢 FINAL CTA
======================================== */
.final-cta {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.final-cta p {
  margin: 0;
  font-size: 1.05rem;
}

/* ========================================
   ❓ FAQ SECTION
======================================== */
.faq-section {
  margin-top: 3rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
}

.faq-section h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.8;
}

/* ========================================
   📚 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .blog-post h1 {
    font-size: 3rem;
  }

  .blog-post h2 {
    font-size: 2.2rem;
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-guide {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 3.5rem;
  }

  .blog-post h1 {
    font-size: 3.5rem;
  }

  .featured-image {
    height: 500px;
  }

  .reason-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .platform-guide {
    grid-template-columns: 1fr;
  }

  .troubleshoot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   📱 RESPONSIVE - MOBILE (<640px)
======================================== */
@media (max-width: 640px) {
  .blog-post-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .blog-post {
    padding: 2rem 1.5rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .featured-image {
    height: 250px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-step {
    flex-direction: column;
    text-align: center;
  }

  .faq-section {
    padding: 1.5rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}