/* Fire Effect CSS for Team Profile */

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

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

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

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

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

/* Fire particles container */
.fire-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 2;
}

/* Individual fire particles */
.fire-particle {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #ff3d00, #ffab00, #ff5722);
    border-radius: 50% 50% 20% 20%;
    filter: blur(4px);
    opacity: 0.8;
    animation: rise 1.5s infinite ease-in-out;
}

/* Fire particles for nameplate */
.nameplate-effect .fire-particle {
    filter: blur(2px);
    height: 10px !important;
    width: 6px !important;
    background: linear-gradient(to top, #ff3d00, #ffab00, #ff5722);
    border-radius: 40% 40% 20% 20%;
    box-shadow: 0 0 5px rgba(255, 100, 0, 0.5);
    z-index: 1;
}

/* Sakura petals animation for the image */
.sakura-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    border-radius: inherit;
}

/* Special effects for sakura container */
.gt-team-card-item:hover .sakura-effect {
    animation: sakura-glow 2s infinite ease-in-out;
}

.sakura-petal {
    position: absolute;
    background-color: #ff9ad5;
    border-radius: 150% 0 150% 0;
    animation: falling 10s infinite ease-in-out;
    opacity: 0.7;
    filter: blur(1px);
    box-shadow: 0 0 5px rgba(255, 154, 213, 0.3);
}

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

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

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

/* Animation for fire particles */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Animation for nameplate fire particles */
.nameplate-effect .fire-particle {
    animation: nameplate-fire-rise 1.5s infinite ease-in-out;
}

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

/* Animation for sakura petals */
@keyframes falling {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    25% {
        transform: translateX(-20px) rotate(90deg) scale(0.9);
    }
    50% {
        transform: translateX(20px) rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    75% {
        transform: translateX(-10px) rotate(270deg) scale(0.95);
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        top: 100%;
        transform: translateX(0) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

/* Animation for sakura burst effect */
@keyframes sakura-burst {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.1);
        opacity: 0;
    }
}

/* Animation for sakura glow effect */
@keyframes sakura-glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 150, 200, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 150, 200, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 150, 200, 0.3));
    }
}

/* Glow effect for team card */
.gt-team-card-item.fire-glow {
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.3);
    transition: all 0.4s ease;
    transform: translateY(0);
}

.gt-team-card-item.fire-glow:hover {
    box-shadow: 0 0 25px rgba(255, 61, 0, 0.6), 0 0 15px rgba(255, 150, 200, 0.5);
    transform: translateY(-5px);
}

/* Fire border effect */
.fire-border {
    position: relative;
}

.fire-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff3d00, #ffab00, #ff5722, #ff9800, #ff3d00);
    z-index: -1;
    border-radius: 12px;
    animation: border-fire 3s linear infinite;
    background-size: 400%;
}

/* Specific styling for nameplate fire border */
.nameplate-effect.fire-border::before {
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff3d00, #ffab00, #ff5722, #ff9800, #ff3d00);
    animation: border-fire 2s linear infinite;
    opacity: 0.8;
    filter: blur(0.5px);
}

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

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

/* Sakura overlay for team image */
.sakura-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;
    transition: all 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
    mix-blend-mode: screen;
}

.gt-team-card-item:hover .sakura-overlay {
    opacity: 0.15;
    background-size: 25px 25px;
    animation: sakura-pattern 10s infinite linear;
}

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