/**
 * Blog Archive Styles
 * 
 * Responsive blog archive page with card grid layout
 * and modern gradient design
 */

:root {
  --purple: #7f56d9;
  --purple-light: #9d7ce3;
  --purple-soft: #c4b5fd;
  --purple-bg: #f4ebff;
  --text: #1d1d1f;
  --muted: #667085;
  --border-light: #e5e7eb;
}

.blog-archive-wrapper {
  font-family: "Hind", sans-serif;
  background: linear-gradient(135deg, #f8f4ff 0%, #e8d5ff 50%, #ddd6fe 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: auto;
  padding: 20px 0;
  box-sizing: border-box;
}

.blog-archive-wrapper * {
  box-sizing: border-box;
}

.blog-archive-wrapper .skeleton-container {
  display: none !important;
}

.blog-archive-wrapper .skeleton-product-grid {
  display: none !important;
}

#skeleton-blog-wrapper {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== BACKGROUND SHAPES ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-shapes::before,
.bg-shapes::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(196, 181, 253, 0.1)
  );
  border-radius: 50px;
}

.bg-shapes::before {
  width: 400px;
  height: 200px;
  top: -50px;
  right: -100px;
  transform: rotate(-15deg);
}

.bg-shapes::after {
  width: 300px;
  height: 150px;
  bottom: 100px;
  left: -50px;
  transform: rotate(25deg);
}

.shape-1 {
  position: absolute;
  width: 600px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08),
    rgba(196, 181, 253, 0.05)
  );
  border-radius: 60px;
  top: 20%;
  right: -200px;
  transform: rotate(-20deg);
}

.shape-2 {
  position: absolute;
  width: 350px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.12),
    rgba(139, 92, 246, 0.06)
  );
  border-radius: 40px;
  bottom: 200px;
  left: -100px;
  transform: rotate(35deg);
}

/* ===== HERO SECTION ===== */
.blog-hero {
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 2;
}

.blog-hero .badge {
  display: inline-block;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.blog-hero h1 {
  font-size: 48px;
  margin: 20px 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  max-width: 520px;
  margin: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.blog-search {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.blog-search-input {
  padding: 14px 20px;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.blog-search-input::placeholder {
  color: var(--muted);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  position: relative;
  padding: 0px;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 28px !important;
  margin-bottom: 60px !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  display: block;
  width: 100%;
  height: auto;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(139, 92, 246, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.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.05);
}

.blog-card-content {
  padding: 24px;
}

.blog-category {
  font-size: 13px;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.blog-card-title {
  margin: 12px 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  font-family: 'Hind Siliguri';
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--purple);
}

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

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

.blog-meta-info {
  font-size: 13px;
  color: var(--muted);
}

.blog-meta-info strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.blog-date {
  display: block;
  color: var(--muted);
}

/* ===== PAGINATION ===== */
.blog-pagination {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  padding: 12px 16px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination a:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.blog-pagination .current {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.blog-pagination span.dots {
  background: transparent;
  border: none;
  cursor: default;
}

/* ===== NO POSTS ===== */
.blog-no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.blog-no-posts p {
  font-size: 18px;
  margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-search-input {
    width: 100%;
    max-width: 450px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
  }

  .bg-shapes::before {
    width: 300px;
    height: 150px;
  }

  .bg-shapes::after {
    width: 200px;
    height: 100px;
  }

  .shape-1 {
    width: 400px;
    height: 200px;
  }

  .shape-2 {
    width: 250px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 80px 15px 40px;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  .blog-search {
    padding: 0 10px;
  }

  .blog-search-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .blog-pagination a,
  .blog-pagination span {
    padding: 10px 12px;
    margin: 2px;
    font-size: 14px;
  }
}
