/* ============================================================
   PayPig Canada — Component Styles
   ============================================================ */

/* --- Blog Post Layout ------------------------------------- */
.post-header { padding: 80px 0 48px; background: linear-gradient(135deg, var(--pink-light), var(--lavender)); }
.post-title { font-size: clamp(2rem, 4vw, 3rem); margin: 20px 0 16px; max-width: 820px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.post-meta-divider { opacity: 0.4; }
.post-author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender-mid));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--rose-dark);
}
.post-featured-img {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--pink-light), var(--lavender));
  border-radius: var(--radius-lg);
  margin: 40px 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  overflow: hidden;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.post-body { min-width: 0; }
.post-body h2 { margin: 48px 0 16px; font-size: 1.7rem; }
.post-body h3 { margin: 36px 0 12px; font-size: 1.35rem; }
.post-body h4 { margin: 28px 0 10px; }
.post-body p  { margin-bottom: 1.4rem; line-height: 1.85; font-size: 1.02rem; }
.post-body ul, .post-body ol { margin: 0 0 1.4rem 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; line-height: 1.7; }
.post-body blockquote {
  border-left: 4px solid var(--rose-gold);
  background: var(--pink-light);
  padding: 20px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-body);
}
.post-body blockquote cite { display: block; margin-top: 8px; font-size: 0.85rem; font-style: normal; color: var(--text-muted); }
.post-body a { color: var(--rose-gold); text-decoration: underline; }

/* Table of Contents */
.toc-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.toc-card h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 0.9rem; color: var(--text-body); transition: color var(--transition); padding-left: 12px; border-left: 2px solid transparent; }
.toc-list a:hover { color: var(--rose-gold); border-left-color: var(--rose-gold); }
.toc-list a.active { color: var(--rose-gold); border-left-color: var(--rose-gold); font-weight: 600; }

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.related-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--neutral-200); }
.related-post-item:last-child { border-bottom: none; }
.related-post-img {
  width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink-light), var(--lavender));
  overflow: hidden;
}
.related-post-img img { width: 100%; height: 100%; object-fit: cover; }
.related-post-title { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 4px; }
.related-post-date  { font-size: 0.75rem; color: var(--text-light); }

/* Author Box */
.author-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 60px;
}
.author-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender-mid));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem; color: var(--rose-dark);
  flex-shrink: 0;
  overflow: hidden;
}
.author-info h4 { margin-bottom: 4px; }
.author-role { font-size: 0.82rem; color: var(--rose-gold); font-weight: 600; margin-bottom: 10px; }
.author-bio  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Share Buttons */
.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition);
}
.share-btn-twitter  { background: #1da1f2; color: #fff; }
.share-btn-facebook { background: #1877f2; color: #fff; }
.share-btn-copy     { background: var(--neutral-200); color: var(--text-body); }
.share-btn:hover    { opacity: 0.85; transform: translateY(-1px); }

/* --- Blog Grid -------------------------------------------- */
.blog-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--neutral-200); background: var(--white); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--rose-gold); color: var(--rose-gold); background: var(--pink-light);
}
.blog-search {
  display: flex; gap: 12px; margin-bottom: 36px;
}
.blog-search .form-control { flex: 1; }
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}
.blog-featured .blog-card-img { aspect-ratio: 3/2; }
.blog-featured-main .blog-card-img { aspect-ratio: 16/10; }

/* --- About Page ------------------------------------------- */
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.mission-img {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--pink-light), var(--lavender));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  overflow: hidden;
}
.value-item { display: flex; gap: 16px; margin-bottom: 32px; }
.value-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--pink-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.value-content h4 { margin-bottom: 6px; font-size: 1.05rem; }
.value-content p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--pink), var(--lavender-mid));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem; color: var(--rose-dark);
  overflow: hidden;
}
.team-name  { font-weight: 700; margin-bottom: 4px; }
.team-role  { font-size: 0.85rem; color: var(--rose-gold); font-weight: 600; }

/* --- App Page --------------------------------------------- */
.app-hero { min-height: 80vh; display: flex; align-items: center; }
.app-phones {
  display: flex; align-items: flex-end; justify-content: center; gap: -20px;
}
.app-phone-main  { z-index: 2; }
.app-phone-back  { z-index: 1; transform: translateX(-40px) scale(0.88); opacity: 0.75; }
.app-feature-list { display: flex; flex-direction: column; gap: 24px; }
.app-feature-item { display: flex; gap: 16px; align-items: flex-start; }
.app-feature-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink-light), var(--lavender));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.app-feature-item h4 { margin-bottom: 4px; font-size: 1rem; }
.app-feature-item p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* --- Contact Page ----------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--neutral-200);
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--pink-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-info-item h5 { margin-bottom: 4px; font-size: 0.9rem; }
.contact-info-item p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }

/* --- Legal Pages ------------------------------------------ */
.legal-hero { padding: 80px 0 60px; background: linear-gradient(135deg, var(--pink-light), var(--lavender)); }
.legal-content { padding: 64px 0 96px; }
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--neutral-200); }
.legal-body h2:first-of-type { border-top: none; margin-top: 0; }
.legal-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal-body p, .legal-body li { font-size: 0.97rem; line-height: 1.85; color: var(--text-body); }
.legal-body ul { list-style: disc; margin-left: 24px; margin-bottom: 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--rose-gold); }
.legal-last-updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink-light); border-radius: 20px; padding: 6px 16px;
  font-size: 0.82rem; color: var(--rose-gold); font-weight: 600; margin-bottom: 32px;
}

/* --- Location Pages (SEO) --------------------------------- */
.location-hero { background: linear-gradient(135deg, var(--pink-light), var(--lavender)); padding: 80px 0 60px; }
.location-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md); margin-top: 40px;
}
.location-stat { text-align: center; }
.location-stat-num { font-family: var(--font-heading); font-size: 2.2rem; color: var(--rose-gold); font-weight: 700; }
.location-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* --- Pagination ------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 60px; }
.page-link {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600; color: var(--text-body);
  border: 1.5px solid var(--neutral-200); background: var(--white);
  transition: all var(--transition); cursor: pointer;
}
.page-link:hover, .page-link.active {
  border-color: var(--rose-gold); color: var(--rose-gold); background: var(--pink-light);
}
.page-link.active { background: var(--rose-gold); color: var(--white); border-color: var(--rose-gold); }

/* --- Newsletter Inline ------------------------------------ */
.newsletter-inline {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.newsletter-inline h3 { margin-bottom: 12px; }
.newsletter-inline p  { color: var(--text-muted); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form .form-control { flex: 1; }

/* --- Responsive Component Overrides ----------------------- */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .blog-featured { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .location-stats { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
  .post-body h2 { margin: 56px 0 22px; }
  .legal-body h2 { margin: 56px 0 20px; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .location-stats { grid-template-columns: 1fr 1fr; }
}
