/* TrustPilot Custom Styling 
 * This stylesheet customizes the TrustPilot widget to match UpLiftTeck's theme
 */

/* Custom container for TrustPilot widget */
.trustpilot-container {
    background: linear-gradient(to right, rgba(0, 14, 23, 0.7), rgba(2, 46, 75, 0.7));
    border: 1px solid #38b6ff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.5);
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Highlight beam that sweeps across the container */
.trustpilot-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: highlightSweep 7s infinite ease-in-out;
    pointer-events: none;
}

@keyframes highlightSweep {
    0% {
        transform: translate(-100%, -100%) rotate(30deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(30deg);
    }
}

/* Hover effect for the container */
.trustpilot-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(56, 182, 255, 0.8);
}

/* Glowing corners similar to service cards */
.trustpilot-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #38b6ff, transparent, #38b6ff);
    z-index: -1;
    border-radius: 12px;
    animation: glowingBorder 3s linear infinite;
}

/* Animated gradient border */
@keyframes glowingBorder {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Section heading for the TrustPilot widget */
.trustpilot-heading {
    color: #ffffff;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(56, 182, 255, 0.7);
}

/* Add scanning line effect like in services section */
.trustpilot-scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #38b6ff, transparent);
    top: 0;
    left: 0;
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* Style adjustments for the iframe (limited by TrustPilot's constraints) */
.trustpilot-widget {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Add a subtle particle effect in the background */
.trustpilot-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.trustpilot-particle {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background-color: #38b6ff;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Custom styles for the Trustpilot description */
.trustpilot-description {
    color: #d9d9d9;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Floating TrustPilot emoji icons for visual engagement */
.trustpilot-emoji {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: floatUpEmoji 4s forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes floatUpEmoji {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) rotate(10deg);
    }
}

/* Attention spotlight effect */
.spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.15) 0%, rgba(56, 182, 255, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    animation: spotlightPulse 4s infinite;
}

@keyframes spotlightPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Leave a Review Button */
.leave-review-btn {
    display: block;
    background: linear-gradient(90deg, #0062cc, #0095ff);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 20px auto 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.5);
    max-width: 250px;
    cursor: pointer;
    animation: pulse 2s infinite;
    transform-style: preserve-3d;
    z-index: 10;
}

/* Add shine effect to button */
.leave-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 150%;
    }
}

.leave-review-btn:hover {
    background: linear-gradient(90deg, #0095ff, #00c2ff);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 149, 255, 0.5);
}

.leave-review-btn:active {
    transform: scale(0.98);
}

/* Button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 182, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(56, 182, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 182, 255, 0);
    }
}

/* Rating Stars */
.rating-stars-container {
    text-align: center;
    margin: 15px auto;
    position: relative;
    height: 40px;
}

.rating-stars {
    display: inline-block;
}

.star {
    display: inline-block;
    margin: 0 3px;
    color: #f8d64e;
    font-size: 25px;
    opacity: 0;
    transform: scale(0);
    animation: starAppear 0.3s forwards;
    text-shadow: 0 0 10px rgba(248, 214, 78, 0.7);
}

@keyframes starAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    80% {
        transform: scale(1.2) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Badge */
.trustpilot-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #ff3860, #ff586c);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    transform: rotate(15deg);
    box-shadow: 0 2px 10px rgba(255, 56, 96, 0.5);
    z-index: 2;
    animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
    0% {
        transform: rotate(15deg) scale(1);
    }
    100% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trustpilot-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .trustpilot-heading {
        font-size: 1.5rem;
    }
    
    .leave-review-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 