/* Animated Coin Logo Styles */
.coin-logo {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: coinRotate 4s linear infinite;
}

.coin-logo-large {
    width: 80px;
    height: 80px;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffed4e;
    overflow: hidden;
}

.coin-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.coin-face-front {
    transform: translateZ(5px);
}

.coin-face-back {
    transform: rotateY(180deg) translateZ(5px);
}

.coin-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
    transform: rotateY(90deg);
    border: 2px solid #ffed4e;
}

@keyframes coinRotate {
    0% {
        transform: rotateY(0deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

/* Floating coin animation */
.coin-float {
    animation: coinFloat 3s ease-in-out infinite;
}

@keyframes coinFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-15px) rotateY(180deg);
    }
}

/* Spinning coin animation */
.coin-spin {
    animation: coinSpin 2s linear infinite;
}

@keyframes coinSpin {
    0% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateZ(360deg);
    }
}

/* Pulse glow effect */
.coin-glow {
    animation: coinGlow 2s ease-in-out infinite;
}

@keyframes coinGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.5),
            inset 0 0 10px rgba(255, 255, 255, 0.3),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            inset 0 0 20px rgba(255, 255, 255, 0.5),
            0 5px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Bouncing coin animation */
.coin-bounce {
    animation: coinBounce 2s ease-in-out infinite;
}

@keyframes coinBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    40% {
        transform: translateY(-20px) rotateY(180deg);
    }
    60% {
        transform: translateY(-10px) rotateY(360deg);
    }
}

/* Responsive coin sizes */
@media (max-width: 768px) {
    .coin-logo {
        width: 40px;
        height: 40px;
    }
    
    .coin-logo-large {
        width: 60px;
        height: 60px;
    }
}

/* Coin stack effect */
.coin-stack {
    position: relative;
}

.coin-stack .coin-logo {
    position: absolute;
}

.coin-stack .coin-logo:nth-child(1) { top: 0px; z-index: 3; }
.coin-stack .coin-logo:nth-child(2) { top: 3px; z-index: 2; opacity: 0.9; }
.coin-stack .coin-logo:nth-child(3) { top: 6px; z-index: 1; opacity: 0.8; }

/* Simple coin logo for backgrounds */
.coin-simple {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffed4e;
}

.coin-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-simple-large {
    width: 80px;
    height: 80px;
}
