/* === saga-comic-card.css === */
/* Saga Stories – Featured Comic Grid & Cards */

/* === GRID LAYOUT === */
.comic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

/* === COMIC CARD === */
.comic-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff),
                    linear-gradient(135deg, #b300ff, #ff007f);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover lift + glow */
.comic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* === COVER IMAGE === */
.comic-cover img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.comic-card:hover .comic-cover img {
  transform: scale(1.03);
}

/* === CARD CONTENT === */
.comic-card-content {
  padding: 20px 18px 25px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title */
.comic-card-content h3 {
  font-size: 1.4rem;
  margin: 12px 0 10px;
  color: #1e1e1e;
  font-weight: 700;
  line-height: 1.3;
}

/* Excerpt */
.comic-card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 60px;
}

/* Read Button */
.comic-card-content a.read-now {
  display: inline-block;
  background: linear-gradient(135deg, #b300ff, #ff007f);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.comic-card-content a.read-now:hover {
  background: linear-gradient(135deg, #9a00e6, #e60073);
  transform: scale(1.05);
}

/* === RESPONSIVE DESIGN === */

/* Tablet View */
@media (max-width: 1024px) {
  .comic-card-grid {
    gap: 25px;
  }

  .comic-cover img {
    height: 300px;
  }

  .comic-card-content h3 {
    font-size: 1.3rem;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .comic-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comic-card {
    border-radius: 14px;
  }

  .comic-cover img {
    height: 260px;
  }

  .comic-card-content {
    padding: 15px;
  }

  .comic-card-content h3 {
    font-size: 1.15rem;
  }

  .comic-card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .comic-card-content a.read-now {
    font-size: 0.9rem;
    padding: 8px 18px;
  }
}

/* Very Small Devices */
@media (max-width: 480px) {
  .comic-cover img {
    height: 220px;
  }

  .comic-card-content h3 {
    font-size: 1rem;
  }
}
