/* ============================================
   BREWTECC — blog.css (Blog Listing Page)
   ============================================ */
 
/* ---- Blog Hero ---- */
.blog-hero {
  position: relative;
  padding: 5rem 2rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  overflow: hidden;
}
.blog-hero-orb { position: absolute; }
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.blog-hero-logo {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.blog-hero-logo img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(91,33,255,0.35));
  opacity: 0.85;
}
 
/* ---- Blog Section ---- */
.blog-section { padding-top: 4rem; padding-bottom: 5rem; }
 
/* ---- Featured Post ---- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.featured-post:hover {
  border-color: rgba(91,33,255,0.5);
  box-shadow: 0 12px 60px rgba(91,33,255,0.12);
  transform: translateY(-3px);
}
.featured-post-visual {
  background: linear-gradient(135deg, #0D0D20 0%, #111130 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.featured-post-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 50%, rgba(91,33,255,0.25) 0%, transparent 65%);
}
.featured-post-visual img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.18;
  position: relative;
  z-index: 1;
}
.featured-post-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}
.featured-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--grad-main);
  border-radius: 1px;
}
.featured-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.featured-post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-display);
}
.post-read-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-display);
}
.post-read-time::before { content: '· '; }
.featured-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo);
  margin-top: 0.25rem;
  transition: gap 0.2s;
}
.featured-post:hover .featured-read-link { gap: 0.65rem; }
 
/* ---- Blog Controls ---- */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.filter-btn:hover {
  border-color: rgba(91,33,255,0.5);
  color: var(--off-white);
}
.filter-btn.active {
  background: var(--grad-main);
  border-color: transparent;
  color: var(--white);
}
.post-count {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
 
/* ---- Blog Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
 
/* ---- Post Card ---- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.post-card:hover {
  border-color: rgba(91,33,255,0.45);
  box-shadow: 0 8px 40px rgba(91,33,255,0.1);
  transform: translateY(-3px);
}
.post-card-visual {
  height: 140px;
  background: linear-gradient(135deg, #0D0D20 0%, #111130 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.post-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(91,33,255,0.18) 0%, transparent 65%);
}
.post-card-visual img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.14;
  position: relative;
  z-index: 1;
}
.post-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.post-card-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post-card-excerpt {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(91,33,255,0.1);
}
.post-card-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-display);
}
.post-card-rt {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-display);
}
 
/* ---- Loading Dots ---- */
.blog-loading {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}
.loading-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--indigo);
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
 
/* ---- Empty State ---- */
.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-family: var(--font-display);
}
 
/* ---- CTA Strip (matches other pages) ---- */
.cta-strip {
  background: var(--grad-main);
  padding: 4rem 2rem;
}
.cta-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.cta-sub { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.cta-strip .btn-primary {
  background: var(--white);
  color: var(--indigo);
  box-shadow: none;
  white-space: nowrap;
}
.cta-strip .btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}
 
/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-visual { min-height: 200px; }
  .blog-hero { flex-direction: column; }
  .blog-hero-logo { display: none; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-controls { flex-direction: column; align-items: flex-start; }
  .featured-post-body { padding: 1.5rem; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
}
 
