/* ========================================
   GUIDE / BLOG ARTICLES — Puramane
   Dribbble-style editorial layout
   ======================================== */

/* ---- Hero ---- */
.guide-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 50%, #f9fafb 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.guide-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-tertiary, #6B7280);
  margin-bottom: 1.5rem;
}

.guide-breadcrumb a {
  color: var(--primary-blue, #2563EB);
  text-decoration: none;
  transition: color 0.2s;
}

.guide-breadcrumb a:hover {
  color: var(--primary-blue-hover, #1D4ED8);
  text-decoration: underline;
}

.guide-breadcrumb-sep {
  color: var(--text-muted, #9CA3AF);
}

.guide-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary, #1F2937);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.guide-hero-lead {
  font-size: 1.175rem;
  line-height: 1.6;
  color: var(--text-secondary, #4B5563);
  margin: 0 0 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.guide-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-tertiary, #6B7280);
}

.guide-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted, #9CA3AF);
}

/* ---- Article body ---- */
.guide-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.guide-prose {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary, #4B5563);
}

.guide-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #1F2937);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.guide-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #1F2937);
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.guide-prose p {
  margin: 0 0 1.25rem;
}

.guide-prose ul,
.guide-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.guide-prose li {
  margin-bottom: 0.5rem;
}

.guide-prose strong {
  color: var(--text-primary, #1F2937);
  font-weight: 600;
}

.guide-prose a {
  color: var(--primary-blue, #2563EB);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.guide-prose a:hover {
  color: var(--primary-blue-hover, #1D4ED8);
}

/* ---- Highlight / key stat box ---- */
.guide-highlight {
  background: var(--bg-gray-50, #F9FAFB);
  border-left: 4px solid var(--primary-blue, #2563EB);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.guide-highlight p {
  margin: 0;
}

/* ---- Comparison table ---- */
.guide-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

.guide-table th {
  background: var(--primary-blue, #2563EB);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.guide-table th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.guide-table th:last-child {
  border-radius: 0 0.5rem 0 0;
}

.guide-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.guide-table tr:last-child td:first-child {
  border-radius: 0 0 0 0.5rem;
}

.guide-table tr:last-child td:last-child {
  border-radius: 0 0 0.5rem 0;
}

.guide-table tbody tr:hover {
  background: var(--bg-gray-50, #F9FAFB);
}

.guide-table-winner {
  background: #f0fdf4 !important;
}

/* ---- Mid-article CTA box ---- */
.guide-cta-box {
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  border-radius: 1rem;
  padding: 2rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  color: #fff;
}

.guide-cta-box h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.guide-cta-box p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
  color: #fff;
}

.guide-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-blue, #2563EB);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s;
}

.guide-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.guide-cta-btn:active {
  transform: scale(0.97);
}

/* ---- FAQ section ---- */
.guide-faq {
  margin-top: 2.5rem;
}

.guide-faq-item {
  border-bottom: 1px solid var(--border-color, #E5E7EB);
  padding: 1.25rem 0;
}

.guide-faq-item:last-child {
  border-bottom: none;
}

.guide-faq-q {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary, #1F2937);
  margin: 0 0 0.5rem;
}

.guide-faq-a {
  margin: 0;
  color: var(--text-secondary, #4B5563);
  line-height: 1.7;
}

/* ---- Bottom CTA ---- */
.guide-bottom-cta {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.guide-bottom-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.guide-bottom-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}

.guide-bottom-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.75rem;
}

.guide-bottom-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-blue, #2563EB);
  font-weight: 700;
  padding: 0.875rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.0625rem;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s;
}

.guide-bottom-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.guide-bottom-cta-btn:active {
  transform: scale(0.97);
}

/* ---- Related articles ---- */
.guide-related {
  padding: 3rem 1.5rem;
  background: var(--bg-gray-50, #F9FAFB);
}

.guide-related-inner {
  max-width: 960px;
  margin: 0 auto;
}

.guide-related h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #1F2937);
  margin: 0 0 1.5rem;
  text-align: center;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.guide-related-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color, #E5E7EB);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s;
}

.guide-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.guide-related-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary, #1F2937);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.guide-related-card p {
  font-size: 0.875rem;
  color: var(--text-tertiary, #6B7280);
  margin: 0;
  line-height: 1.5;
}

/* ---- Index page — article listing ---- */
.guide-index-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 50%, #f9fafb 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.guide-index-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary, #1F2937);
  margin: 0 0 0.75rem;
}

.guide-index-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary, #4B5563);
  max-width: 560px;
  margin: 0 auto;
}

.guide-index-grid {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.guide-index-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color, #E5E7EB);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.28s;
}

.guide-index-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.guide-index-card-badge {
  display: inline-block;
  background: var(--primary-blue-100, #DBEAFE);
  color: var(--primary-blue, #2563EB);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.guide-index-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-index-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary, #1F2937);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.guide-index-card p {
  font-size: 0.9375rem;
  color: var(--text-tertiary, #6B7280);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.guide-index-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted, #9CA3AF);
}

.guide-index-card-read {
  color: var(--primary-blue, #2563EB);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---- Scroll-reveal animation ---- */
.guide-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.guide-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE — 5 breakpoints
   ======================================== */

/* Small desktop (1024 – 1279) */
@media (max-width: 1279px) {
  .guide-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .guide-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (769 – 1023) */
@media (max-width: 1023px) {
  .guide-hero h1 {
    font-size: 2.25rem;
  }
  .guide-index-hero h1 {
    font-size: 2rem;
  }
  .guide-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .guide-bottom-cta h2 {
    font-size: 1.75rem;
  }
}

/* Mobile (max 768) */
@media (max-width: 768px) {
  .guide-hero {
    padding: 3rem 1rem 2rem;
  }
  .guide-hero h1 {
    font-size: 1.75rem;
  }
  .guide-hero-lead {
    font-size: 1rem;
  }
  .guide-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .guide-article {
    padding: 2rem 1rem 3rem;
  }
  .guide-prose {
    font-size: 1rem;
  }
  .guide-prose h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }
  .guide-cta-box {
    padding: 1.5rem 1.25rem;
  }
  .guide-index-hero {
    padding: 3rem 1rem 2rem;
  }
  .guide-index-hero h1 {
    font-size: 1.75rem;
  }
  .guide-index-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1rem 3rem;
  }
  .guide-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .guide-bottom-cta {
    padding: 3rem 1rem;
  }
  .guide-bottom-cta h2 {
    font-size: 1.5rem;
  }
  .guide-table {
    font-size: 0.8125rem;
  }
  .guide-table th,
  .guide-table td {
    padding: 0.5rem 0.625rem;
  }
}

/* Small mobile (max 480) */
@media (max-width: 480px) {
  .guide-hero h1 {
    font-size: 1.5rem;
  }
  .guide-hero-lead {
    font-size: 0.9375rem;
  }
  .guide-article {
    padding: 1.5rem 0.875rem 2.5rem;
  }
  .guide-prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .guide-prose h2 {
    font-size: 1.2rem;
  }
  .guide-cta-box {
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
  }
  .guide-cta-btn,
  .guide-bottom-cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  .guide-index-hero h1 {
    font-size: 1.5rem;
  }
  .guide-index-card-body {
    padding: 1.125rem;
  }
  .guide-bottom-cta h2 {
    font-size: 1.3rem;
  }
}
