/* ==========================================================================
   INSIGNIA LIVING — Blog Section Stylesheet
   ========================================================================== */

/* Blog Hero Section */
.blog-hero {
  padding: 160px 24px 80px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--frost-border-2);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.08), transparent 70%);
  pointer-events: none;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 20px;
}

.blog-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Filters */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px 24px;
  background: var(--bg-secondary);
  position: sticky;
  top: 79px; /* Nav bar height */
  z-index: 10;
  border-bottom: 1px solid var(--frost-border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--frost-border);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Blog Content & Grid */
.blog-section {
  padding: 80px 24px;
  background: var(--bg-primary);
  min-height: 500px;
}

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

.blog-card {
  background: var(--card-bg-gradient);
  border: 1px solid var(--frost-border-2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  aspect-ratio: auto;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.blog-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--transition-smooth);
}

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

.blog-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13, 11, 8, 0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

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

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s;
}

.blog-card:hover h3 {
  color: var(--accent-gold);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-link i {
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   Individual Article Page Styles
   ========================================================================== */

/* Article Header/Hero */
.article-hero {
  padding: 180px 24px 80px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--frost-border-2);
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.15;
  filter: grayscale(30%) contrast(1.1);
}

.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.article-meta-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.article-category {
  background: var(--accent-gold);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.article-read-time {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 54px);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Article Layout */
.article-layout-section {
  padding: 80px 24px;
  background: var(--bg-primary);
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Article Content & Typography */
.article-content {
  max-width: 760px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 28px;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 48px 0 20px;
  line-height: 1.3;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 36px 0 16px;
  line-height: 1.3;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid var(--frost-border-2);
}

.article-content blockquote {
  border-left: 3px solid var(--accent-gold);
  padding-left: 28px;
  margin: 40px 0;
  font-family: var(--font-heading);
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  margin: 24px 0 24px 24px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Side Column / Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-widget {
  background: var(--card-bg-gradient);
  border: 1px solid var(--frost-border-2);
  border-radius: 16px;
  padding: 30px;
}

.sidebar-widget.sticky {
  position: sticky;
  top: 130px;
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

/* CTA Widget */
.sidebar-cta-widget {
  background: linear-gradient(135deg, rgba(var(--accent-gold-rgb), 0.15) 0%, rgba(var(--accent-gold-rgb), 0.03) 100%);
  border: 1px solid var(--accent-gold-light);
  text-align: center;
}

.sidebar-cta-widget p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Related/Next Articles */
.related-articles {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--frost-border-2);
}

.related-articles-header {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.related-articles-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-primary);
  font-weight: 500;
}

.related-articles-header a {
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .article-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 24px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .blog-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 11px;
    white-space: nowrap;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-sidebar {
    grid-template-columns: 1fr;
  }
}
