/* ============================================
   Giftlo Gift Guides — article & index styles
   Shares tokens/nav/footer with styles.css
   ============================================ */

.guides-main {
  padding-top: 72px;
}

/* ---- Index page ---- */
.guides-hero {
  padding: 64px 0 32px;
  text-align: center;
}

.guides-hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.guides-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.guides-grid-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  padding: 32px 0 80px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.guide-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--bg-light);
  display: block;
}

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

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.guide-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b23a3a;
  background: var(--primary-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.guide-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.guide-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---- Article page ---- */
.guide-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.guide-article-header {
  margin-bottom: 2rem;
}

.guide-article-header h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0.75rem 0 1rem;
}

.guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.guide-meta-row .dot {
  color: var(--text-secondary);
}

.guide-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  display: block;
}

.guide-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.guide-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.2px;
}

.guide-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.guide-body p {
  margin-bottom: 1.25rem;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

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

.guide-body a {
  color: #b23a3a;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
}

.guide-body strong {
  font-weight: 600;
}

/* ---- Affiliate disclosure banner (auto-inserted when a guide has product mentions) ---- */
.guide-disclosure-banner {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--primary-bg);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.guide-disclosure-banner a {
  color: #b23a3a;
  font-weight: 600;
}

/* ---- Product mention card (built for when affiliate approval lands) ---- */
.product-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
}

.product-card-image {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-white);
}

.product-card-image-placeholder {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.product-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.product-card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.product-card-link:hover {
  text-decoration: underline;
}

/* ---- CTA + related ---- */
.guide-cta {
  margin: 2.5rem 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c23e3e, #a83232);
  color: white;
  text-align: center;
}

.guide-cta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.guide-cta p {
  opacity: 0.92;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.guide-cta .download-buttons {
  justify-content: center;
}

.guide-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.guide-related h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .guides-hero h1 {
    font-size: 1.9rem;
  }

  .guide-article-header h1 {
    font-size: 1.7rem;
  }

  .guide-article {
    padding: 32px 20px 60px;
  }
}
