/* ═══════════════════════════════════════════════════════
   blog-single.css — Skyline Drone Solutions
   Page-specific styles for blog-single.html
   ═══════════════════════════════════════════════════════ */

/* ───────── POST HERO ───────── */
.post-hero {
  background: var(--navy-dark); padding: 9rem 0 4rem;
  position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(47,107,255,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.post-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,0.35) 50%, transparent);
}
.post-hero-inner { position: relative; z-index: 1; max-width: 760px; }

/* ───────── POST HERO META ───────── */
.post-hero-meta {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap;
}
.post-author-row { display: flex; align-items: center; gap: 0.75rem; }
.post-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.12); }
.post-author-name { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.post-author-title { font-size: 0.72rem; color: rgba(255,255,255,0.38); }
.post-meta-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }
.post-meta-item { display: flex; flex-direction: column; gap: 2px; }
.post-meta-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.post-meta-value { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.65); }

/* ───────── POST HERO IMAGE ───────── */
.post-hero-img { position: relative; overflow: hidden; max-height: 520px; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.post-hero-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--gray-100), transparent);
}

/* ───────── POST CATEGORY BADGES ───────── */
.post-cat {
  display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.75rem;
  border-radius: 100px; margin-bottom: 1.5rem;
}
.cat-real-estate { background: rgba(16,185,129,0.12); color: #10b981; }

/* ───────── BLOG BODY LAYOUT ───────── */
.blog-body { background: var(--gray-100); padding: 4rem 0 6rem; }
.blog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }

/* ───────── LEFT SIDEBAR ───────── */
.blog-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.sidebar-card-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 6px;
}
.sidebar-card-label::before { content: ''; display: block; width: 16px; height: 1.5px; background: var(--blue); }

