/**
 * Blog Listing Page Styles
 * Matches advice.css hero styling and equipment.css page width
 */

/* ===================================
   Page Layout (matches equipment)
   =================================== */
.blog-page {
  background: var(--gray-50);
  min-height: 100vh;
}

.blog-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-main {
  min-height: 100vh;
}

/* ===================================
   Hero Section (matches advice.css)
   =================================== */
.blog-hero {
  background: linear-gradient(
    135deg,
    var(--gray-50) 0%,
    #eef2ff 50%,
    var(--gray-50) 100%
  );
  padding: calc(64px + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(168, 85, 247, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.blog-hero .breadcrumb {
  margin-bottom: 2rem;
}

.blog-hero .breadcrumb ol {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.blog-hero .breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--gray-400);
}

.blog-hero .breadcrumb a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-hero .breadcrumb a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.blog-hero .breadcrumb [aria-current="page"] {
  color: var(--gray-700);
  font-weight: 500;
}

/* Hero Badge */
.blog-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.blog-hero .hero-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Hero Title */
.blog-hero .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .blog-hero .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .blog-hero .hero-title {
    font-size: 3.75rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle */
.blog-hero .hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .blog-hero .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-700) 100%
  );
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary-large svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--gray-300);
  transition: all 0.2s ease;
}

.btn-secondary-large:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* ===================================
   Blog Content / Articles Grid
   =================================== */
.blog-content {
  padding: 3rem 0 4rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ===================================
   Article Card
   =================================== */
.article-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.card-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-500) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: rgba(255, 255, 255, 0.7);
}

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-700);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.card-reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-reading-time svg {
  width: 14px;
  height: 14px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: var(--gray-900);
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--primary-600);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 0.75rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

/* ===================================
   No Articles State
   =================================== */
.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 2px dashed var(--gray-300);
}

.no-articles svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.no-articles h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}

.no-articles p {
  color: var(--gray-600);
  margin: 0;
}

/* ===================================
   Blog CTA Section
   =================================== */
.blog-cta {
  background: var(--gray-100);
  padding: 4rem 0;
}

.blog-cta .container {
  max-width: 1100px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-600) 0%, #a855f7 100%);
  border-radius: 1.5rem;
  padding: 2.5rem;
  color: white;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    text-align: left;
    padding: 3rem;
  }
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: white;
}

@media (min-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }
}

.cta-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  max-width: 500px;
}

@media (min-width: 1024px) {
  .cta-content p {
    margin-left: 0;
    margin-right: 0;
  }
}

.cta-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: var(--primary-600);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-card .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.cta-card .btn svg {
  width: 18px;
  height: 18px;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .cta-features {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    padding-left: 2rem;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.95;
}

.cta-feature svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .blog-cta,
  .landing-header,
  .site-footer {
    display: none !important;
  }
}
