/* ═══════════════════════════════════════════════════════════════
   blog.css — Patel Events Blog Pages
   Matches existing site design system (dark luxury aesthetic)
   Mobile-first responsive design
   ═══════════════════════════════════════════════════════════════ */

/* ── BLOG LISTING HERO ────────────────────────────────────────── */
.blog-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, #0d0a06 0%, #1a1108 50%, #0d0a06 100%);
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(10,10,10,0.92) 100%
  );
  z-index: -1;
}

.blog-hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease both;
}

.blog-hero-tag {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.blog-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.blog-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.blog-hero-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ── BLOG GRID SECTION ────────────────────────────────────────── */
.blog-section {
  padding: 5rem 5% 7rem;
  position: relative;
  z-index: 10;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ── BLOG CARD ────────────────────────────────────────────────── */
.blog-card {
  background: rgba(25,25,25,0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(201,168,76,0.35);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: rgba(201,168,76,0.06);
  flex-shrink: 0;
}

.blog-card-img-placeholder {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
  height: 180px;
}

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

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

.blog-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black, #0a0a0a);
  background: var(--gold, #c9a84c);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.04em;
}

.blog-card-sep {
  color: var(--gold, #c9a84c);
  opacity: 0.5;
}

.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white, #faf8f4);
  line-height: 1.3;
  margin: 0;
  transition: color 0.25s;
}

.blog-card:hover .blog-card-title {
  color: var(--gold, #c9a84c);
}

.blog-card-excerpt {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245,240,232,0.55);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: auto;
}

.blog-card-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(245,240,232,0.4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.blog-card-read-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
  white-space: nowrap;
  transition: letter-spacing 0.25s;
}

.blog-card:hover .blog-card-read-more {
  letter-spacing: 0.2em;
}

/* ── EMPTY STATE ──────────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 5rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(245,240,232,0.4);
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── POST HERO ────────────────────────────────────────────────── */
.blog-post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 5% 4rem;
  overflow: hidden;
  background: #0a0a0a;
}

.blog-post-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.97) 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(10,10,10,0.35) 100%
  );
  z-index: 1;
}

.blog-post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  animation: fadeUp 0.8s ease both;
}

.blog-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-post-cat-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black, #0a0a0a);
  background: var(--gold, #c9a84c);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.blog-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white, #faf8f4);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.blog-post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: rgba(245,240,232,0.5);
  font-weight: 400;
}

.blog-post-sep {
  color: var(--gold, #c9a84c);
  opacity: 0.5;
}

/* ── POST CONTENT SECTION ─────────────────────────────────────── */
.blog-post-section {
  padding: 4rem 5% 6rem;
  position: relative;
  z-index: 10;
}

.blog-post-container {
  max-width: 820px;
  margin: 0 auto;
}

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.blog-breadcrumb {
  margin-bottom: 2.5rem;
}

.blog-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  color: rgba(245,240,232,0.4);
}

.blog-breadcrumb li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: var(--gold, #c9a84c);
  opacity: 0.5;
}

.blog-breadcrumb a {
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: var(--gold, #c9a84c);
}

/* ── ARTICLE BODY ─────────────────────────────────────────────── */
.blog-post-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(245,240,232,0.82);
  line-height: 1.9;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--white, #faf8f4);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.blog-post-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.blog-post-body h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.blog-post-body h4 { font-size: 1.1rem; color: var(--gold, #c9a84c); }

.blog-post-body p {
  margin: 0 0 1.5rem;
}

.blog-post-body a {
  color: var(--gold, #c9a84c);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.blog-post-body a:hover { opacity: 0.75; }

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-post-body li {
  margin-bottom: 0.6rem;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--gold, #c9a84c);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(201,168,76,0.05);
  font-style: italic;
  color: rgba(245,240,232,0.65);
  border-radius: 0 8px 8px 0;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

.blog-post-body strong { color: var(--white, #faf8f4); font-weight: 600; }
.blog-post-body em { font-style: italic; }

.blog-post-body hr {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.2);
  margin: 2.5rem 0;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  overflow-x: auto;
  display: block;
}

.blog-post-body th,
.blog-post-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.blog-post-body th {
  color: var(--gold, #c9a84c);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TAGS ─────────────────────────────────────────────────────── */
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.blog-post-tags-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
}

.blog-post-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

/* ── BACK BUTTON ──────────────────────────────────────────────── */
.blog-post-back {
  margin-top: 3rem;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 1080px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .blog-section {
    padding: 4rem 5% 6rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hero */
  .blog-hero {
    min-height: 40vh;
    padding: 7rem 5% 3rem;
  }

  .blog-hero-desc {
    font-size: 0.82rem;
  }

  /* Grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-section {
    padding: 3rem 5% 5rem;
  }

  /* Card — horizontal layout on tablet-ish mobile */
  .blog-card-img-wrap {
    height: 190px;
  }

  .blog-card-body {
    padding: 1.25rem;
    gap: 0.6rem;
  }

  .blog-card-title {
    font-size: 1.15rem;
  }

  /* Post hero */
  .blog-post-hero {
    min-height: 50vh;
    padding: 7rem 5% 3rem;
  }

  .blog-post-title {
    font-size: clamp(1.75rem, 7vw, 2.8rem);
  }

  .blog-post-byline {
    font-size: 0.68rem;
    gap: 0.35rem;
  }

  /* Post content */
  .blog-post-section {
    padding: 2.5rem 5% 4rem;
  }

  .blog-post-body {
    font-size: 0.9rem;
  }

  .blog-post-body blockquote {
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
  }

  .blog-breadcrumb {
    margin-bottom: 1.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Hero */
  .blog-hero {
    padding: 6.5rem 4% 2.5rem;
  }

  .blog-hero-tag {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
  }

  /* Grid */
  .blog-section {
    padding: 2.5rem 4% 4rem;
  }

  .blog-grid {
    gap: 1rem;
  }

  /* Card */
  .blog-card {
    border-radius: 16px;
  }

  .blog-card-img-wrap {
    height: 170px;
  }

  .blog-card-body {
    padding: 1rem 1.1rem 1.1rem;
  }

  .blog-card-title {
    font-size: 1.05rem;
  }

  .blog-card-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .blog-card-read-more {
    font-size: 0.6rem;
  }

  /* Post hero */
  .blog-post-hero {
    min-height: 45vh;
    padding: 6.5rem 4% 2.5rem;
  }

  .blog-post-hero-content {
    width: 100%;
  }

  .blog-post-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .blog-post-byline {
    font-size: 0.63rem;
  }

  /* Post content */
  .blog-post-section {
    padding: 2rem 4% 3.5rem;
  }

  .blog-post-body {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .blog-post-body h2 { font-size: 1.3rem; }
  .blog-post-body h3 { font-size: 1.1rem; }

  .blog-post-body ul,
  .blog-post-body ol {
    padding-left: 1.1rem;
  }

  .blog-breadcrumb ol {
    font-size: 0.62rem;
  }

  /* Tags */
  .blog-post-tags {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }

  /* Back button */
  .blog-post-back {
    margin-top: 2rem;
  }

  .blog-post-back .btn-glass {
    width: 100%;
    justify-content: center;
  }

  /* Empty state */
  .blog-empty {
    padding: 3rem 1rem;
    font-size: 1.2rem;
  }
}
