/* ==========================================================================
   bloq-post.css — Single article detail page
   Matches passport. design system: lavender brand, panel-pad, reveal anims
   ========================================================================== */

/* ===== HEADER OVERRIDES for dark hero ===== */
/* Menu burger — needs to be white on dark background */
.bp-hero-panel .menu-toggle span,
.bp-hero-panel .menu-toggle span::before,
.bp-hero-panel .menu-toggle span::after {
  background: #fff;
}

/* Header CTA — outline button with white border + white text on dark */
.bp-hero-panel .header-cta {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.bp-hero-panel .header-cta:hover {
  background: #fff;
  color: var(--ink, #1A1A4D);
  border-color: #fff;
}

/* ===== HERO PANEL ===== */
.bp-hero-panel {
  background: var(--ink, #1A1A4D);
  color: #fff;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.bp-hero {
  padding: 0 var(--panel-pad, 80px);
  margin-top: 16px;
}

.bp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  margin-bottom: 20px;
}
.bp-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(-2px);
}
.bp-back svg {
  width: 14px;
  height: 14px;
}

.bp-hero-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  align-items: center;
  min-height: 200px;
}

.bp-hero-text {
  max-width: 720px;
}

.bp-hero-cat {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand, #5B4FCF);
  background: rgba(91, 79, 207, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(91, 79, 207, 0.3);
  margin-bottom: 20px;
}

.bp-hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}

.bp-hero-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
}

.bp-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bp-hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--brand, #5B4FCF);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.bp-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-author-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.bp-author-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.bp-hero-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bp-hero-readtime::before {
  content: '⏱';
  font-size: 0.875rem;
}

/* Hero visual orb */
.bp-hero-visual {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bp-hero-grad, linear-gradient(135deg, #5B4FCF 0%, #8B5CF6 100%));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.bp-hero-emoji {
  font-size: 86px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  z-index: 2;
  position: relative;
}

/* Real image variant — fills the orb completely with circular crop */
.bp-hero-visual--has-image {
  background: transparent !important;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.08);
}
.bp-hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bp-hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.bp-ring-1 { inset: -20px; animation: bp-spin 18s linear infinite; }
.bp-ring-2 { inset: -40px; animation: bp-spin 24s linear infinite reverse; opacity: 0.6; }
.bp-ring-3 { inset: -60px; animation: bp-spin 32s linear infinite; opacity: 0.35; }

@keyframes bp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ARTICLE BODY ===== */
.bp-article {
  background: var(--inner, #fafaff);
}

.bp-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  color: var(--ink, #1A1A4D);
  line-height: 1.75;
}

.bp-loading {
  text-align: center;
  padding: 80px 20px;
  color: rgba(26, 26, 77, 0.5);
  font-style: italic;
}

/* Block: intro paragraph (highlighted, larger) */
.bp-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink, #1A1A4D);
  margin: 0 0 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(91, 79, 207, 0.05), rgba(91, 79, 207, 0.02));
  border-left: 4px solid var(--brand, #5B4FCF);
  border-radius: 0 12px 12px 0;
}

/* Block: regular paragraph */
.bp-p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 20px;
  color: rgba(26, 26, 77, 0.85);
}
.bp-p strong {
  color: var(--ink, #1A1A4D);
  font-weight: 700;
}
.bp-p a, .bp-content a {
  color: var(--brand, #5B4FCF);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.bp-p a:hover, .bp-content a:hover {
  color: var(--brand-dark, #3D33A0);
}
.bp-p em, .bp-content em {
  font-style: italic;
  color: rgba(26, 26, 77, 0.7);
}

/* Block: H2 / H3 */
.bp-h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #1A1A4D);
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(91, 79, 207, 0.15);
  letter-spacing: -0.01em;
}
.bp-h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #1A1A4D);
  margin: 32px 0 14px;
  letter-spacing: -0.005em;
}

/* Block: callout (info/warning/success) */
.bp-callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.bp-callout::before {
  content: 'ⓘ';
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 700;
}
.bp-callout-info {
  background: rgba(91, 79, 207, 0.04);
  border-color: rgba(91, 79, 207, 0.2);
  color: var(--ink, #1A1A4D);
}
.bp-callout-info::before { color: var(--brand, #5B4FCF); }
.bp-callout-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.25);
}
.bp-callout-warning::before { content: '⚠'; color: #B45309; }
.bp-callout-success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}
.bp-callout-success::before { content: '✓'; color: #047857; }
.bp-callout-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--ink, #1A1A4D);
}
.bp-callout-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(26, 26, 77, 0.8);
  margin: 0;
}
.bp-callout-text strong {
  color: var(--ink, #1A1A4D);
  font-weight: 700;
}

/* Block: checklist */
.bp-checklist {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}
.bp-checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(26, 26, 77, 0.85);
  border-bottom: 1px solid rgba(91, 79, 207, 0.08);
}
.bp-checklist li:last-child { border-bottom: none; }
.bp-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(91, 79, 207, 0.12);
  border: 2px solid var(--brand, #5B4FCF);
}
.bp-checklist li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand, #5B4FCF);
}
.bp-checklist li strong {
  color: var(--ink, #1A1A4D);
  font-weight: 700;
}

/* Block: timeline (vertical) */
.bp-timeline {
  position: relative;
  margin: 28px 0;
  padding-left: 28px;
}
.bp-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(91, 79, 207, 0.25),
    rgba(91, 79, 207, 0.1));
  border-radius: 2px;
}
.bp-timeline-item {
  position: relative;
  padding: 14px 0 14px 18px;
}
.bp-timeline-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--inner, #fafaff);
  border: 2px solid var(--brand, #5B4FCF);
  box-shadow: 0 0 0 4px rgba(91, 79, 207, 0.08);
}
.bp-timeline-item--highlight::before {
  background: var(--brand, #5B4FCF);
  box-shadow: 0 0 0 4px rgba(91, 79, 207, 0.18),
              0 0 0 8px rgba(91, 79, 207, 0.06);
}
.bp-timeline-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand, #5B4FCF);
  margin-bottom: 4px;
}
.bp-timeline-item--highlight .bp-timeline-date {
  color: var(--brand-dark, #3D33A0);
  font-size: 0.875rem;
}
.bp-timeline-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink, #1A1A4D);
  margin: 0 0 4px;
}
.bp-timeline-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(26, 26, 77, 0.75);
  margin: 0;
}
.bp-timeline-item--highlight .bp-timeline-text {
  background: linear-gradient(135deg, rgba(91, 79, 207, 0.06), rgba(91, 79, 207, 0.02));
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--brand, #5B4FCF);
  margin-left: -4px;
}

