/**
 * Sachin Tonte - Blog & Technical Writing Styles
 */

.blog-hero-section {
  padding: 6.2rem 0 3.5rem;
}

.blog-search-bar-wrap {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 0.95rem 1.5rem 0.95rem 3.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1rem;
}

.blog-search-icon {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.blog-category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
}

.blog-category-btn {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-category-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
  perspective: 1200px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.blog-card:hover {
  transform: perspective(1000px) translate3d(0, -6px, 14px);
  border-color: var(--color-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 211, 238, 0.18);
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.blog-title {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.blog-title a {
  color: var(--text-main);
}

.blog-title a:hover {
  color: var(--color-primary-light);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* Single Article Reader Page Styles */
.article-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 1100;
  width: 0%;
  transition: width 0.1s ease;
}

.article-hero {
  padding: 8.5rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header {
  max-width: 820px;
  margin: 0 auto;
}

.article-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.article-body {
  max-width: 820px;
  margin: 3.5rem auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.85rem;
}

.article-body h3 {
  margin: 2rem 0 1rem;
  font-size: 1.45rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.article-body ul, .article-body ol {
  margin: 1.5rem 0 1.75rem 1.75rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.65rem;
}

/* Direct-Quote / GEO Citation Box */
.geo-takeaway-box {
  background: rgba(108, 77, 255, 0.08);
  border: 1px solid rgba(108, 77, 255, 0.3);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.geo-takeaway-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}
