/* Dark Scrub — Page Background Images & Blog Article Cards */
/* For FAQ, Blog, and Compare pages */

/* ============================================
   PAGE HERO BACKGROUNDS
   Same treatment as index.html hero-bg-image
   but each page gets a unique photo
   ============================================ */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
  overflow: hidden;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
                    url('/images/backgrounds/compare-surveillance.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.12;
  filter: saturate(0.6) brightness(0.7);
}

/* Gradient overlay — fades image to page background at bottom */
.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%);
  z-index: 1;
}

/* Side fade — image fades from right to left */
.page-hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero .section-label {
  color: #ff3b30;
  font-family: 'Major Mono Display', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero .page-subtitle {
  font-family: 'Inter', sans-serif;
  color: #b8b8c8;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Subtle red line separator below hero */
.page-hero-divider {
  width: 60px;
  height: 2px;
  background: #e63333;
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* ============================================
   BLOG ARTICLE CARDS — Listing Page
   Visual upgrade for article links
   ============================================ */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.blog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: rgba(230, 51, 51, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(230, 51, 51, 0.1);
}

/* Card thumbnail image */
.blog-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
  filter: saturate(0.85) brightness(0.85);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  opacity: 0.75;
  filter: saturate(1) brightness(1);
  transform: scale(1.05);
}

/* Gradient overlay on thumbnail */
.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}

/* Category tag on thumbnail */
.blog-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff3b30;
  background: rgba(10, 10, 10, 0.8);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  z-index: 1;
}

/* Card text content */
.blog-card-body {
  padding: 1.25rem;
}

.blog-card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8e8f0;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #fff;
}

.blog-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #8a8a9e;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #6a6a7e;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-meta .read-more {
  color: #e63333;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-meta .read-more {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .page-hero {
    min-height: 280px;
  }
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .blog-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 240px;
    padding: 2rem 0;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .page-hero-bg::before {
    width: 30%;
  }
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-image {
    height: 150px;
  }
}
