/* ==============================================
  New Blog Page Styles (v2)
  ==============================================
*/

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Blog Hero Section --- */
.blog-hero-v2 {
  padding: 40px 0;
  background-color: var(--light-bg);
}

.blog-hero-v2 .dark-section {
  text-align: center;
  padding: 40px 40px;
}

.blog-hero-content h1 {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-top: 10px;
  margin-bottom: 20px;
}

.blog-hero-content .small-caps {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.blog-hero-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}

.blog-search-v2 {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.blog-search-v2 i {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.blog-search-v2 input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 12px 20px 12px 45px;
  font-size: 1rem;
  color: var(--text-dark);
}

.blog-search-v2 input:focus {
  outline: none;
}

.blog-search-v2 .btn {
  padding-left: 30px;
  padding-right: 30px;
}

/* --- Blog Posts Section --- */
.blog-posts-section {
  padding: 40px 0;
  background-color: var(--light-bg);
}

/* --- Filter Tabs --- */
.blog-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-tab {
  background-color: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.filter-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 77, 23, 0.15);
}

.filter-tab.active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(251, 77, 23, 0.25);
}

.filter-tab.active:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 77, 23, 0.3);
}

.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Blog Card --- */
.blog-card-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card-modern:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, var(--dark-teal) 100%);
}

/* Card background variations */
.blog-card-modern:nth-child(1) .blog-card-image-container {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.blog-card-modern:nth-child(2) .blog-card-image-container {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.blog-card-modern:nth-child(3) .blog-card-image-container {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.blog-card-modern:nth-child(4) .blog-card-image-container {
  background: linear-gradient(135deg, #8e44ad 0%, #6c5ce7 100%);
}

.blog-card-modern:nth-child(5) .blog-card-image-container {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.blog-card-modern:nth-child(6) .blog-card-image-container {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.blog-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 77, 23, 0.8), rgba(8, 54, 48, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.blog-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-teal);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.blog-card-content {
  padding: 25px;
}

.blog-card-author {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.blog-card-title {
  color: var(--dark-teal);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.blog-card-category {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-category.news {
  background-color: var(--dark-teal);
  color: white;
}

.blog-card-category.blogs {
  background-color: var(--orange);
  color: white;
}

.blog-card-category.sea {
  background-color: #fff3e0;
  color: #f57c00;
}

.blog-card-category.strategie {
  background-color: #e8f5e8;
  color: #388e3c;
}

.blog-card-category.kosten {
  background-color: #fce4ec;
  color: #c2185b;
}

.blog-card-category.seo {
  background-color: #e0f2f1;
  color: #00695c;
}

.blog-card-category.tips {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.blog-card-date {
  color: #999;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.page-number, .page-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-dark);
  background-color: var(--white);
  border: 1px solid var(--border-light);
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-number:hover, .page-arrow:hover {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.page-number.active {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .featured-post {
    flex-direction: column;
  }
  .featured-post .blog-card-image,
  .featured-post .blog-card-content {
    width: 100%;
  }
  .featured-post .blog-card-image {
    height: 300px;
    min-height: auto;
  }
}

@media (max-width: 1024px) {
  .blog-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid-v2 {
    grid-template-columns: 1fr;
  }
  
  /* Mobile: add side whitespace and reduce hero padding */
  .blog-hero-v2 {
    padding: 24px 0; /* full-bleed background on mobile */
  }
  .blog-hero-v2 .dark-section {
    padding: 24px 16px; /* tighter inner padding on mobile */
  }
  
  .blog-search-v2 {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 15px;
  }
  
  .blog-search-v2 input {
    background-color: var(--white);
    border-radius: 50px;
  }
  
  .blog-filter-tabs {
    gap: 8px;
    margin-bottom: 40px;
  }
  
  .filter-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .blog-filter-tabs {
    gap: 6px;
    margin-bottom: 30px;
  }
  /* Small phones: slightly tighter spacing */
  .blog-hero-v2 {
    padding: 20px 0; /* full-bleed background on small phones */
  }
  .blog-hero-v2 .dark-section {
    padding: 20px 12px;
  }
  
  .filter-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: 70px;
  }
} 