/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.toc-item a {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.82rem; color: var(--gray-600); text-decoration: none;
  padding: 0.5rem 0; border-left: 2px solid transparent;
  padding-left: 0.75rem; margin-left: -0.75rem;
  transition: color 0.2s, border-color 0.2s; line-height: 1.4;
}
.toc-item a:hover { color: var(--blue); border-left-color: var(--blue); }
.toc-item.active a { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.toc-item.h3 a { padding-left: 1.5rem; font-size: 0.78rem; color: var(--gray-400); }
.toc-item.h3 a:hover { color: var(--blue); }

/* AUTHOR CARD */
.author-card-top { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-200); flex-shrink: 0; }
.author-name { font-size: 0.925rem; font-weight: 700; color: var(--text-dark); }
.author-role { font-size: 0.72rem; color: var(--gray-400); }
.author-bio { font-size: 0.8rem; line-height: 1.65; color: var(--gray-600); margin-bottom: 1rem; }
.author-socials { display: flex; gap: 0.4rem; }
.author-social {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.author-social:hover { border-color: var(--blue); color: var(--blue); }

/* TAGS */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-pill {
  font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border-radius: 100px; border: 1.5px solid var(--gray-200);
  color: var(--gray-600); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.tag-pill:hover { border-color: var(--blue); color: var(--blue); }

/* RELATED SIDEBAR */
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-item { display: flex; gap: 0.9rem; text-decoration: none; }
.related-img { width: 64px; height: 52px; border-radius: 7px; object-fit: cover; flex-shrink: 0; transition: transform 0.3s; }
.related-item:hover .related-img { transform: scale(1.04); }
.related-title { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; transition: color 0.2s; }
.related-item:hover .related-title { color: var(--blue); }
.related-meta { font-size: 0.7rem; color: var(--gray-400); margin-top: 3px; }

/* NEWSLETTER SIDEBAR */
.sidebar-newsletter {
  background: var(--navy-dark); border-radius: 12px; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.sidebar-newsletter h4 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 800;
  color: #fff; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.sidebar-newsletter p { font-size: 0.78rem; color: rgba(255,255,255,0.42); line-height: 1.6; margin-bottom: 1rem; }
.sidebar-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-input {
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 7px; padding: 0.55rem 0.9rem; font-size: 0.8rem; color: #fff;
  outline: none; font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.sidebar-input::placeholder { color: rgba(255,255,255,0.28); }
.sidebar-input:focus { border-color: var(--blue); }
.sidebar-submit {
  background: var(--blue); color: #fff; border: none; border-radius: 7px;
  padding: 0.55rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s; font-family: 'Inter', sans-serif;
}
.sidebar-submit:hover { background: var(--blue-dark); }

/* SHARE BAR */
.share-bar { display: flex; align-items: center; gap: 0.5rem; }
.share-label {
  font-size: 0.72rem; font-weight: 600; color: var(--gray-400);
  letter-spacing: 0.06em; text-transform: uppercase; margin-right: 0.25rem;
}
.share-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s; background: #fff;
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ───────── ARTICLE CONTENT ───────── */
.article-content {
  background: #fff; border-radius: 16px; padding: 3.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.article-lede {
  font-size: 1.15rem; line-height: 1.75; color: var(--gray-600); font-weight: 400;
  margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--gray-200);
}
.article-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 800;
  color: var(--text-dark); line-height: 1.2; letter-spacing: -0.03em; margin: 2.75rem 0 1rem;
}
.article-content h2:first-of-type { margin-top: 0; }
.article-content h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.3; letter-spacing: -0.02em; margin: 2rem 0 0.75rem;
}
.article-content p { font-size: 0.975rem; line-height: 1.85; color: #374151; margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.25rem; }
.article-content li { font-size: 0.975rem; line-height: 1.8; color: #374151; margin-bottom: 0.4rem; }
.article-content strong { color: var(--text-dark); font-weight: 700; }
.article-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(47,107,255,0.3); transition: text-decoration-color 0.2s; }
.article-content a:hover { text-decoration-color: var(--blue); }

/* PULL QUOTE */
.pull-quote {
  border-left: 4px solid var(--blue); padding: 1.5rem 2rem;
  margin: 2.5rem 0; background: var(--gray-100); border-radius: 0 8px 8px 0;
}
.pull-quote p {
  font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.5; letter-spacing: -0.02em; margin: 0 0 0.6rem;
  font-style: italic; font-family: 'Outfit', sans-serif;
}
.pull-quote cite { font-size: 0.78rem; color: var(--gray-400); font-style: normal; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* INLINE IMAGE */
.article-img { border-radius: 10px; overflow: hidden; margin: 2.5rem 0; }
.article-img img { width: 100%; display: block; object-fit: cover; max-height: 420px; }
.article-img figcaption { font-size: 0.78rem; color: var(--gray-400); padding: 0.65rem 0.25rem 0; text-align: center; font-style: italic; }

/* STAT BOX */
.stat-box {
  background: var(--navy-dark); border-radius: 10px; padding: 2rem;
  margin: 2.5rem 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.stat-box-item { text-align: center; }
.stat-box-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; color: #fff; line-height: 1; margin-bottom: 0.3rem; }
.stat-box-label { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.08em; }

/* POST FOOTER */
.post-footer {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.post-footer-tags { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.post-footer-tags span { font-size: 0.72rem; font-weight: 600; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; }

/* ───────── RELATED SECTION (bottom) ───────── */
.related-section { background: var(--gray-100); padding: 4rem 0 6rem; }
.related-header { margin-bottom: 2.5rem; }
.related-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--text-dark); letter-spacing: -0.03em; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.related-card {
  background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,0.12); }
.related-card-img { aspect-ratio: 16/10; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 1.5rem; }
.related-card-cat { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.related-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; letter-spacing: -0.02em; transition: color 0.2s; }
.related-card:hover .related-card-body h3 { color: var(--blue); }
.related-card-meta { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.75rem; }

/* ───────── READING PROGRESS BAR ───────── */
.read-progress {
  position: fixed; top: 68px; left: 0; right: 0; height: 3px;
  background: rgba(47,107,255,0.15); z-index: 99;
}
.read-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  width: 0%; transition: width 0.1s linear;
}

/* ───────── MEDIA QUERIES ───────── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .post-hero { padding: 7rem 0 3rem; }
  .article-content { padding: 2rem; }
  .stat-box { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero-meta { gap: 1.25rem; }
  .post-footer { flex-direction: column; }
}
