/* ========================================================================
   CARD HOVER EFFECTS
   Premium hover animations for cards in mom-son.html
   ======================================================================== */

/* ---------- Base Setup ---------- */
.info {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    border-radius: 5%;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-radius 0.4s ease;
}

/* ---------- 1. 3D Perspective Lift ---------- */
.info:hover {
    transform: translateY(-10px) scale(1.03);
    border-radius: 5%;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(240, 93, 240, 0.15);
}

/* ---------- 2. Glow Border Effect ---------- */
.info::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 6%;
    background: linear-gradient(45deg,
            #f05df0 0%,
            #00ffff 25%,
            #f05df0 50%,
            #ffcc00 75%,
            #f05df0 100%);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: glowRotate 3s linear infinite paused;
}

.info:hover::before {
    opacity: 0.8;
    animation-play-state: running;
}

@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------- 3. Image Zoom + Enhancement ---------- */
.article-img {
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.4s ease;
    will-change: transform;
}

.info:hover .article-img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.15) contrast(1.05);
}

/* ---------- 4. Shine/Gloss Sweep Effect ---------- */
.info::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 5%;
    background: linear-gradient(115deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.2) 45%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.2) 55%,
            transparent 65%,
            transparent 100%);
    transform: translateX(-150%);
    transition: transform 0s;
    pointer-events: none;
    z-index: 5;
}

.info:hover::after {
    transform: translateX(150%);
    transition: transform 0.7s ease;
}

/* Category pill with glow */
.info .category {
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        text-shadow 0.3s ease;
    transition-delay: 0s;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(102, 169, 233, 0.4),
        0 0 30px rgba(102, 169, 233, 0.3);
}

.info:hover .category {
    transition-delay: 0s;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(102, 169, 233, 0.8),
        0 0 40px rgba(102, 169, 233, 0.6),
        0 0 60px rgba(240, 93, 240, 0.4);
}

/* Genre container */
.info .genre-container {
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s,
        opacity 0.3s ease 0.35s;
}

.info:hover .genre-container {
    transition-delay: 0.08s;
}

/* Ratings stars - cascading delay */
.info .ratings-list .rating-star {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info:hover .ratings-list .rating-star:nth-child(1) {
    transition-delay: 0.12s;
}

.info:hover .ratings-list .rating-star:nth-child(2) {
    transition-delay: 0.18s;
}

.info:hover .ratings-list .rating-star:nth-child(3) {
    transition-delay: 0.24s;
}

.info:hover .ratings-list .rating-star:nth-child(4) {
    transition-delay: 0.30s;
}

.info:hover .ratings-list .rating-star:nth-child(5) {
    transition-delay: 0.36s;
}

/* Content button */
.info .content {
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info:hover .content {
    transition-delay: 0.15s;
}

/* ---------- 6. Mouse-Tracking 3D Tilt (JS-controlled) ---------- */
.info.tilt-active {
    transform:
        perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-10px) scale(1.03);
    transition:
        box-shadow 0.4s ease;
}

.info.tilt-active .article-img {
    transform: scale(1.08) translateZ(30px);
}

/* ---------- Badge Enhancements ---------- */
.tile.is-dubbed::before,
.tile.is-translated::after {
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.tile:hover.is-dubbed::before,
.tile:hover.is-translated::after {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Reduced Motion Preference ---------- */
@media (prefers-reduced-motion: reduce) {

    .info,
    .info::before,
    .info::after,
    .article-img,
    .info .category,
    .info .genre-container,
    .info .ratings-list .rating-star,
    .info .content {
        transition: none !important;
        animation: none !important;
    }

    .info:hover {
        transform: none;
        box-shadow: 0 0 20px rgba(240, 93, 240, 0.3);
    }

    .info:hover .article-img {
        transform: none;
        filter: brightness(1.05);
    }

    .info::after {
        display: none;
    }
}