/*
 * NobleCause — Animations & Keyframes CSS
 * All premium micro-interactions, transitions, and motion design.
 */

/* ============================================================
   WATER RIPPLE BUTTON EFFECT
   ============================================================ */
.nc-btn {
    isolation: isolate;
}
.nc-btn::after {
    content: none; /* managed by JS */
}

/* ============================================================
   GLOW PULSE — for buttons and badges
   ============================================================ */
@keyframes nc-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.35), 0 0 40px rgba(245, 166, 35, 0.1); }
    50%       { box-shadow: 0 0 35px rgba(245, 166, 35, 0.6),  0 0 70px rgba(245, 166, 35, 0.2); }
}
.nc-glow-pulse { animation: nc-glow-pulse 3s ease-in-out infinite; }

/* ============================================================
   FLOATING SHAPES
   ============================================================ */
@keyframes nc-float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    33%       { transform: translateY(-20px) rotate(2deg) scale(1.02); }
    66%       { transform: translateY(-10px) rotate(-1deg) scale(0.99); }
}
@keyframes nc-float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-30px) rotate(5deg); }
}
@keyframes nc-float-fast {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-15px) scale(1.04); }
}
.nc-float-slow   { animation: nc-float-slow   8s ease-in-out infinite; }
.nc-float-medium { animation: nc-float-medium 6s ease-in-out infinite; }
.nc-float-fast   { animation: nc-float-fast   4s ease-in-out infinite; }

/* ============================================================
   GRADIENT ANIMATION (background shift)
   ============================================================ */
@keyframes nc-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nc-animated-gradient {
    background: linear-gradient(270deg, #f5a623, #d4af37, #f5c518, #c8930a);
    background-size: 400% 400%;
    animation: nc-gradient-shift 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   COUNTER SLIDE UP (used with CountUp.js targets)
   ============================================================ */
@keyframes nc-slide-up-fade {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.nc-slide-up { animation: nc-slide-up-fade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ============================================================
   CARD ENTRANCE (stagger applied via JS)
   ============================================================ */
@keyframes nc-card-enter {
    from {
        transform: translateY(30px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.nc-card-enter { animation: nc-card-enter 0.6s cubic-bezier(0.34, 1.06, 0.64, 1) forwards; }

/* ============================================================
   SHIMMER LOADING SKELETON
   ============================================================ */
@keyframes nc-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.nc-skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 400px 100%;
    animation: nc-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
.nc-skeleton-line { height: 14px; width: 100%; margin-bottom: 8px; }
.nc-skeleton-line--short { width: 60%; }
.nc-skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   LIVE FEED TICKER
   ============================================================ */
@keyframes nc-ticker-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.nc-ticker-wrap { overflow: hidden; position: relative; max-height: 480px; }
.nc-ticker-inner { animation: nc-ticker-scroll 30s linear infinite; }
.nc-ticker-wrap:hover .nc-ticker-inner { animation-play-state: paused; }

/* ============================================================
   CIRCULAR PROGRESS RING ANIMATION
   ============================================================ */
.nc-ring__fill {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   WAVE / RIPPLE CLICK ANIMATION (JS creates the element)
   ============================================================ */
@keyframes nc-wave-ripple {
    0%   { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}
.nc-ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: nc-wave-ripple 0.65s ease-out forwards;
}

/* ============================================================
   HERO PARALLAX OVERLAY GRADIENT ANIMATION
   ============================================================ */
@keyframes nc-hero-glow {
    0%, 100% { opacity: 0.6; transform: scale(1) translate(0, 0); }
    25%       { opacity: 0.8; transform: scale(1.05) translate(10px, -10px); }
    50%       { opacity: 0.7; transform: scale(1.02) translate(-5px, 5px); }
    75%       { opacity: 0.9; transform: scale(1.08) translate(8px, 8px); }
}
.nc-hero-glow { animation: nc-hero-glow 12s ease-in-out infinite; }

/* ============================================================
   DONATION AMOUNT PILL SELECTION EFFECT
   ============================================================ */
@keyframes nc-pill-select {
    0%   { transform: scale(1); }
    40%  { transform: scale(0.94); }
    70%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.nc-amount-pill.selecting { animation: nc-pill-select 0.3s ease; }

/* ============================================================
   CHECKMARK DRAW ANIMATION (thank-you page)
   ============================================================ */
@keyframes nc-draw-check {
    to { stroke-dashoffset: 0; }
}
.nc-checkmark-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: nc-draw-check 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

/* ============================================================
   HEART BEAT (donation success micro-animation)
   ============================================================ */
@keyframes nc-heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.3); }
    70%       { transform: scale(1); }
}
.nc-heartbeat { animation: nc-heartbeat 1.5s ease-in-out 1; }

/* ============================================================
   GOLD BORDER GLOW PULSE (top donor card)
   ============================================================ */
@keyframes nc-border-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(245,166,35,0.2), 0 0 15px rgba(245,166,35,0.2); }
    50%       { box-shadow: 0 0 0 1px rgba(245,166,35,0.6), 0 0 30px rgba(245,166,35,0.4); }
}
.nc-donor-card--top { animation: nc-border-glow 3s ease-in-out infinite; }

/* ============================================================
   SECTION DIVIDER ANIMATED LINE
   ============================================================ */
.nc-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #d4af37);
    border-radius: 2px;
    margin: 16px auto 0;
    position: relative;
    overflow: hidden;
}
.nc-divider::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: nc-shimmer-line 2s ease-in-out infinite;
}
@keyframes nc-shimmer-line {
    to { left: 100%; }
}

/* ============================================================
   AOS CUSTOM OVERRIDES (faster, smoother)
   ============================================================ */
[data-aos] { will-change: transform, opacity; }
[data-aos="nc-rise"] {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
[data-aos="nc-rise"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   MOUSE PARALLAX LAYER (JS controls transform)
   ============================================================ */
.nc-parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ============================================================
   PROGRESS BAR ANIMATED STRIPE
   ============================================================ */
@keyframes nc-bar-stripe {
    from { background-position: 40px 0; }
    to   { background-position: 0 0; }
}
.nc-progress__bar--animated {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    background-size: 40px 40px;
    animation: nc-bar-stripe 1s linear infinite;
}

/* ============================================================
   TOAST SLIDE IN
   ============================================================ */
@keyframes nc-toast-in {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.nc-toast.show { animation: nc-toast-in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards; }

/* ============================================================
   BLINKING CURSOR (hero animated type effect)
   ============================================================ */
.nc-cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #f5a623;
    margin-left: 2px;
    vertical-align: middle;
    animation: nc-blink 1s step-end infinite;
}
@keyframes nc-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