/* Block: table */
.bp-table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(91, 79, 207, 0.15);
  background: #fff;
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.bp-table thead {
  background: linear-gradient(135deg, rgba(91, 79, 207, 0.08), rgba(91, 79, 207, 0.04));
}
.bp-table th {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink, #1A1A4D);
  padding: 14px 18px;
  border-bottom: 2px solid rgba(91, 79, 207, 0.15);
}
.bp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(91, 79, 207, 0.08);
  color: rgba(26, 26, 77, 0.85);
  line-height: 1.55;
  vertical-align: top;
}
.bp-table tbody tr:last-child td {
  border-bottom: none;
}
.bp-table tbody tr:hover {
  background: rgba(91, 79, 207, 0.025);
}

/* Block: CTA at end */
.bp-cta {
  margin: 48px 0 16px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--brand, #5B4FCF) 0%, #7c70e6 100%);
  border-radius: 18px;
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 40px rgba(91, 79, 207, 0.25);
}
.bp-cta-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.bp-cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 22px;
}
.bp-cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: var(--brand, #5B4FCF);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.bp-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ===== Sources ===== */
.bp-sources-wrap {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 24px 28px;
  background: rgba(26, 26, 77, 0.025);
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 77, 0.08);
}
.bp-sources-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink, #1A1A4D);
  margin: 0 0 14px;
}
.bp-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-sources li {
  font-size: 0.875rem;
  line-height: 1.5;
}
.bp-sources a {
  color: var(--brand, #5B4FCF);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 79, 207, 0.3);
  transition: border-color 0.15s ease;
}
.bp-sources a:hover {
  border-bottom-color: var(--brand, #5B4FCF);
}

/* ===== Related posts ===== */
.bp-related {
  background: #fff;
}
.bp-related-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink, #1A1A4D);
  margin: 0 0 24px;
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bp-related-card {
  display: block;
  text-decoration: none;
  background: var(--inner, #fafaff);
  border: 1px solid rgba(91, 79, 207, 0.1);
  border-radius: 14px;
  padding: 20px 22px;
  transition: all 0.25s ease;
}
.bp-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(91, 79, 207, 0.12);
  border-color: rgba(91, 79, 207, 0.25);
}
.bp-related-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bp-related-emoji--img {
  width: 56px;
  height: 56px;
}
.bp-related-emoji--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.bp-related-cardtitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink, #1A1A4D);
  margin: 0 0 8px;
  line-height: 1.3;
}
.bp-related-cardexcerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(26, 26, 77, 0.65);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .bp-hero-body { grid-template-columns: 1fr 200px; gap: 28px; }
  .bp-hero-visual { width: 200px; height: 200px; }
  .bp-hero-emoji { font-size: 70px; }
  .bp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .bp-hero { padding: 0 40px; }
  .bp-hero-body { grid-template-columns: 1fr; gap: 28px; }
  .bp-hero-visual {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .bp-hero-emoji { font-size: 64px; }
  .bp-hero-meta { gap: 14px; }
  .bp-related-grid { grid-template-columns: 1fr; }
  .bp-callout { grid-template-columns: 1fr; gap: 8px; }
  .bp-callout::before { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .bp-hero { padding: 0 24px; }
  .bp-hero-title { font-size: 1.5rem; }
  .bp-hero-lede { font-size: 0.9375rem; }
  .bp-h2 { font-size: 1.375rem; }
  .bp-h3 { font-size: 1.125rem; }
  .bp-cta { padding: 24px 20px; }
  .bp-cta-title { font-size: 1.25rem; }
  .bp-table th, .bp-table td { padding: 10px 12px; font-size: 0.8125rem; }
}

/* === Rich SVG iconlar (emoji əvəzi) === */
.bp-sources-title { display: flex; align-items: center; gap: 8px; }
.pa-icon-inline { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: middle; object-fit: contain; flex: 0 0 auto; }


/* Mobil blog tipoqrafiyası — başlıq/intro biraz kiçik, body 16px qalır */
@media (max-width: 700px) {
  .bp-intro { font-size: 1.0625rem; }
  .bp-h2 { font-size: 1.25rem; }
  .bp-h3 { font-size: 1.125rem; }
}
