/* YuManSe Main Styles - Copyright: hhx-library.com 2025 */

.yumanse-home-layout, .yumanse-library-layout, .yumanse-updates-layout, .yumanse-news-layout, .yumanse-community-layout, .yumanse-user-layout {
    --yumanse-primary-pink: #ec4899;
    --yumanse-primary-purple: #8b5cf6;
    --yumanse-primary-indigo: #6366f1;
    --yumanse-accent-blue: #3b82f6;
}

.yumanse-bg-wrapper {
    background-attachment: fixed;
}

.yumanse-sakura-system {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    background-size: 180px 180px, 220px 220px, 120px 120px;
    animation: yumanse-sakura-drift 45s linear infinite;
}

@keyframes yumanse-sakura-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(120px, 120px) rotate(360deg); }
}

.yumanse-floating-elements::before,
.yumanse-floating-elements::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.8), rgba(139, 92, 246, 0.8));
    border-radius: 50%;
    animation: yumanse-element-float 35s infinite linear;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6), 0 0 50px rgba(139, 92, 246, 0.4);
}

.yumanse-floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: -15s;
}

.yumanse-floating-elements::after {
    top: 80%;
    right: 15%;
    animation-delay: -25s;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.8));
}

@keyframes yumanse-element-float {
    0% {
        transform: translateY(120vh) translateX(-60px) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(100vh) translateX(-10px) rotate(90deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-20vh) translateX(80px) rotate(450deg) scale(1.5);
    }
    100% {
        transform: translateY(-40vh) translateX(140px) rotate(540deg) scale(0);
        opacity: 0;
    }
}

.yumanse-main-nav {
    backdrop-filter: blur(25px) saturate(180%);
}

.yumanse-brand-link:hover .yumanse-logo-main {
    animation: yumanse-logo-pulse 1s ease-in-out;
}

@keyframes yumanse-logo-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-5deg); }
}

.yumanse-card-interactive {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.yumanse-card-interactive:hover {
    transform: translateY(-15px) scale(1.05) rotateX(8deg);
    filter: brightness(1.3);
}

.yumanse-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.yumanse-card-interactive:hover::before {
    opacity: 1;
}

.yumanse-btn-primary,
.yumanse-btn-secondary {
    position: relative;
    overflow: hidden;
}

.yumanse-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s ease;
}

.yumanse-btn-primary:hover::before {
    left: 100%;
}

.yumanse-stat-number {
    animation: yumanse-count-up 3.5s ease-out;
}

@keyframes yumanse-count-up {
    0% { opacity: 0; transform: translateY(40px) scale(0.7); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.yumanse-review-card {
    transition: all 0.6s ease;
    backdrop-filter: blur(18px);
}

.yumanse-review-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 35px 70px rgba(236, 72, 153, 0.4);
}

#yumanse-back-to-top {
    transform: translateY(150px) rotate(0deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#yumanse-back-to-top.yumanse-show {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
}

#yumanse-back-to-top:hover {
    transform: translateY(-8px) rotate(720deg) scale(1.3);
    box-shadow: 0 25px 50px rgba(236, 72, 153, 0.8);
}

.yumanse-footer-divider {
    animation: yumanse-divider-glow 6s ease-in-out infinite alternate;
}

@keyframes yumanse-divider-glow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.yumanse-social-link:hover {
    transform: translateY(-5px) scale(1.25);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.7);
}

.yumanse-footer-link:hover i {
    transform: scale(1.4) rotate(15deg);
    transition: transform 0.6s ease;
}

.yumanse-main-footer {
    position: relative;
    overflow: hidden;
}

.yumanse-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #8b5cf6);
    border-radius: 8px;
    border: 3px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #db2777, #7c3aed);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
}

@media (max-width: 768px) {
    .yumanse-floating-elements::before,
    .yumanse-floating-elements::after {
        width: 5px;
        height: 5px;
    }
    
    .yumanse-sakura-system {
        background-size: 90px 90px, 110px 110px, 60px 60px;
    }

    .yumanse-hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .yumanse-card-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .yumanse-hero-title {
        font-size: 2.5rem;
    }
    
    .yumanse-stat-number {
        font-size: 2rem;
    }
}

@keyframes yumanse-fade-in {
    0% { opacity: 0; transform: translateY(50px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.yumanse-fade-in {
    animation: yumanse-fade-in 1.2s ease-out forwards;
}

.yumanse-glow {
    box-shadow: 
        0 0 35px rgba(236, 72, 153, 0.8),
        0 0 70px rgba(139, 92, 246, 0.6),
        inset 0 0 35px rgba(99, 102, 241, 0.3);
    animation: yumanse-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes yumanse-glow-pulse {
    0% {
        box-shadow: 
            0 0 35px rgba(236, 72, 153, 0.8),
            0 0 70px rgba(139, 92, 246, 0.6),
            inset 0 0 35px rgba(99, 102, 241, 0.3);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(236, 72, 153, 1),
            0 0 100px rgba(139, 92, 246, 0.8),
            inset 0 0 50px rgba(99, 102, 241, 0.4);
    }
}

.yumanse-text-glow {
    text-shadow: 
        0 0 20px rgba(236, 72, 153, 0.8),
        0 0 40px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(99, 102, 241, 0.5);
    animation: yumanse-text-pulse 5s ease-in-out infinite;
}

@keyframes yumanse-text-pulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(236, 72, 153, 0.8),
            0 0 40px rgba(139, 92, 246, 0.6),
            0 0 60px rgba(99, 102, 241, 0.5);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(236, 72, 153, 1),
            0 0 60px rgba(139, 92, 246, 0.8),
            0 0 90px rgba(99, 102, 241, 0.7);
    }
}

.yumanse-smooth-transition {
    transition: all 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.yumanse-smooth-transition:hover {
    transform: perspective(2000px) rotateX(20deg) rotateY(20deg) scale(1.15);
}

.yumanse-3d-card {
    transform-style: preserve-3d;
    perspective: 2000px;
}

.yumanse-3d-card:hover {
    transform: rotateY(25deg) rotateX(25deg) translateZ(50px);
}

.yumanse-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-5px);
    filter: blur(30px);
    opacity: 0.9;
}