/**
 * Blog Page Styles - The Journeyman
 * Modern, clean redesign using design tokens
 * 
 * DESIGN PRINCIPLES:
 * - Dark, cinematic aesthetic
 * - Orange accent highlights
 * - Glassmorphism cards
 * - Smooth micro-interactions
 */

/* ========================================
   CSS VARIABLES (Blog-specific)
   ======================================== */
:root {
  /* Accent Colors */
  --blog-accent: var(--color-primary, #ff4d00);
  --blog-accent-hover: var(--color-primary-hover, #ff6b2b);
  --blog-accent-soft: rgba(255, 77, 0, 0.08);
  --blog-glow: rgba(255, 77, 0, 0.2);
  --blog-glow-strong: rgba(255, 77, 0, 0.35);
  
  /* Surface Layers - Creating depth through distinct levels */
  --blog-bg-deep: #06080a;              /* Deepest background */
  --blog-bg-base: #0c0e12;              /* Page background */
  --blog-surface: #12151a;              /* Raised surface */
  --blog-card: #181c24;                 /* Card background */
  --blog-card-elevated: #1e232d;        /* Elevated card/hover */
  
  /* Border Colors - More visible separation */
  --blog-border: rgba(255, 255, 255, 0.1);
  --blog-border-hover: rgba(255, 255, 255, 0.2);
  --blog-border-accent: rgba(255, 77, 0, 0.4);
  
  /* Text Colors - Better contrast */
  --blog-text: #f0f2f5;
  --blog-text-secondary: #c9cdd4;
  --blog-text-muted: #8b919c;
  
  /* Teal accent for variety */
  --blog-teal: #7fd1c7;
  --blog-teal-soft: rgba(127, 209, 199, 0.1);
}

/* ========================================
   PAGE LAYOUT
   ======================================== */
/* Blog page background - applied to body via .page-wrap class */
body.page-wrap {
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 77, 0, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--blog-bg-deep) 0%, var(--blog-bg-base) 30%, var(--blog-bg-base) 100%);
  background-color: var(--blog-bg-base); /* Fallback to prevent white edges */
  min-height: 100vh;
  color: var(--blog-text);
}

/* Subtle noise texture for depth */
body.page-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 0;
}

/* Ensure html also has the dark background to prevent white edges */
html:has(body.page-wrap) {
  background-color: var(--blog-bg-deep);
}

/* ========================================
   BLOG HERO SECTION
   ======================================== */
.blog-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(180deg, rgba(255, 77, 0, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--blog-bg-deep) 0%, var(--blog-bg-base) 100%);
  border-bottom: 1px solid var(--blog-border);
}

/* Glowing orb effect */
.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, var(--blog-glow) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.8;
  filter: blur(60px);
}

/* Secondary teal accent */
.blog-hero::after {
  content: '';
  position: absolute;
  top: 50px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, var(--blog-teal-soft) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
  filter: blur(80px);
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.15) 0%, rgba(255, 77, 0, 0.05) 100%);
  border: 1px solid rgba(255, 77, 0, 0.4);
  font-size: 12px;
  font-weight: 600;
  color: var(--blog-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-badge i {
  font-size: 14px;
}

.blog-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--blog-text-secondary);
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   BLOG CONTROLS BAR
   ======================================== */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--blog-border);
}

/* Search Input */
.blog-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.blog-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--transition-base);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--blog-accent);
  background: var(--blog-card);
  box-shadow: 0 0 0 3px var(--blog-glow), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-search input::placeholder {
  color: var(--blog-text-muted);
}

.blog-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blog-text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Category Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--blog-text-muted);
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.chip:hover {
  color: var(--blog-text);
  border-color: var(--blog-border-hover);
  background: var(--blog-card);
  transform: translateY(-1px);
}

.chip.active {
  color: #000;
  background: linear-gradient(135deg, var(--blog-accent) 0%, var(--blog-accent-hover) 100%);
  border-color: var(--blog-accent);
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.3);
  font-weight: 600;
}

