/**
 * Blog Cards - Clean Image-First Design
 * Matches the Services Section style from front-page
 */

/* Blog Preview Section */
.blog-preview {
  background: #f8fafc;
}

/* Blog Card Container */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
}

/* Featured Image */
.blog-card-thumbnail {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.blog-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumbnail img {
  transform: scale(1.05);
}

/* Fallback gradient when no featured image */
.blog-card-thumbnail.no-image {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumbnail.no-image::before {
  content: '📝';
  font-size: 64px;
  opacity: 0.3;
}

/* Category Badge */
.blog-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #3b82f6;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Date */
.blog-date {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-date::before {
  content: '📅';
  font-size: 16px;
}

/* Title */
.blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
  color: #3b82f6;
}

/* Excerpt */
.blog-excerpt {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Read More Link */
.blog-read-more {
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 12px;
}

.blog-read-more::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more::after {
  transform: translateX(4px);
}

/* Card Link (entire card clickable) */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Section Header Styling */
.blog-preview .section-header h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-preview .text-highlight {
  background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(37, 99, 235, 0.3));
}

/* "Alle Insights" Button */
.blog-preview .btn-outline-primary {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-preview .btn-outline-primary:hover {
  background: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .blog-card-thumbnail {
    height: 200px;
  }

  .blog-title {
    font-size: 18px;
  }

  .blog-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .blog-card-thumbnail {
    height: 180px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-title {
    font-size: 17px;
  }

  .blog-date {
    font-size: 13px;
  }

  .blog-category-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
}

@media (max-width: 576px) {
  .blog-card-thumbnail {
    height: 160px;
  }

  .blog-card-content {
    padding: 16px;
  }

  .blog-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .blog-excerpt {
    font-size: 13px;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.blog-card:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Accessibility */
.blog-card-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
  border-radius: 12px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-thumbnail img,
  .blog-read-more,
  .blog-read-more::after {
    animation: none;
    transition: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card:hover .blog-card-thumbnail img {
    transform: none;
  }
}
