/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BLOG STYLES - WENDAWENDENT PROTOCOL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* --- BLOG HERO --- */
.blog-hero {
  background: var(--bg-color, #020202);
  padding: 120px 20px 60px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 168, 64, 0.1);
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-label {
  display: inline-block;
  color: var(--gold, #C9A840);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  background: rgba(201, 168, 64, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(201, 168, 64, 0.3);
}

.blog-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.blog-hero-title .gold {
  color: var(--gold, #C9A840);
}

.blog-hero-sub {
  color: #888;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
}

/* --- FILTERS & SEARCH --- */
.blog-filters-wrap {
  background: var(--bg-color, #020202);
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-filters {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px; /* For scrollbar space */
  scrollbar-width: none; /* Firefox */
}

.blog-filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-family: 'Inter', 'Noto Sans Ethiopic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.blog-filter-btn.active {
  background: var(--gold, #C9A840);
  border-color: var(--gold, #C9A840);
  color: #000;
}

/* Specific category button coloring applied via inline style --cat-color */
.blog-filter-btn[style*="--cat-color"]:hover,
.blog-filter-btn[style*="--cat-color"].active {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #000;
  box-shadow: 0 0 15px var(--cat-color);
}

.blog-search-wrap {
  background: #0f0f0f;
  padding: 32px 20px 0;
}

.blog-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.5;
}

.blog-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px 16px 50px;
  color: #fff;
  font-family: 'Inter', 'Noto Sans Ethiopic', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--gold, #C9A840);
  box-shadow: 0 0 0 2px rgba(201, 168, 64, 0.2);
}

/* --- MAIN LISTING GRID --- */
.blog-main {
  background: #0f0f0f;
  padding: 40px 20px 80px;
  min-height: 50vh;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.blog-card:hover {
  border-color: rgba(201, 168, 64, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #111, transparent);
}

.blog-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* For cards without image */
.blog-card.no-image {
  border-left: 4px solid var(--cat-color, #C9A840);
}

.blog-card-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.blog-card-category-badge {
  background: rgba(var(--cat-color-rgb, 201, 168, 64), 0.1);
  color: var(--cat-color, #C9A840);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-readtime {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.blog-card-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1a1a1a;
  padding-top: 16px;
  margin-top: auto;
}

.blog-card-date {
  color: #666;
  font-size: 12px;
}

.blog-card-link {
  color: var(--gold, #C9A840);
  font-size: 14px;
  font-weight: 600;
}

/* --- STATES --- */
.blog-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.blog-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201, 168, 64, 0.2);
  border-top-color: var(--gold, #C9A840);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SINGLE ARTICLE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.article-header {
  background: var(--bg-color, #020202);
  padding: 120px 20px 60px;
  text-align: center;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-category-label {
  display: inline-block;
  color: var(--cat-color, #C9A840);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.article-title {
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.article-meta-row {
  color: #888;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.article-meta-row .dot {
  color: #444;
}

.article-cover-wrap {
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.article-cover-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  padding: 40px 20px 80px;
  align-items: flex-start;
}

.article-body-wrapper {
  flex: 1;
  min-width: 0; /* prevent flex blowout */
}

.article-body {
  background: #0f0f0f;
  padding: 48px;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  max-width: 720px;
  margin: 0 auto;
  
  font-family: 'Inter', 'Noto Sans Ethiopic', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #D0D0D0;
}

@media (max-width: 768px) {
  .article-body {
    padding: 32px 20px;
  }
}

/* Injected HTML content styles */
.article-body h2 {
  color: var(--gold, #C9A840);
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 168, 64, 0.2);
  line-height: 1.3;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-body p {
  color: #C0C0C0;
  margin-bottom: 20px;
}

.article-body strong {
  color: #F0F0F0;
  font-weight: 600;
}

.article-body ul, 
.article-body ol {
  padding-left: 24px;
  color: #C0C0C0;
  margin-bottom: 24px;
}

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

.article-body blockquote {
  border-left: 4px solid var(--gold, #C9A840);
  padding-left: 20px;
  color: var(--gold, #C9A840);
  font-style: italic;
  margin: 32px 0;
  background: rgba(201, 168, 64, 0.05);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.article-body a {
  color: var(--gold, #C9A840);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: #E8C96A;
}

.article-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- SIDEBAR --- */
.article-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 90px; /* Assuming navbar is ~80px */
}

@media (max-width: 1024px) {
  .article-layout {
    flex-direction: column;
  }
  .article-sidebar {
    width: 100%;
    position: static;
    display: none; /* Hide on mobile/tablet from side layout */
  }
  .article-sidebar.mobile-show {
    display: block; /* Show at bottom via JS or specific class */
  }
}

.sidebar-cta {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 64, 0.2);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 0 40px rgba(201, 168, 64, 0.06);
}

.sidebar-cta-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.sidebar-cta h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-cta p {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.4;
}

.sidebar-cta-btn {
  display: block;
  background: var(--gold, #C9A840);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 64, 0.3);
}

.sidebar-cta-note {
  display: block;
  color: #666;
  font-size: 12px;
}

.sidebar-related {
  margin-top: 32px;
}

.sidebar-related h4 {
  color: #888;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.related-card {
  display: block;
  background: #111;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  text-decoration: none;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related-card:hover {
  border-color: rgba(201, 168, 64, 0.3);
  background: #151515;
}

.related-category {
  color: var(--cat-color, #C9A840);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.related-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- BOTTOM CTA --- */
.article-cta-bottom {
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
  padding: 80px 20px;
  text-align: center;
}

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

.article-cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.article-cta-inner h2 .gold {
  color: var(--gold, #C9A840);
}

.article-cta-inner p {
  color: #888;
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-btn-large {
  display: inline-block;
  background: var(--gold, #C9A840);
  color: #000;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-large:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 168, 64, 0.3);
}

.cta-price {
  display: block;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* --- INLINE CTA --- */
.inline-article-cta {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 64, 0.3);
  border-radius: 14px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 0 40px rgba(201, 168, 64, 0.08);
}
.inline-cta-badge {
  display: inline-block;
  background: rgba(201, 168, 64, 0.1);
  color: #C9A840;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.inline-cta-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.inline-cta-desc {
  color: #888;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.inline-cta-price {
  color: #C9A840;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.inline-cta-btn {
  display: inline-block;
  background: #C9A840;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inline-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 64, 0.3);
}

/* Loading Skeletons */
.skeleton {
  background: #222;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(201,168,64,0), rgba(201,168,64,0.05), rgba(201,168,64,0));
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* --- SHARE BUTTONS --- */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.share-label {
  color: #888;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.telegram {
  background: #0088cc;
}

/* --- SIDEBAR TOC --- */
.sidebar-toc {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.sidebar-toc h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc li {
  margin-bottom: 12px;
}

.sidebar-toc li:last-child {
  margin-bottom: 0;
}

.sidebar-toc a {
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  line-height: 1.4;
}

.sidebar-toc a:hover {
  color: var(--gold, #C9A840);
}

/* --- MOBILE STICKY CTA --- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201, 168, 64, 0.2);
  padding: 16px 20px;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-sticky-text {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.mobile-sticky-btn {
  background: var(--gold, #C9A840);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }
  
  /* Add padding to bottom of body to ensure content is not hidden behind sticky CTA */
  body {
    padding-bottom: 80px;
  }
}

/* --- LEAD CAPTURE BANNER --- */
.blog-lead-capture {
  background: linear-gradient(135deg, #1a1505 0%, #0d0d0d 100%);
  border: 1px solid rgba(201, 168, 64, 0.3);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  grid-column: span 1;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-lead-capture {
    grid-column: span 2; /* Span full width on tablet */
  }
}

.blog-lead-capture:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(201, 168, 64, 0.15);
  border-color: rgba(201, 168, 64, 0.5);
}

.lead-capture-icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.lead-capture-title {
  color: var(--gold, #C9A840);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.lead-capture-desc {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 280px;
}

.lead-capture-btn {
  background: #0088cc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-capture-btn:hover {
  background: #0099e6;
  transform: scale(1.05);
}
