/* /assets/css/blog.css — v1.0 */

/* ========== Blog Hero ========== */
.blog-hero {
  padding: 140px 0 60px;
  background: var(--grad-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Яркие glows */
.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.blog-hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #6FD9D5, #99D8FF);
  top: -80px;
  left: -100px;
  animation-delay: 0s;
}

.blog-hero::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #99D8FF, #C1E8E3);
  bottom: -60px;
  right: -80px;
  animation-delay: 1s;
}

/* Dental icons декор */
.blog-hero .dental-icon {
  position: absolute;
  opacity: 0.19;
  pointer-events: none;
  z-index: 1;
}

.blog-hero .dental-icon-1 {
  top: 15%;
  left: 8%;
  font-size: 80px;
  animation: float 6s ease-in-out infinite;
  opacity: 0.4;
}

.blog-hero .dental-icon-2 {
  top: 25%;
  right: 12%;
  font-size: 60px;
  animation: float 7s ease-in-out infinite 1s;
  opacity: 0.4;
}

.blog-hero .dental-icon-3 {
  bottom: 20%;
  left: 15%;
  font-size: 70px;
  animation: float 8s ease-in-out infinite 2s;
  opacity: 0.4;
}

.blog-hero .dental-icon-4 {
  bottom: 30%;
  right: 10%;
  font-size: 55px;
  animation: float 6.5s ease-in-out infinite 1.5s;
  opacity: 0.2;
}

.blog-hero .dental-icon-5 {
  top: 50%;
  left: 5%;
  font-size: 50px;
  animation: float 7.5s ease-in-out infinite 0.5s;
  opacity: 0.4;
}

.blog-hero .dental-icon-6 {
  top: 60%;
  right: 6%;
  font-size: 65px;
  animation: float 8.5s ease-in-out infinite 2.5s;
  opacity: 0.4;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  margin-bottom: 16px;
}

.blog-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}



/* ========== Blog Filters ========== */
.blog-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.filter-btn:hover {
  background: #f9fcff;
  border-color: #99D8FF;
}

.filter-btn.active {
  background: var(--grad);
  color: #0d2b3b;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(111, 217, 213, 0.3);
}

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

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

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

/* Category Badge */
.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-category.whitening {
  background: #fff;
  color: #6FD9D5;
}

.blog-category.hygiene {
  background: #fff;
  color: #99D8FF;
}

.blog-category.tips {
  background: #fff;
  color: #77C4CA;
}

.blog-category.cdcp {
  background: #fff;
  color: #263B60;
}

/* Card Body */
.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.blog-date::before {
  content: "📅 ";
}

.blog-read::before {
  content: "⏱️ ";
}

/* ========== Responsive ========== */
@media (max-width: 920px) {
  .blog-hero {
    padding: 110px 0 48px;
  }

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

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-filters {
    gap: 8px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}
