/* Sakura Effect CSS for Team Profile */

/* Base sakura effect class */
.sakura-effect {
    position: relative;
    overflow: hidden;
}

/* Nameplate with sakura effect */
.nameplate-effect.sakura-border {
    background-color: rgba(30, 0, 20, 0.8);
    box-shadow: 0 0 15px rgba(255, 150, 200, 0.4);
}

.nameplate-effect.sakura-border:hover {
    box-shadow: 0 0 25px rgba(255, 150, 200, 0.7), 0 0 15px rgba(255, 180, 220, 0.6);
}

.nameplate-effect.sakura-border .nameplate-icon {
    color: #ff80c3;
    animation: sakura-pulse 1.5s infinite ease-in-out;
}

@keyframes sakura-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(255, 150, 200, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 180, 220, 0.9), 0 0 20px rgba(255, 150, 200, 0.5);
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(255, 150, 200, 0.7);
    }
}

/* Sakura particles container */
.sakura-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Individual sakura particle */
.sakura-particle {
    position: absolute;
    background-color: #ff9ad5;
    border-radius: 150% 0 150% 0;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 154, 213, 0.3);
    z-index: 1;
    opacity: 0;
}

/* Sakura petal variations */
.sakura-particle:nth-child(3n) {
    background-color: #ffcce6;
    border-radius: 150% 50% 150% 50%;
}

.sakura-particle:nth-child(3n+1) {
    background-color: #ffa6d2;
    border-radius: 50% 150% 50% 150%;
}

.sakura-particle:nth-child(3n+2) {
    background-color: #ff80c3;
    border-radius: 150% 150% 0 150%;
}

/* Nameplate sakura animation */
.nameplate-effect .sakura-particle {
    animation: nameplate-sakura-fall 3s infinite ease-in-out;
}

@keyframes nameplate-sakura-fall {
    0% {
        transform: translateY(-10%) translateX(0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50%) translateX(var(--drift, 0px)) scale(0.8) rotate(var(--rotation, 0deg));
        opacity: 0.6;
    }
    100% {
        transform: translateY(110%) translateX(calc(var(--drift, 0px) * 2)) scale(0.6) rotate(calc(var(--rotation, 0deg) * 2));
        opacity: 0;
    }
}

/* Sakura overlay effect */
.nameplate-effect.sakura-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff80c3, #ff9ad5, #ffcce6, #ffffff, #ffcce6, #ff9ad5, #ff80c3);
    background-size: 400%;
    animation: border-sakura 3s linear infinite;
    opacity: 0.5;
    filter: blur(5px);
    z-index: -1;
    transition: all 0.3s ease;
}

.nameplate-effect.sakura-border:hover::before {
    animation-duration: 1s;
    opacity: 0.8;
    filter: blur(3px);
}

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

/* Live text effect */
.live-text {
    position: relative;
    display: inline-block;
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
    animation: live-pulse 1.5s infinite ease-in-out;
}

@keyframes live-pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Sakura pattern overlay */
.sakura-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23ff9ad5" d="M10,0 C12,5 15,8 20,10 C15,12 12,15 10,20 C8,15 5,12 0,10 C5,8 8,5 10,0 Z"/></svg>');
    background-size: 20px 20px;
    opacity: 0.1;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
}

.nameplate-effect.sakura-border:hover .sakura-pattern-overlay {
    opacity: 0.2;
    background-size: 25px 25px;
    animation: sakura-pattern 10s infinite linear;
}

@keyframes sakura-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}