/**
 * Blog Styles
 * Matches landing page design: dark theme, Space Grotesk, cyan accents
 */

/* ========================================
   BLOG LISTING PAGE
   ======================================== */

.blog-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.blog-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto;
}

.blog-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.blog-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(34, 211, 238, 0.15);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #22d3ee;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.blog-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.blog-card__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'DM Mono', monospace;
}

/* ========================================
   BLOG POST PAGE
   ======================================== */

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}

.blog-post__back:hover {
  color: #22d3ee;
}

.blog-post__tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 211, 238, 0.15);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #22d3ee;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.blog-post__title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-post__meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'DM Mono', monospace;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 3rem 0 1.25rem;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.blog-content strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.blog-content a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  color: #67e8f9;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #22d3ee;
  border-radius: 0 12px 12px 0;
}

.blog-content blockquote p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-style: italic;
}

/* Info/callout boxes */
.blog-callout {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 16px;
}

.blog-callout p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.blog-callout p:first-child {
  font-weight: 600;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

/* Step-by-step pattern box */
.breathing-pattern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  margin: 2rem 0;
}

.breathing-pattern__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
}

.breathing-pattern__value {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
}

.breathing-pattern__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.breathing-pattern__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.blog-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}

.blog-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.blog-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22d3ee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.blog-table td {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}

.blog-table td strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.blog-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.blog-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   POST CTA
   ======================================== */

.blog-cta {
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 20px;
  text-align: center;
}

.blog-cta__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.blog-cta__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.blog-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
  .blog-hero {
    padding: 6rem 1rem 2.5rem;
  }

  .blog-hero__title {
    font-size: 1.75rem;
  }

  .blog-hero__subtitle {
    font-size: 0.9375rem;
  }

  .blog-list {
    padding: 0 1rem 4rem;
    gap: 1rem;
  }

  .blog-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .blog-card__title {
    font-size: 1.125rem;
  }

  .blog-card__excerpt {
    font-size: 0.875rem;
  }

  .blog-post {
    padding: 6rem 1rem 4rem;
  }

  .blog-post__title {
    font-size: 1.625rem;
  }

  .blog-content h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 1rem;
  }

  .blog-content h3 {
    font-size: 1.0625rem;
    margin: 2rem 0 0.75rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }

  .blog-content blockquote {
    padding: 1rem 1.25rem;
  }

  .blog-callout {
    padding: 1.25rem 1.5rem;
  }

  .breathing-pattern {
    padding: 1rem;
    gap: 0.5rem;
  }

  .breathing-pattern__value {
    font-size: 1.125rem;
  }

  .breathing-pattern__label {
    font-size: 0.625rem;
  }

  .breathing-pattern__divider {
    height: 28px;
  }

  .blog-cta {
    padding: 2rem 1.5rem;
  }

  .blog-cta__title {
    font-size: 1.125rem;
  }

  .blog-cta__button {
    width: 100%;
    justify-content: center;
  }

  .blog-table {
    font-size: 0.8125rem;
  }

  .blog-table th,
  .blog-table td {
    padding: 0.625rem 0.75rem;
  }
}
