/* Enhanced Results Guarantee with Shine Effect */

/* Animated gradient background */
.results-guarantee-hero {
    background: linear-gradient(135deg, #F99B39 0%, #ffa94d 50%, #F99B39 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

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

/* Sparkle/shine overlay effect */
.results-guarantee-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Star badge with pulse animation */
.guarantee-star-badge {
    display: inline-block;
    font-size: 48px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
    margin-bottom: 15px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 1));
    }
}

/* Glowing text effect */
.guarantee-glow-text {
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.6);
    }
}

/* Floating badge with rotation */
.floating-guarantee-badge {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite, float 3s ease-in-out infinite;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.5);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-guarantee-badge:hover {
    transform: scale(1.08);
}

.floating-badge-star {
    font-size: 42px;
    margin-bottom: 10px;
    animation: rotate 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-badge-text {
    color: white;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.floating-badge-free {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sparkle elements */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleAnimation 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkleAnimation {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    top: 30%;
    right: 20%;
    animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
    bottom: 25%;
    left: 50%;
    animation-delay: 0.75s;
}

/* Button with shine effect */
.guarantee-cta-shine {
    position: relative;
    overflow: hidden;
    background: white;
    color: #F99B39;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.guarantee-cta-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    transition: left 0.6s;
}

.guarantee-cta-shine:hover::before {
    left: 100%;
}

.guarantee-cta-shine:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 155, 57, 0.4);
}

/* Risk-free badge with pulse */
.risk-free-badge-animated {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .results-guarantee-hero {
        padding: 40px 15px;
    }
    
    .guarantee-star-badge {
        font-size: 36px;
    }
    
    .floating-guarantee-badge {
        width: 140px;
        height: 140px;
        top: 80px;
        right: 10px;
    }
    
    .floating-badge-star {
        font-size: 32px;
    }
    
    .floating-badge-text {
        font-size: 12px;
    }
    
    .floating-badge-free {
        font-size: 18px;
    }
}

/* Hide floating badge on very small screens */
@media (max-width: 480px) {
    .floating-guarantee-badge {
        display: none;
    }
}
