/**
 * Advanced 3D Animations - Preferred Source Banner (Simplified)
 */

/* Base 3D Container Setup */
.psb-3d-enabled {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Animation Presets */
@keyframes psb-slide-in-3d {
    0% {
        transform: translateY(-100%) rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

.psb-animation-slide-3d {
    animation: psb-slide-in-3d 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes psb-flip-in {
    0% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.psb-animation-flip {
    animation: psb-flip-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes psb-fold-down {
    0% {
        transform: rotateX(-90deg);
        transform-origin: top;
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.psb-animation-fold {
    animation: psb-fold-down 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: top;
}

@keyframes psb-cube-rotate {
    0% {
        transform: translateZ(-200px) rotateY(-90deg);
        opacity: 0;
    }
    100% {
        transform: translateZ(0) rotateY(0deg);
        opacity: 1;
    }
}

.psb-animation-cube {
    animation: psb-cube-rotate 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes psb-zoom-3d {
    0% {
        transform: scale(0) translateZ(-100px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
}

.psb-animation-zoom-3d {
    animation: psb-zoom-3d 0.8s ease-out forwards;
}

/* New: Bounce 3D (2025 trend) */
@keyframes psb-bounce-3d {
    0%, 100% {
        transform: translateZ(0);
    }
    50% {
        transform: translateZ(50px) scale(1.1);
    }
}

.psb-animation-bounce-3d {
    animation: psb-bounce-3d 1s ease-in-out forwards;
}

/* Hover Effects */
.psb-hover-lift:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.psb-hover-tilt:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Parallax (optimized) */
.psb-parallax {
    transition: transform 0.1s ease-out;
}

/* Scroll Animation */
.psb-scroll-animated {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Consent Notice */
.psb-consent-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.psb-consent-notice.show {
    transform: translateY(0);
}

.psb-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.psb-consent-content p {
    flex: 1;
    margin: 0;
    min-width: 200px;
}

.psb-consent-actions {
    display: flex;
    gap: 10px;
}

.psb-consent-accept,
.psb-consent-decline {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.psb-consent-accept {
    background: #4CAF50;
    color: white;
}

.psb-consent-accept:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.psb-consent-decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.psb-consent-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .psb-floating-wrapper {
        max-width: 90%;
        left: 5% !important;
        right: 5% !important;
    }

    .psb-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .psb-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Performance Optimizations */
.psb-3d-enabled,
.psb-animation-slide-3d,
.psb-animation-flip,
.psb-animation-cube,
.psb-hover-tilt {
    will-change: transform;
}

.psb-gradient-animate,
.psb-holographic {
    will-change: background-position, filter;
}