/* =====================================================
   BLOG POSTS GRID - BRAND DESIGN
   Poppins Font, Teal #17D2C2, Dark Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables - Brand Tokens */
:root {
  --brand: #17D2C2;
  --brand-300: #47E0D2;
  --brand-600: #12B7AB;
  --brand-gradient: linear-gradient(135deg, #12B7AB 0%, #17D2C2 50%, #47E0D2 100%);
  --bg-900: #0A0A0A;
  --bg-800: #121212;
  --surface-700: #1C1C1E;
  --border-600: #2A2A2C;
  --text: #FFFFFF;
  --text-2: #C7C7CC;
  --muted: #8E8E93;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =====================================================
   POSTS GRID
   ===================================================== */
.BlogPostsGrid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  font-family: var(--font-sans);
}

/* =====================================================
   POST CARD
   ===================================================== */
.BlogPostsGrid-postCard {
  background: var(--bg-800);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.BlogPostsGrid-postCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(23, 210, 194, 0.15);
}

.BlogPostsGrid-cardLink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.BlogPostsGrid-imageContainer {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--surface-700);
}

.BlogPostsGrid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.BlogPostsGrid-postCard:hover .BlogPostsGrid-image {
  transform: scale(1.05);
}

.BlogPostsGrid-cardContent {
  padding: 24px;
}

.BlogPostsGrid-categoryBadge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(23, 210, 194, 0.1);
  border: 1px solid rgba(23, 210, 194, 0.3);
  border-radius: 20px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.BlogPostsGrid-cardTitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.BlogPostsGrid-excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.BlogPostsGrid-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.BlogPostsGrid-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.BlogPostsGrid-views {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 768px) {
  .BlogPostsGrid-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .BlogPostsGrid-cardContent {
    padding: 20px;
  }

  .BlogPostsGrid-cardTitle {
    font-size: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .BlogPostsGrid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}
