/* ============================================
   BLOG PAGE STYLES - Rychlá Oprava Elektro
   Green Theme (#22c55e + white)
   ============================================ */

/* Blog Hero Section */
.blog-hero {
  position: relative;
  padding: 30px 0 60px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  overflow: hidden;
}

.blog-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.blog-hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
}

.blog-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, #22c55e 0, #22c55e 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, #22c55e 0, #22c55e 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.blog-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
}

.blog-hero__breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  transition: color 0.2s;
}

.blog-hero__breadcrumb-link:hover {
  color: #22c55e;
}

.blog-hero__breadcrumb-link img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(0%) saturate(0%) hue-rotate(229deg) brightness(95%) contrast(85%);
}

.blog-hero__breadcrumb-sep {
  opacity: 0.4;
}

.blog-hero__breadcrumb-current {
  color: #22c55e;
  font-weight: 600;
}

/* Hero Content */
.blog-hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: white;
  border: 1.5px solid #22c55e;
  border-radius: 30px;
  color: #22c55e;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.blog-hero__label img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

.blog-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero__subtitle {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Hero Stats */
.blog-hero__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.blog-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.blog-hero__stat img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

.blog-hero__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #22c55e;
}

.blog-hero__stat-label {
  font-size: 14px;
  color: #666;
}

/* Blog Main */
.blog-main {
  padding: 80px 0;
  background: white;
}

.blog-main__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #22c55e;
}

.blog-card__link {
  display: block;
  color: inherit;
}

.blog-card__image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.08);
}

.blog-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}

.blog-card__category img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: #999;
}

.blog-card__time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__time img {
  opacity: 0.6;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card__more {
  gap: 10px;
}

.blog-card__more img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 60px 0;
}

.blog-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.blog-pagination__btn:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: #f0fdf4;
}

.blog-pagination__btn img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(0%) saturate(0%) hue-rotate(229deg) brightness(95%) contrast(85%);
  transition: filter 0.2s;
}

.blog-pagination__btn:hover img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

.blog-pagination__btn--prev img {
  transform: rotate(180deg);
}

.blog-pagination__nums {
  display: flex;
  gap: 6px;
}

.blog-pagination__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.blog-pagination__num:hover {
  background: #f0fdf4;
  color: #22c55e;
  border-color: #22c55e;
}

.blog-pagination__num--active {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.blog-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #999;
}

/* Popular Articles */
.blog-popular {
  margin: 80px 0;
}

.blog-popular__header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-popular__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 20px;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.blog-popular__label img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(74%) saturate(1865%) hue-rotate(6deg) brightness(95%) contrast(92%);
}

.blog-popular__title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.blog-popular__desc {
  font-size: 16px;
  color: #666;
}

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

.blog-popular__card {
  background: white;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.blog-popular__card:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15);
  transform: translateY(-4px);
}

.blog-popular__link {
  display: block;
  color: inherit;
}

.blog-popular__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.blog-popular__icon img {
  filter: brightness(0) invert(1);
}

.blog-popular__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-popular__card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular__card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.blog-popular__date {
  font-size: 13px;
  color: #999;
}

.blog-popular__arrow {
  width: 32px;
  height: 32px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.blog-popular__card:hover .blog-popular__arrow {
  background: #22c55e;
  transform: translateX(4px);
}

.blog-popular__arrow img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
  transition: filter 0.3s;
}

.blog-popular__card:hover .blog-popular__arrow img {
  filter: brightness(0) invert(1);
}

/* CTA Section */
.blog-cta {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 60px;
  margin: 80px 0;
  overflow: hidden;
}

.blog-cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.blog-cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.blog-cta__glow--1 {
  top: -100px;
  left: -100px;
  background: #22c55e;
}

.blog-cta__glow--2 {
  bottom: -150px;
  right: -150px;
  background: #16a34a;
}

.blog-cta__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.blog-cta__label img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

.blog-cta__title {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-cta__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-cta__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-cta__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 15px;
  font-weight: 500;
}

.blog-cta__feature img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(61%) saturate(501%) hue-rotate(101deg) brightness(93%) contrast(90%);
}

.blog-cta__card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-cta__card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.blog-cta__card-icon img {
  filter: brightness(0) invert(1);
}

.blog-cta__card-label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-cta__phone {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.blog-cta__phone:hover {
  color: #16a34a;
}

.blog-cta__divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
}

.blog-cta__divider::before,
.blog-cta__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e5e5;
}

.blog-cta__divider::before {
  left: 0;
}

.blog-cta__divider::after {
  right: 0;
}

.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.blog-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.blog-cta__btn img {
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 900px) {
  .blog-hero {
    padding: 30px 0 50px;
  }

  .blog-hero__title {
    font-size: 36px;
  }

  .blog-hero__subtitle {
    font-size: 16px;
  }

  .blog-hero__stats {
    gap: 40px;
  }

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

  .blog-popular__title {
    font-size: 30px;
  }

  .blog-popular__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-cta {
    padding: 40px;
  }

  .blog-cta__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-cta__title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 30px 0 40px;
  }

  .blog-hero__title {
    font-size: 32px;
  }

  .blog-hero__stats {
    flex-wrap: wrap;
    gap: 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card__image {
    height: 200px;
  }

  .blog-pagination {
    gap: 8px;
  }

  .blog-pagination__btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .blog-pagination__num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .blog-cta {
    padding: 32px 20px;
  }

  .blog-cta__title {
    font-size: 24px;
  }

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

@media (max-width: 576px) {
  .blog-hero {
    padding: 30px 0 35px;
  }

  .blog-hero__title {
    font-size: 28px;
  }

  .blog-hero__subtitle {
    font-size: 15px;
  }

  .blog-hero__stat-num {
    font-size: 24px;
  }

  .blog-hero__stat-label {
    font-size: 13px;
  }

  .blog-card__body {
    padding: 20px;
  }

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

  .blog-popular__title {
    font-size: 26px;
  }

  .blog-cta__card {
    padding: 24px;
  }

  .blog-cta__phone {
    font-size: 24px;
  }
}

@media (max-width: 375px) {
  .blog-hero {
    padding: 30px 0 30px;
  }

  .blog-hero__title {
    font-size: 24px;
  }

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

  .blog-hero__stats {
    gap: 24px;
  }

  .blog-hero__stat-num {
    font-size: 20px;
  }

  .blog-hero__stat-label {
    font-size: 12px;
  }

  .blog-card__image {
    height: 180px;
  }

  .blog-card__body {
    padding: 16px;
  }

  .blog-card__title {
    font-size: 16px;
  }

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

  .blog-popular__header {
    margin-bottom: 30px;
  }

  .blog-popular__title {
    font-size: 22px;
  }

  .blog-popular__card {
    padding: 20px;
  }

  .blog-popular__icon {
    width: 48px;
    height: 48px;
  }

  .blog-popular__card-title {
    font-size: 16px;
  }

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

  .blog-cta {
    padding: 24px 16px;
    margin: 60px 0;
  }

  .blog-cta__title {
    font-size: 20px;
  }

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

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

  .blog-cta__card {
    padding: 20px;
  }

  .blog-cta__card-icon {
    width: 60px;
    height: 60px;
  }

  .blog-cta__phone {
    font-size: 20px;
  }

  .blog-cta__btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}