/* ========================================
   BLOG LAYOUT
   ======================================== */
.blog-layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

@media (min-width: 1100px) {
  .blog-layout-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.blog-section {
  min-width: 0;
}

/* Section Header */
.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 i {
  color: var(--blog-accent);
  font-size: 1.2rem;
}

.section-header p {
  color: var(--blog-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   FEATURED POST CARD
   ======================================== */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(145deg, var(--blog-card) 0%, var(--blog-surface) 100%);
  border: 1px solid var(--blog-border-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--transition-slow);
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.featured:hover {
  border-color: var(--blog-accent);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--blog-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-6px);
}

@media (min-width: 768px) {
  .featured {
    grid-template-columns: 1.2fr 1fr;
  }
}

.featured-art {
  position: relative;
  min-height: 260px;
  background: linear-gradient(135deg, #1a1e28 0%, #10131a 100%);
  overflow: hidden;
}

.featured-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured:hover .featured-art img {
  transform: scale(1.08);
}

.featured-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(255, 77, 0, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(127, 209, 199, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--blog-accent) 0%, #ff6b2b 100%);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.4);
}

.featured-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 77, 0, 0.02) 100%);
}

.featured-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--blog-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.featured-title {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.featured-excerpt {
  font-size: 15px;
  color: var(--blog-text-secondary);
  line-height: 1.75;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--blog-text-muted);
}

.featured .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured .meta i {
  color: var(--blog-accent);
  font-size: 11px;
}

/* ========================================
   BLOG CARDS GRID
   ======================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.card {
  background: linear-gradient(160deg, var(--blog-card) 0%, var(--blog-surface) 100%);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card:hover {
  border-color: var(--blog-border-hover);
  transform: translateY(-6px);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 77, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background: linear-gradient(160deg, var(--blog-card-elevated) 0%, var(--blog-card) 100%);
}

.card:hover .thumb img {
  transform: scale(1.08);
}

.thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1e28 0%, #10131a 100%);
  overflow: hidden;
  min-height: 180px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 77, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.card-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--blog-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
  border: 1px solid rgba(255, 77, 0, 0.2);
}

.card-body {
  padding: 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-base);
}

.card:hover h3 {
  color: var(--blog-accent);
}

.card p {
  font-size: 14px;
  color: var(--blog-text-secondary);
  line-height: 1.75;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--blog-text-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--blog-border);
}

.card .meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card .meta i {
  color: var(--blog-accent);
  font-size: 10px;
}

/* ========================================
   PAGINATION
   ======================================== */
.paginate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 48px 0;
  margin-top: 32px;
}

.paginate .btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--blog-surface);
  border: 1px solid var(--blog-border-hover);
  color: var(--blog-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.paginate .btn:hover {
  border-color: var(--blog-accent);
  color: var(--blog-accent);
  background: var(--blog-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.paginate .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.paginate span {
  font-size: 13px;
  color: var(--blog-text-muted);
  padding: 8px 16px;
  background: var(--blog-surface);
  border-radius: var(--radius-md);
}

/* ========================================
   NEWSLETTER SUBSCRIBE
   ======================================== */
.subscribe {
  background: 
    linear-gradient(135deg, rgba(255, 77, 0, 0.1) 0%, rgba(255, 77, 0, 0.02) 50%, var(--blog-card) 100%);
  border: 1px solid rgba(255, 77, 0, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.subscribe::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.subscribe h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  position: relative;
}

.subscribe > p {
  font-size: 15px;
  color: var(--blog-text-secondary);
  margin: 0 0 24px;
  position: relative;
}

.subscribe-form-row {
  display: flex;
  gap: 12px;
}

.subscribe input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border-hover);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  transition: all var(--transition-base);
  position: relative;
}

.subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--blog-accent);
  background: var(--blog-card);
  box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.15);
}

.subscribe input[type="email"]::placeholder {
  color: var(--blog-text-muted);
}

