/* Casino Ideal motion: reveals, hover polish, button shine, progress bar. */

html { scroll-behavior: smooth; }

/* Scroll progress bar */
.ci-progress {
    position: fixed; top: 0; left: 0; z-index: 10000; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--ci-brand, #00c896), var(--ci-purple, #7528ab) 60%, var(--ci-orange, #ed7600));
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.admin-bar .ci-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .ci-progress { top: 46px; } }

/* Scroll-in reveal (only elements below the fold get data-ci-reveal) */
.ci-motion [data-ci-reveal] {
    opacity: 0; transform: translate3d(0, 28px, 0) scale(.985);
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.ci-motion [data-ci-reveal].is-in { opacity: 1; transform: none; }

/* First screen: a gentle rise on page load */
@keyframes ci-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
#content .elementor > .e-con.e-parent:first-child .elementor-widget,
#content > section:first-child,
.ci-bdetail__head { animation: ci-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
#content .elementor > .e-con.e-parent:first-child .elementor-widget:nth-child(2) { animation-delay: .08s; }
#content .elementor > .e-con.e-parent:first-child .elementor-widget:nth-child(3) { animation-delay: .16s; }
#content .elementor > .e-con.e-parent:first-child .elementor-widget:nth-child(n+4) { animation-delay: .24s; }

/* Card hover lift */
.ci-crow, .ci-bonus, .ci-cc, .ci-ncard, .ci-stat, .ci-rg__cards > *, .ci-gbox, .ci-casino-card, .ci-category-card {
    transition: border-color .25s, box-shadow .3s, transform .3s cubic-bezier(.22, 1, .36, 1), background-color .25s;
}
.ci-crow:hover, .ci-bonus:hover, .ci-casino-card:hover, .ci-category-card:hover { transform: translateY(-3px); }
.ci-cc:hover, .ci-ncard:hover, .ci-rg__cards > *:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32); }
.ci-ncard:hover { border-color: rgba(0, 200, 150, .45); }
.ci-stat:hover { transform: translateY(-2px); }

/* Image zoom inside cards */
.ci-pcard__img img, .ci-ncard img, .ci-casino-card img:not([class*="logo"]) { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.ci-pcard:hover .ci-pcard__img img, .ci-ncard:hover img { transform: scale(1.06); }

/* Button shine sweep */
.ci-btn--primary, .ci-btn--orange, .ci-btn--purple, .ci-button--primary, .header-cta {
    background-image: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    background-size: 250% 100%; background-repeat: no-repeat; background-position: 160% 0;
    transition: background-color .2s, background-position .75s ease, transform .2s, box-shadow .25s;
}
.ci-btn--primary:hover, .ci-btn--orange:hover, .ci-btn--purple:hover, .ci-button--primary:hover, .header-cta:hover {
    background-image: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    background-size: 250% 100%; background-repeat: no-repeat; background-position: -60% 0;
}
.ci-btn--primary:hover { box-shadow: 0 8px 22px rgba(0, 200, 150, .32); }
.ci-btn--orange:hover { box-shadow: 0 8px 22px rgba(237, 118, 0, .32); }
.ci-btn--purple:hover { box-shadow: 0 8px 22px rgba(117, 40, 171, .32); }
.ci-btn:active, .ci-button:active { transform: translateY(0) scale(.98); }

/* Links in footer and menus slide slightly */
.ci-foot__links a { display: inline-block; transition: color .2s, transform .2s; }
.ci-foot__links a:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ci-progress { display: none; }
    #content .elementor > .e-con.e-parent:first-child .elementor-widget, #content > section:first-child, .ci-bdetail__head { animation: none; }
    .ci-crow:hover, .ci-bonus:hover, .ci-cc:hover, .ci-ncard:hover, .ci-stat:hover, .ci-rg__cards > *:hover,
    .ci-casino-card:hover, .ci-category-card:hover, .ci-foot__links a:hover { transform: none; }
    .ci-pcard:hover .ci-pcard__img img, .ci-ncard:hover img { transform: none; }
}
