/* blog — the <style> block of tch-website-181/base/blog.hbs, verbatim.
   Only the two font-loading lines are dropped: layouts/base.jinja loads
   Bebas Neue and Roboto once for the whole theme. Nothing is scoped —
   in v1 this stylesheet's bare h2 / h3 / button rules applied to the whole
   page, and this file is loaded only on the blog routes, so it still does. */
:root {
  --brand-primary: #F0BC5E;
  --brand-dark: #D4A142;
  --brand-light: #F5D084;
  --accent: #2DD4BF;
  --neutral: #6B7280;
  --white: #FFFFFF;
  --gray-light: #E5E7EB;
  --gray-medium: #9CA3AF;
  --gray-dark: #374151;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
}

/* TCH Color Classes */
.bg-tch-primary { background-color: var(--brand-primary) !important; }
.bg-tch-dark { background-color: var(--brand-dark) !important; }
.bg-tch-light { background-color: var(--brand-light) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-tch-primary { color: var(--brand-primary) !important; }
.text-tch-dark { color: var(--brand-dark) !important; }
.border-tch-primary { border-color: var(--brand-primary) !important; }
.border-tch-dark { border-color: var(--brand-dark) !important; }
.hover\:bg-tch-primary:hover { background-color: var(--brand-primary) !important; }
.hover\:bg-tch-dark:hover { background-color: var(--brand-dark) !important; }
.hover\:border-tch-dark:hover { border-color: var(--brand-dark) !important; }
.hover\:text-tch-primary:hover { color: var(--brand-primary) !important; }

/* Typography */
.tch-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tch-body {
  font-family: var(--font-body);
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Hero Button Styling */
.hero-btn {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: var(--radius-medium);
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  border: none;
  padding: 12px 24px;
}

.hero-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 188, 94, 0.3);
}

/* Scroll Arrow Animation */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Tag Filter Button Styling */
.tag-filter-button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-medium);
}

/* Posts Section Heading */
h2 {
  font-family: var(--font-heading);
}

h2::after {
  background-color: var(--accent) !important;
}

/* Button Styling */
button, .button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-medium);
}

/* Post Item Styling */
.post-title {
  font-family: var(--font-heading);
}

.post-content {
  font-family: var(--font-body);
}

/* Tag Styling */
.post-tag {
  font-family: var(--font-body);
}

/* Search and Sidebar */
h3 {
  font-family: var(--font-heading);
}

.tag-name {
  font-family: var(--font-body);
}

/* Newsletter CTA */
.subscription-cta h2 {
  font-family: var(--font-heading);
}

.subscription-cta p {
  font-family: var(--font-body);
}

.faster-subscribe-button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--brand-primary);
  border-radius: var(--radius-medium);
}

.faster-subscribe-button:hover {
  background: var(--brand-dark);
}

/* Featured insights use a stable responsive grid. The old carousel assumed a
   complete three-card rail and left a large blank region when Runtime returned
   fewer hydrated items than its total count. */
.featured-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-insights-grid .post-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.featured-insights-grid .post-item > .p-6 {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.featured-insights-read-more {
  display: inline-block;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

@media (max-width: 1024px) {
  .featured-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .featured-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Content clipping */
.content-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  max-height: 4.5em;
}

/* Mobile Video Fallback */
@media (max-width: 768px) {
  .hero-video-bg {
    display: none;
  }
  
  .hero-mobile-fallback {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .hero-mobile-fallback {
    display: none !important;
  }
}
