/* TrackmeToday — blog landing page (extends .landing-page) */

.landing-nav-links a.is-active {
  color: #fff;
  font-weight: 600;
}

/* Blog hero */
.blog-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(14, 165, 233, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.blog-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 0;
}

/* Category chips */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.blog-category-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-category-chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

.blog-category-chip.is-active {
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-violet) 100%);
  border-color: transparent;
  color: #fff;
}

.blog-category-chip[data-category='ai'].is-active,
.blog-category-chip[data-category='ai']:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

/* Section headers */
.blog-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-section-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.blog-section-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Blog cards grid */
.blog-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 960px) {
  .blog-grid--top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.blog-card.is-hidden,
a.blog-card-link.is-hidden {
  display: none;
}

.blog-card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.blog-card-thumb--ai {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(14, 165, 233, 0.25) 100%);
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.blog-card-category--ai {
  color: #a78bfa;
}

.blog-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.blog-card-author {
  font-weight: 600;
  color: #94a3b8;
}

/* Top bloggers */
.blog-bloggers {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 960px) {
  .blog-bloggers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-blogger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  transition: border-color 0.25s ease;
}

.blog-blogger:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.blog-blogger-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(135deg, var(--landing-accent), var(--landing-violet));
}

.blog-blogger-info h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.blog-blogger-role {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 0.25rem;
}

.blog-blogger-posts {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 0;
}

/* AI Spotlight */
.blog-ai-spotlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-ai-spotlight {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.5rem;
  }
}

.blog-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  margin-bottom: 0.75rem;
}

.blog-ai-spotlight h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.blog-ai-spotlight p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.blog-ai-featured {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.blog-ai-featured h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.blog-ai-featured p {
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.blog-ai-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a78bfa;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.blog-ai-link:hover {
  color: #c4b5fd;
}

/* Trending row */
.blog-trending {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.blog-trending-item {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  transition: border-color 0.25s ease;
}

.blog-trending-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.blog-trending-rank {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--landing-accent);
  margin-bottom: 0.5rem;
}

.blog-trending-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.blog-trending-item p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

/* Newsletter CTA */
.blog-newsletter {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 2rem;
}

.blog-newsletter h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.blog-newsletter p {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.blog-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .blog-newsletter-form {
    flex-direction: row;
  }
}

.blog-newsletter-form input[type='email'] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
}

.blog-newsletter-form input[type='email']::placeholder {
  color: #64748b;
}

.blog-newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.blog-newsletter-form button {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-violet) 100%);
  color: #fff;
  white-space: nowrap;
}

.blog-newsletter-form button:hover {
  filter: brightness(1.06);
}

.blog-newsletter-success {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-size: 0.875rem;
}

.blog-newsletter-success.is-visible {
  display: block;
}

.blog-empty-state {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.blog-empty-state.is-visible {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover,
  .blog-blogger:hover {
    transform: none;
  }
}

/* Clickable cards */
a.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.blog-card-link:hover .blog-card {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

a.blog-trending-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.blog-ai-featured-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  transition: border-color 0.25s ease;
}

a.blog-ai-featured-link:hover .blog-ai-featured {
  border-color: rgba(167, 139, 250, 0.45);
}

/* Blog detail page */
.blog-detail-page .landing-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.blog-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}

.blog-detail-back:hover {
  color: #fff;
}

.blog-detail-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.blog-detail-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.blog-detail-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
}

.blog-detail-author .blog-blogger-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
}

.blog-detail-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.blog-detail-body h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.blog-detail-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.75rem 0 0.5rem;
  line-height: 1.35;
}

.blog-detail-body p {
  margin: 0 0 1.25rem;
}

.blog-detail-body ul,
.blog-detail-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.blog-detail-body li {
  margin-bottom: 0.5rem;
}

.blog-detail-body li::marker {
  color: var(--landing-accent);
}

.blog-detail-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--landing-violet);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 0 12px 12px 0;
  color: #94a3b8;
  font-style: italic;
}

.blog-detail-body strong {
  color: #f1f5f9;
  font-weight: 600;
}

.blog-detail-body a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-detail-body a:hover {
  color: #7dd3fc;
}

.blog-detail-lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.blog-detail-related {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.blog-detail-related h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.blog-detail-related-list {
  display: grid;
  gap: 0.75rem;
}

.blog-detail-related-list a {
  display: block;
  padding: 0.875rem 1rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.blog-detail-related-list a:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
}

.blog-detail-related-list span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  a.blog-card-link:hover .blog-card {
    transform: none;
  }
}
