/* ═══════════════════════════════════════════════════════════
   EMPIRE BLOG — blog.css
   Extends the site's style.css. Uses the same CSS variables.
   ═══════════════════════════════════════════════════════════ */

/* ── Blog Page Banner ─────────────────────────────────────── */
.blog-banner {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--royal-black);
  border-bottom: 1px solid rgba(223, 183, 107, 0.15);
}

.blog-banner .heading {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--primary-color);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.blog-banner .subheading {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* ── Featured Post (Hero) ─────────────────────────────────── */
.blog-featured { padding: 60px 0 40px; }

.blog-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-featured-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.blog-featured-image {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-color: #1e1e1e;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s ease;
}

.blog-featured-link:hover .blog-featured-image {
  transform: scale(1.02);
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.blog-featured-content {
  padding: 40px 48px;
  max-width: 680px;
}

.blog-featured-date {
  font-size: 0.8rem;
  color: var(--primary-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--heading-font);
}

.blog-featured-title {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 400;
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-read-more {
  display: inline-block;
}

/* ── Posts Grid ───────────────────────────────────────────── */
.blog-grid-section { padding: 0 0 60px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.blog-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.blog-post-card:hover {
  border-color: rgba(223,183,107,0.3);
  transform: translateY(-4px);
  color: inherit;
}

.blog-card-image {
  overflow: hidden;
  height: 220px;
  background: #222;
}

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

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

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-family: var(--heading-font);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.blog-card-title {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  font-family: var(--heading-font);
}

/* ── Pagination ───────────────────────────────────────────── */
.blog-pagination-section { padding: 0 0 80px; }

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.blog-pagination-link {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(223,183,107,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.blog-pagination-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.blog-pagination-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.blog-breadcrumb {
  padding: 150px 0 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.blog-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-breadcrumb a:hover { color: var(--primary-color); }

.blog-breadcrumb .sep {
  margin: 0 8px;
  color: var(--primary-color);
}

.blog-breadcrumb .current { color: rgba(255,255,255,0.7); }

/* ── Single Post Hero ─────────────────────────────────────── */
.post-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.2) 100%);
}

.post-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 60px;
  width: 100%;
}

.post-hero-content .container { max-width: 900px; }

.post-hero-category {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  color: var(--primary-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.post-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-hero-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.post-hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Single Post Body ─────────────────────────────────────── */
.post-body-section { padding: 60px 0 80px; }

.post-body-section .container {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .post-body-section .container {
    grid-template-columns: 1fr;
  }
}

/* ── Article Content ──────────────────────────────────────── */
.post-content { min-width: 0; }

.post-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.post-content h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 400;
  margin: 48px 0 20px;
  letter-spacing: 0.05em;
}

.post-content h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 400;
  margin: 36px 0 16px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
  display: block;
}

.post-content blockquote {
  border-left: 2px solid var(--primary-color);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

.post-content a {
  color: var(--primary-color);
  border-bottom: 1px solid rgba(223,183,107,0.3);
}

/* ── Related Posts Sidebar ────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.post-sidebar-title {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  color: var(--primary-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(223,183,107,0.2);
}

.related-post {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.related-post:hover { opacity: 0.75; color: inherit; }

.related-post-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #222;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-info { flex: 1; min-width: 0; }

.related-post-date {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-family: var(--heading-font);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.related-post-title {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 404 ──────────────────────────────────────────────────── */
.blog-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0;
}

.blog-404-code {
  font-family: var(--heading-font);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.blog-404-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.blog-404 p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
