/* ===========================================
   STOCKJELLI BLOG STYLES
   Shared across all blog pages
   =========================================== */

/* Reset & Base — inherits from main style.css */
.blog-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 20px 60px; /* top accounts for fixed header + ticker */
}

/* Back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(77, 163, 255, 0.8);
  text-decoration: none;
  margin-bottom: 24px;
  transition: opacity 0.15s;
}
.blog-back:hover { opacity: 0.7; }

/* Article header */
.blog-hero-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(77, 163, 255, 0.85);
  margin-bottom: 10px;
}

.blog-tag.tag-subscribers {
  color: rgba(34, 197, 94, 0.85);
}

.blog-post-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1.2;
  margin: 0 0 10px;
}

.blog-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 32px;
}

/* Article body */
.blog-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.blog-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 36px 0 14px;
}

.blog-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 28px 0 10px;
}

.blog-body p {
  margin: 0 0 18px;
}

.blog-body ul, .blog-body ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.blog-body li {
  margin-bottom: 8px;
}

.blog-body strong {
  color: rgba(255, 255, 255, 0.92);
}

.blog-body a {
  color: rgba(77, 163, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body a:hover { opacity: 0.75; }

.blog-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(18, 24, 38, 0.5);
  border-left: 3px solid rgba(77, 163, 255, 0.4);
  border-radius: 0 10px 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.blog-body img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Callout box */
.blog-callout {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  backdrop-filter: blur(8px);
}

.blog-callout-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 8px;
}

/* Paywall blur section */
.blog-paywall-wrapper {
  position: relative;
  margin-top: 32px;
}

.blog-paywall-blurred {
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
}

.blog-paywall-overlay {
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 14, 24, 0.85) 30%);
  z-index: 2;
}

.blog-paywall-card {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 380px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.blog-paywall-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.blog-paywall-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 8px;
}

.blog-paywall-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

.blog-paywall-email {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e6edf3;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.blog-paywall-email:focus {
  border-color: rgba(77, 163, 255, 0.4);
}
.blog-paywall-email::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.blog-paywall-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4da3ff, #6c7cff);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.blog-paywall-btn:hover { opacity: 0.85; }

.blog-paywall-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}

.blog-paywall-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 8px;
  display: none;
}

/* Bottom CTA */
.blog-bottom-cta {
  margin-top: 48px;
  padding: 24px;
  background: rgba(18, 24, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.blog-bottom-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.blog-bottom-cta a {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4da3ff, #6c7cff);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.blog-bottom-cta a:hover { opacity: 0.85; }

/* Responsive */
@media (max-width: 640px) {
  .blog-page { padding: 110px 16px 40px; }
  .blog-post-title { font-size: 1.45rem; }
  .blog-body { font-size: 0.95rem; }
  .blog-paywall-card { padding: 24px 20px; margin: 0 10px; }
  .blog-index { padding: 110px 16px 40px; }
}

/* =========================================
   BLOG INDEX — Weekly Report Dropdowns
   ========================================= */

.blog-week-group {
  margin-bottom: 28px;
}

.blog-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(18, 24, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.blog-week-header:hover {
  background: rgba(18, 24, 38, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.blog-week-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e6edf3;
}

.blog-week-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 10px;
  font-weight: 400;
}

.blog-week-arrow {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}
.blog-week-group.open .blog-week-arrow {
  transform: rotate(180deg);
}

.blog-week-content {
  display: none;
  padding: 12px 0 0;
}
.blog-week-group.open .blog-week-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* Smaller cards inside dropdowns */
.blog-week-content .blog-card {
  flex: none;
}

/* Section dividers */
.blog-section-divider {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}