/* 
  ===================================================================
  Component: Blog Page Styles
  ===================================================================
*/

/* --- Animated Background Blobs --- */
@keyframes moveBlob {
  0%, 100% {
    transform: translate(10%, -10%) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30%, 10%) scale(1.2) rotate(90deg);
  }
  50% {
    transform: translate(50%, 40%) scale(0.8) rotate(180deg);
  }
  75% {
    transform: translate(20%, 50%) scale(1.1) rotate(270deg);
  }
}

@keyframes moveBlob2 {
  0%, 100% {
    transform: translate(80%, 80%) scale(1) rotate(45deg);
  }
  25% {
    transform: translate(60%, 40%) scale(0.8) rotate(120deg);
  }
  50% {
    transform: translate(30%, 70%) scale(1.2) rotate(210deg);
  }
  75% {
    transform: translate(70%, 20%) scale(0.9) rotate(300deg);
  }
}

.background-blob, .background-blob-2 {
  position: fixed;
  border-radius: 9999px;
  filter: blur(100px);
  z-index: -1;
  will-change: transform;
}

.background-blob {
  top: 0;
  left: 0;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle at center, var(--display-start), transparent 60%);
  opacity: 0.2;
  animation: moveBlob 30s infinite alternate ease-in-out;
}

.background-blob-2 {
  bottom: 0;
  right: 0;
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle at center, var(--display-end), transparent 70%);
  opacity: 0.15;
  animation: moveBlob2 45s infinite alternate ease-in-out;
}


/* --- Blog Card Styling --- */
.blog-card,
.featured-post-card {
    background-color: rgba(22, 22, 28, 0.7); /* More opaque background */
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover,
.featured-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--display-start);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.blog-card-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.blog-card-snippet {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-card-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: capitalize;
}

/* --- Featured Post Styling --- */
.featured-post-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .featured-post-card {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

.featured-post-card:hover {
    border-color: var(--display-end);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.25);
}

.featured-post-card .blog-card-image-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem; /* Add rounded corners to the image wrapper */
    overflow: hidden; /* Ensure image respects the border radius */
}

@media (min-width: 1024px) {
    .featured-post-card .blog-card-image-wrapper {
        aspect-ratio: auto;
        height: 100%;
        align-self: stretch; /* Make the wrapper fill the grid cell height */
    }
}

.featured-post-card .blog-card-title {
    font-size: 1.75rem;
}

.featured-post-card .blog-card-snippet {
    font-size: 1rem;
}

/* --- Loader --- */
.loader {
    font-size: 1rem;
    padding: 2rem;
}