/* =============================================
   BLOGS PAGE STYLES
   Color Palette: Purple Gradient Theme
   Primary: #667eea | Secondary: #764ba2
   ============================================= */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =============================================
   HERO SECTION
   ============================================= */
.blogs-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blogs-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.blogs-hero__title {
  margin: 0 0 16px 0;
  font-size: 3.5rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: blogs-fadeInUp 0.6s ease-out;
}

.blogs-hero__subtitle {
  margin: 0;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  animation: blogs-fadeInUp 0.6s ease-out 0.1s backwards;
}

.blogs-hero__decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.blogs-main {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  min-height: 60vh;
  padding: 60px 0 80px;
}

.blogs-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BLOG CARD
   ============================================= */
.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 
    0 4px 6px rgba(102, 126, 234, 0.05),
    0 10px 40px rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: blogs-fadeInUp 0.5s ease-out backwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.15),
    0 10px 20px rgba(118, 75, 162, 0.1);
  border-color: rgba(102, 126, 234, 0.15);
}

/* Blog Card Image */
.blog-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.blog-card__image--placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__placeholder-icon {
  color: rgba(255, 255, 255, 0.5);
}

/* Blog Card Body */
.blog-card__body {
  padding: 32px 36px 36px;
}

/* Blog Card Meta */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-card__author,
.blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-card__author {
  color: #667eea;
}

.blog-card__author svg {
  color: #764ba2;
}

.blog-card__date {
  color: #718096;
}

.blog-card__date svg {
  color: #a0aec0;
}

/* Blog Card Title */
.blog-card__title {
  margin: 0 0 16px 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card__title a {
  color: #1a202c;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
}

.blog-card__title a:hover {
  color: #667eea;
  background-size: 100% 3px;
}

/* Blog Card Excerpt */
.blog-card__excerpt {
  margin: 0 0 24px 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a5568;
  letter-spacing: 0.01em;
}

/* Blog Card Footer */
.blog-card__footer {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.blog-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.blog-card__btn:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
  gap: 14px;
}

.blog-card__btn svg {
  transition: transform 0.3s ease;
}

.blog-card__btn:hover svg {
  transform: translateX(3px);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.blogs-empty {
  text-align: center;
  padding: 100px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border-radius: 20px;
  max-width: 550px;
  margin: 40px auto;
  box-shadow: 
    0 10px 40px rgba(102, 126, 234, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: blogs-fadeInUp 0.6s ease-out;
}

.blogs-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 50%;
  margin-bottom: 28px;
  color: #667eea;
}

.blogs-empty__title {
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  color: #2d3748;
  font-weight: 700;
}

.blogs-empty__text {
  margin: 0;
  font-size: 1.1rem;
  color: #718096;
  line-height: 1.6;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes blogs-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
  .blogs-hero {
    padding: 80px 20px 60px;
  }

  .blogs-hero__title {
    font-size: 2.5rem;
  }

  .blogs-hero__subtitle {
    font-size: 1.1rem;
  }

  .blogs-main {
    padding: 40px 0 60px;
  }

  .blogs-container {
    padding: 0 16px;
  }

  .blog-card {
    margin-bottom: 30px;
  }

  .blog-card__image {
    height: 220px;
  }

  .blog-card__body {
    padding: 24px;
  }

  .blog-card__title {
    font-size: 1.4rem;
  }

  .blog-card__excerpt {
    font-size: 1rem;
  }

  .blog-card__btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .blogs-empty {
    padding: 60px 24px;
    margin: 20px auto;
  }

  .blogs-empty__icon {
    width: 100px;
    height: 100px;
  }

  .blogs-empty__icon svg {
    width: 48px;
    height: 48px;
  }

  .blogs-empty__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blogs-hero {
    padding: 60px 16px 50px;
  }

  .blogs-hero__title {
    font-size: 2rem;
  }

  .blogs-hero__subtitle {
    font-size: 1rem;
  }

  .blog-card__image {
    height: 180px;
  }

  .blog-card__body {
    padding: 20px;
  }

  .blog-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .blog-card__title {
    font-size: 1.25rem;
  }

  .blog-card__excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blogs-empty__title {
    font-size: 1.3rem;
  }

  .blogs-empty__text {
    font-size: 1rem;
  }
}

/* =============================================
   DARK MODE SUPPORT (Optional)
   ============================================= */
@media (prefers-color-scheme: dark) {
  .blogs-main {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  }

  .blog-card {
    background: #1e2746;
    border-color: rgba(102, 126, 234, 0.2);
  }

  .blog-card__title a {
    color: #f0f0f0;
  }

  .blog-card__title a:hover {
    color: #667eea;
  }

  .blog-card__excerpt {
    color: #a0aec0;
  }

  .blog-card__date {
    color: #a0aec0;
  }

  .blog-card__footer {
    border-top-color: #2d3748;
  }

  .blogs-empty {
    background: linear-gradient(135deg, #1e2746 0%, #1a1a2e 100%);
    border-color: rgba(102, 126, 234, 0.2);
  }

  .blogs-empty__title {
    color: #f0f0f0;
  }

  .blogs-empty__text {
    color: #a0aec0;
  }
}