.subscribe button[type="submit"] {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--blog-accent) 0%, #ff6b2b 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.3);
}

.subscribe button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff6b2b 0%, var(--blog-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.subscribe .form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  text-align: center;
}

.subscribe .form-message.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.subscribe .form-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@media (max-width: 480px) {
  .subscribe-form-row {
    flex-direction: column;
  }
  
  .subscribe button[type="submit"] {
    width: 100%;
  }
}

/* ========================================
   SIDEBAR
   ======================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1100px) {
  .blog-sidebar {
    position: sticky;
    top: 96px;
    height: fit-content;
  }
}

/* Sidebar Card */
.sidebar-card {
  background: linear-gradient(160deg, var(--blog-card) 0%, var(--blog-surface) 100%);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar-card h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-text);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--blog-border);
  display: flex;
  align-items: center;
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.popular-post:hover .popular-post-title {
  color: var(--blog-accent);
}

.popular-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1a1e28 0%, #10131a 100%);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--blog-border);
}

.popular-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-info {
  flex: 1;
  min-width: 0;
}

.popular-post-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--blog-text);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-base);
}

.popular-post-date {
  font-size: 11px;
  color: var(--blog-text-muted);
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 14px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--blog-text-muted);
  text-decoration: none;
  transition: all var(--transition-base);
}

.tag:hover {
  border-color: var(--blog-accent);
  color: var(--blog-accent);
  background: var(--blog-card);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.15);
}

/* ========================================
   BLOG BUTTONS
   ======================================== */
.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border-hover);
  border-radius: var(--radius-md);
  color: var(--blog-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-btn:hover {
  border-color: var(--blog-border-hover);
  background: var(--blog-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-btn--primary {
  background: linear-gradient(135deg, var(--blog-accent) 0%, #ff6b2b 100%);
  border-color: var(--blog-accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.3);
}

.blog-btn--primary:hover {
  background: linear-gradient(135deg, #ff6b2b 0%, var(--blog-accent) 100%);
  border-color: var(--blog-accent-hover);
  box-shadow: 0 6px 16px rgba(255, 77, 0, 0.4);
}

.blog-btn--admin {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.15) 0%, rgba(255, 77, 0, 0.08) 100%);
  border-color: rgba(255, 77, 0, 0.35);
  color: var(--blog-accent);
}

.blog-btn--admin:hover {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.25) 0%, rgba(255, 77, 0, 0.15) 100%);
  border-color: rgba(255, 77, 0, 0.5);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.blog-empty-state {
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(160deg, var(--blog-card) 0%, var(--blog-surface) 100%);
  border: 2px dashed var(--blog-border-hover);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.blog-empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(255, 77, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.blog-empty-state i {
  font-size: 64px;
  color: var(--blog-accent);
  opacity: 0.4;
  margin-bottom: 28px;
  position: relative;
}

.blog-empty-state h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
}

.blog-empty-state p {
  font-size: 15px;
  color: var(--blog-text-secondary);
  margin: 0 0 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.6;
}

/* ========================================
   LOADING STATE
   ======================================== */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--blog-text-muted);
}

.blog-loading .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--blog-surface);
  border-top-color: var(--blog-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  .blog-hero {
    padding: 88px 16px 32px;
  }
  
  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .blog-search {
    max-width: none;
  }
  
  .chip-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  
  .chip {
    flex-shrink: 0;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .featured {
    grid-template-columns: 1fr;
  }
  
  .featured-art {
    min-height: 200px;
  }
  
  .subscribe {
    padding: 24px;
  }
}

/* ========================================
   SINGLE BLOG LAYOUT (Legacy Support)
   ======================================== */
.split-content-section.single-blog {
  padding-top: 96px;
}

.split-content-section.single-blog .container {
  display: flex;
  justify-content: center;
}

.split-content-section.single-blog .blog-section {
  width: 100%;
  max-width: 1000px;
}

/* Meta styling (shared) */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--blog-text-muted);
  font-size: 12px;
}

.meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta i {
  color: var(--blog-accent);
  font-size: 11px;
}

/* ========================================
   CONTENT TYPE TABS
   Switch between Articles and Videos
   ======================================== */
.blog-content-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.blog-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-lg);
  color: var(--blog-text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.blog-tab i {
  font-size: 18px;
}

.blog-tab:hover {
  background: var(--blog-card);
  border-color: var(--blog-border-hover);
  color: var(--blog-text);
}

.blog-tab.active {
  background: linear-gradient(135deg, var(--blog-accent) 0%, #ff6b2b 100%);
  border-color: var(--blog-accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 77, 0, 0.3);
}

.blog-tab.active i {
  color: #000;
}

.blog-tab[data-tab="videos"] i {
  color: #ff0000;
}

.blog-tab[data-tab="videos"].active i {
  color: #000;
}

/* Tab Badge (video count) */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

.blog-tab.active .tab-badge {
  background: rgba(0, 0, 0, 0.2);
}

/* Tab Content Panels */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   BLOG VIDEOS SECTION
   Displays YouTube video promotions
   ======================================== */
#blog-videos-section {
  min-height: 200px;
}

/* Empty grid state - hide if no videos */
.blog-videos-grid:empty {
  display: none;
}

.blog-videos-header {
  margin-bottom: 32px;
  text-align: center;
}

.blog-videos-header h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-videos-header h2 i {
  color: #ff0000;
}

.blog-videos-header p {
  color: var(--blog-text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Featured Videos Row */
.blog-videos-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .blog-videos-featured {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* Video Grid */
.blog-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Video Card */
.blog-video-card {
  background: linear-gradient(160deg, var(--blog-card) 0%, var(--blog-surface) 100%);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.blog-video-card:hover {
  border-color: var(--blog-border-hover);
  transform: translateY(-6px);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 0, 0, 0.1);
}

.blog-video-card.featured {
  border-color: rgba(255, 0, 0, 0.3);
}

.blog-video-card.featured:hover {
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(255, 0, 0, 0.2);
}

/* Video Thumbnail */
.blog-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.blog-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-video-card:hover .blog-video-thumb img {
  transform: scale(1.08);
}

/* Play Button Overlay */
.blog-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.blog-video-play i {
  color: #fff;
  font-size: 28px;
  margin-left: 4px;
}

.blog-video-card:hover .blog-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ff0000;
  box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

/* Category Badge */
.blog-video-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--blog-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 77, 0, 0.3);
}

/* Video Info */
.blog-video-info {
  padding: 20px;
}

.blog-video-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-base);
}

.blog-video-card:hover .blog-video-title {
  color: var(--blog-accent);
}

.blog-video-desc {
  font-size: 14px;
  color: var(--blog-text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Tags */
.blog-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-video-tag {
  padding: 4px 10px;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--blog-text-muted);
}

/* Video Modal */
.blog-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blog-video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.blog-video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: var(--blog-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.blog-video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.blog-video-modal-title {
  padding: 20px 60px 20px 24px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--blog-border);
}

.blog-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.blog-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  /* Tabs responsive */
  .blog-content-tabs {
    padding: 0 16px 24px;
    gap: 6px;
  }
  
  .blog-tab {
    padding: 12px 16px;
    font-size: 14px;
    gap: 8px;
  }
  
  .blog-tab i {
    font-size: 16px;
  }
  
  .blog-tab span {
    display: inline;
  }
  
  /* Videos grid responsive */
  .blog-videos-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-video-play {
    width: 56px;
    height: 56px;
  }
  
  .blog-video-play i {
    font-size: 22px;
  }
  
  .blog-video-modal {
    padding: 16px;
  }
  
  .blog-video-modal-title {
    padding: 16px 50px 16px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-tab span {
    display: none;
  }
  
  .blog-tab {
    padding: 14px 20px;
  }
  
  .blog-tab i {
    font-size: 20px;
  }
}
