/* --- HERO SECTION --- */
.blog-hero {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: -1;
  will-change: transform, opacity;
}

.blog-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 6s ease-in-out infinite;
  z-index: -1;
  will-change: transform, opacity;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  animation: title-glow 3s ease-in-out infinite;
  will-change: filter;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #d8b4fe;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 200px;
  height: 150px;
  justify-content: center;
  will-change: transform;
  transform: translateZ(0);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
  will-change: left;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translate3d(0, -4px, 0) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: number-glow 2s ease-in-out infinite;
  will-change: text-shadow, transform;
}

.stat-label {
  font-size: 0.9rem;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes float-glow {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px);
    opacity: 0.6;
  }
}

@keyframes title-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6));
  }
}

@keyframes number-glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

/* --- FILTERS SECTION --- */
.blog-filters {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
  will-change: transform;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.9rem;
  color: #c4b5fd;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  will-change: transform, border-color;
}

.filter-select:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.filter-select option {
  background: #1e1b4b;
  color: #fff;
}

.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fca5a5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  will-change: transform;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
  color: #fecaca;
  text-decoration: none;
}

.clear-filters-btn .lucide {
  width: 16px;
  height: 16px;
}

/* --- BLOG GRID --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.12);
  border: 1.5px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  will-change: transform;
  transform: translateZ(0);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

.blog-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: 0 16px 40px 0 rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.06) 100%);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card-header {
  position: relative;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.blog-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: #c4b5fd;
  font-size: 3rem;
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.category-badge {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-description {
  color: #d8b4fe;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.blog-date, .blog-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5b4fc;
  font-size: 0.9rem;
}

.blog-date .lucide, .blog-views .lucide {
  width: 16px;
  height: 16px;
}

.blog-card-footer {
  padding: 0 1.5rem 1.5rem;
}

.blog-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7c3aed;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  will-change: transform;
}

.blog-card:hover .blog-action {
  color: #ec4899;
}

.blog-action .lucide {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.blog-card:hover .blog-action .lucide {
  transform: translateX(4px);
}

/* --- PAGINATION --- */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  will-change: transform;
}

.page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.page-link .lucide {
  width: 18px;
  height: 18px;
}

.pagination-info {
  color: #a5b4fc;
  font-size: 0.9rem;
}

/* --- NO BLOGS --- */
.no-blogs {
  text-align: center;
  padding: 4rem 2rem;
}

.no-blogs-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-blogs-content .lucide {
  width: 4rem;
  height: 4rem;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
}

.no-blogs-content h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.no-blogs-content p {
  color: #d8b4fe;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-stats {
    gap: 2rem;
  }
  .stat-item {
    width: 150px;
    height: 120px;
    padding: 1.5rem 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .filters-container {
    gap: 1.5rem;
  }
  .filter-select {
    min-width: 160px;
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-item {
    width: 140px;
    height: 110px;
    padding: 1.2rem 0.8rem;
    min-width: 120px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .filter-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .filter-select {
    min-width: 200px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .blog-card {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    min-height: 420px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  .blog-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }
  .blog-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-item {
    width: 120px;
    height: 100px;
    padding: 1rem 0.6rem;
    min-width: 110px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.8rem;
    line-height: 1.1;
    word-wrap: break-word;
  }
  .blog-filters {
    padding: 1.5rem;
  }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select {
    min-width: 100%;
  }
  .blog-card-body {
    padding: 1.2rem;
  }
  .blog-title {
    font-size: 1.2rem;
  }
  .blog-description {
    font-size: 0.95rem;
  }
  .pagination {
    gap: 0.3rem;
  }
  .page-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  .blog-card {
    max-width: 100%;
    min-height: 400px;
    height: 100%;
  }
  .blog-image {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-stats {
    gap: 0.8rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-item {
    width: 110px;
    height: 90px;
    padding: 0.8rem 0.5rem;
    min-width: 100px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.75rem;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
  }
  .blog-filters {
    padding: 1rem;
  }
  .blog-card-body {
    padding: 1rem;
  }
  .blog-title {
    font-size: 1.1rem;
  }
  .blog-description {
    font-size: 0.9rem;
  }
  .blog-meta {
    gap: 1rem;
  }
  .blog-date, .blog-views {
    font-size: 0.8rem;
  }
  .page-link {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
} 

@media (min-width: 992px) {
  .filters-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    min-height: 64px;
    width: 100%;
  }
  .filters-container .filter-group {
    min-width: 220px;
    max-width: 320px;
    flex: 0 0 220px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
  }
  .filters-container .filter-group label {
    margin-bottom: 0;
    white-space: nowrap;
  }
  .filters-container .filter-group select {
    margin-bottom: 0;
  }
  .filters-container .filter-group:first-child {
    justify-content: flex-start;
  }
  .filters-container .filter-group:last-child {
    justify-content: flex-end;
  }
  .filters-container .clear-filters-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    box-shadow: 0 2px 16px 0 rgba(124,58,237,0.08);
    height: 48px;
    display: flex;
    align-items: center;
  }
} 

.blog-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
} 