/* ==========================================================================
   DachPro Reinigung - Blog Page Styles
   ========================================================================== */

/* Import base styles from main.css */
@import url('./main.css');

/* ==========================================================================
   Blog Container
   ========================================================================== */

.dcr-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

/* ==========================================================================
   Blog Header
   ========================================================================== */

.dcr-blog-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.dcr-blog-page-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.dcr-blog-page-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   Blog Articles Grid
   ========================================================================== */

.dcr-blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.dcr-article-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dcr-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.dcr-article-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--gray-100);
}

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

.dcr-article-card:hover .dcr-article-image img {
  transform: scale(1.05);
}

.dcr-article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dcr-article-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.dcr-article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dcr-article-title a:hover {
  color: var(--primary-color);
}

.dcr-article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.dcr-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.dcr-article-date {
  font-size: 14px;
  color: var(--text-light);
}

.dcr-article-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dcr-article-link:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.dcr-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
}

.dcr-pagination-btn,
.dcr-pagination-number {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dcr-pagination-btn:hover,
.dcr-pagination-number:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
}

.dcr-pagination-number.dcr-current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  cursor: default;
}

.dcr-pagination-ellipsis {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */

.dcr-related-articles {
  padding: 60px 0;
  border-top: 2px solid var(--gray-200);
}

.dcr-related-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.dcr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dcr-related-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dcr-related-card:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.dcr-related-card a {
  text-decoration: none;
}

.dcr-related-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.dcr-related-card:hover h3 {
  color: var(--primary-color);
}

.dcr-related-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dcr-related-date {
  font-size: 13px;
  color: var(--text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .dcr-blog-container {
    padding: 100px 20px 60px;
  }

  .dcr-blog-page-title {
    font-size: 40px;
  }

  .dcr-blog-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .dcr-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .dcr-blog-container {
    padding: 90px 16px 40px;
  }

  .dcr-blog-header {
    margin-bottom: 40px;
  }

  .dcr-blog-page-title {
    font-size: 32px;
  }

  .dcr-blog-page-subtitle {
    font-size: 16px;
  }

  .dcr-blog-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .dcr-article-image {
    height: 200px;
  }

  .dcr-article-content {
    padding: 20px;
  }

  .dcr-article-title {
    font-size: 20px;
  }

  .dcr-article-excerpt {
    font-size: 14px;
  }

  .dcr-pagination {
    margin-bottom: 40px;
    gap: 6px;
  }

  .dcr-pagination-btn,
  .dcr-pagination-number {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .dcr-related-articles {
    padding: 40px 0;
  }

  .dcr-related-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .dcr-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dcr-related-card {
    padding: 20px;
  }

  .dcr-related-card h3 {
    font-size: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .dcr-blog-page-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .dcr-blog-page-subtitle {
    font-size: 15px;
  }

  .dcr-article-image {
    height: 180px;
  }

  .dcr-article-content {
    padding: 16px;
  }

  .dcr-article-title {
    font-size: 18px;
  }

  .dcr-article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dcr-pagination-btn,
  .dcr-pagination-number {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .dcr-related-title {
    font-size: 22px;
  }
}
