/* ===============================================
   LUXARDO LABS - PUBLIC SITE EFFECTS
   Animations, keyframes, and effects only.
   All layout/spacing/typography handled by Tailwind.
   =============================================== */

/* ============ FLOATING ORBS ============ */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(230, 32, 32, 0.15) 0%, rgba(165, 11, 94, 0.05) 70%);
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 20%;
    animation: float-around 15s ease-in-out infinite;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation: float-around 18s ease-in-out infinite reverse;
}

.orb-3 {
    width: 250px;
    height: 250px;
    bottom: 30%;
    left: 60%;
    animation: float-around 20s ease-in-out infinite 5s;
}

@keyframes float-around {
    0% { transform: translate(0, 0); }
    25% { transform: translate(200px, -100px); }
    50% { transform: translate(100px, 150px); }
    75% { transform: translate(-150px, 50px); }
    100% { transform: translate(0, 0); }
}

/* ============ PAGE ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes searchResultAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ============ APP ICON HERO (3D float) ============ */
.app-icon-hero {
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    animation: icon-float 6s ease-in-out infinite;
}

.app-icon-hero::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 44px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 15px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.app-icon-hero img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 36px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes icon-float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) translateY(-10px);
    }
}

/* ============ SPINNER ============ */
.spinner {
    animation: spin 1s linear infinite;
}

.spinner-circle {
    stroke: #E62020;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% { stroke-dashoffset: 50; }
    50% { stroke-dashoffset: 15; }
    100% { stroke-dashoffset: 50; }
}

/* ============ COOKIE CONSENT ANIMATION ============ */
.cookie-consent-animate {
    animation: slideUp 0.3s ease-out;
}

/* ============ COOKIE TOGGLE SWITCH ============ */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #88807C;
    border: 1px solid rgba(230, 32, 32, 0.3);
    transition: all 200ms ease;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #F5EBDD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 200ms ease;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #E62020;
    border-color: #E62020;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

/* ============ DOCS RELEVANCE SCORE BAR ============ */
.relevance-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #E62020, #CD7F32);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0.3;
}

.relevance-bar:hover::before {
    opacity: 0.5;
}

@keyframes expandRelevance {
    from { width: 0; }
    to { width: var(--relevance-width, 50%); }
}

.relevance-bar.animate::before {
    animation: expandRelevance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============ VOTING WIDGET ============ */
.vote-btn:hover svg {
    filter: drop-shadow(0 0 8px #E62020);
}

/* ============ LOGO UNDERLINE GLOW ============ */
.logo-glow-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #E62020 0%, #A50B5E 100%);
    border-radius: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

/* ============ TESTIMONIAL HOVER ============ */
.testimonial-hover:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.testimonial-hover:hover .author-avatar-ring {
    transform: scale(1.1);
    border-color: #E62020;
    box-shadow: 0 0 20px rgba(230, 32, 32, 0.4);
}

/* ============ DOCS MOBILE SIDEBAR SLIDE ============ */
.docs-mobile-sidebar {
    transition: transform 0.3s ease;
}

/* ============ UNSUBSCRIBE IMAGE EFFECT ============ */
.unsubscribe-glow:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 0 20px #E62020) drop-shadow(0 0 40px rgba(230, 32, 32, 0.6));
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
