/* ============================================
   KoreanAnime — Shared Styles & Animations
   ============================================ */

/* ---- Enhanced card hover ---- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  position: relative;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(139, 92, 246, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.18);
}

/* Shimmer sweep on hover */
.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(139, 92, 246, 0.07) 50%,
    rgba(236, 72, 153, 0.05) 65%,
    transparent 80%
  );
  background-size: 250% 100%;
  background-position: 200% center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}

.card-hover:hover::after {
  opacity: 1;
  animation: card-shimmer 0.9s ease forwards;
}

@keyframes card-shimmer {
  from { background-position: 200% center; }
  to   { background-position: -50% center; }
}

/* Poster image zoom — works with group/overflow-hidden wrappers */
.card-hover img,
.card-hover .card-img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover img,
.card-hover:hover .card-img {
  transform: scale(1.07);
}

/* Article card lift — slightly smaller lift for landscape cards */
.card-hover.article-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 40px rgba(139, 92, 246, 0.22),
    0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* ---- LIVE badge pulse ---- */
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.live-badge {
  animation: live-pulse 2s ease-in-out infinite;
}

/* ---- Rating bar glow ---- */
@keyframes rating-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
  50%       { box-shadow: 0 0 16px rgba(236, 72, 153, 0.5); }
}

.rating-bar-animated {
  animation: rating-glow 3s ease-in-out infinite;
}

/* ---- Schedule page styles ---- */
.sched-day-col {
  min-width: 140px;
  transition: background 0.2s;
}

.sched-today-col {
  background: rgba(139, 92, 246, 0.06);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.sched-card {
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s;
  cursor: pointer;
}

.sched-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.3),
              0 0 0 1px rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.35);
}

.sched-card img {
  transition: transform 0.5s ease;
}

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

/* ---- "Completed" card grey-out ---- */
.sched-card.completed {
  opacity: 0.7;
  filter: saturate(0.6);
}

.sched-card.completed:hover {
  opacity: 1;
  filter: saturate(1);
}

/* ---- Fade-in entrance animation ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-up 0.4s ease forwards;
}

/* ---- Genre pill active ---- */
.genre-pill { transition: all 0.15s ease; }
.genre-pill.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

/* ---- Footer grid ---- */
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s,
              color 0.2s,
              box-shadow 0.2s;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.12);
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
}
