/* ===== تنسيقات خاصة بصفحة المدونة ===== */
.blog-section {
  position: relative;
  background-color: var(--body-bg);
  padding: 70px 0;
}

.blog-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("<?php echo ASSETS_URL; ?>/images/patterns/dot-pattern.png");
  background-repeat: repeat;
  background-size: 40px;
  opacity: 0.03;
  z-index: 0;
}

.breadcrumb-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6e44ff 100%);
  padding: 60px 0;
  color: white;
  overflow: hidden;
}

.breadcrumb-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("<?php echo ASSETS_URL; ?>/images/patterns/wave-pattern.png");
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.breadcrumb-section .container {
  position: relative;
  z-index: 2;
}

.breadcrumb-section h1 {
  color: white;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: rgba(255, 255, 255, 0.5);
}

/* تنسيقات بطاقة المقال */
.blog-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  height: 100%;
  border: none;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.blog-card .card-body {
  padding: 25px;
}

.blog-card .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover .badge {
  background-color: var(--primary-hover) !important;
}

.blog-card .card-title {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card .card-text {
  color: var(--body-color);
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
}

.blog-meta i {
  color: var(--primary-color);
  margin-left: 5px;
}

.blog-card .card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 25px;
}

.blog-card .btn-outline-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.blog-card .btn-outline-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: -1;
}

.blog-card .btn-outline-primary:hover {
  color: white;
}

.blog-card .btn-outline-primary:hover::before {
  width: 100%;
}

/* تنسيقات البحث والتصنيفات */
.sidebar-card {
  transition: all 0.3s ease;
  margin-bottom: 30px;
  overflow: hidden;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.sidebar-card .card-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
  font-weight: 700;
}

.sidebar-card .card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.sidebar-card .form-control {
  border-radius: 30px 0 0 30px;
  padding: 12px 20px;
  border: 1px solid #eee;
}

.sidebar-card .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.sidebar-card .btn {
  border-radius: 0 30px 30px 0;
  padding-left: 20px;
  padding-right: 20px;
}

.list-group-item {
  padding: 12px 0;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.05);
}

.list-group-item a {
  color: var(--body-color);
  transition: all 0.3s ease;
  font-weight: 500;
}

.list-group-item a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

.badge.rounded-pill {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 5px 10px;
}

.tags a {
  display: inline-block;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  margin-left: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tags a:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-3px);
}

/* ترقيم الصفحات */
.pagination .page-item {
  margin: 0 3px;
}

.pagination .page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  border: none;
  color: var(--body-color);
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

/* المقالات ذات الصلة */
.related-post {
  transition: all 0.3s ease;
}

.related-post:hover {
  transform: translateX(-5px);
}

.related-post img {
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.related-post:hover img {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* انيميشن العناصر */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-item {
  animation: fadeInUp 0.5s ease backwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}
