/* animations for TwitchDropsMiner website */

/* pulse animation for badges */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main title badge with pulse animation */
.main-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 15px;
    vertical-align: middle;
    animation: pulse 1.38s infinite ease-in-out;
    box-shadow: 0 4px 8px rgba(145, 70, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .main-badge {
        display: block;
        margin-top: 10px;
        margin-left: 0;
    }
}

/* floating animation for feature cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-card:hover {
    animation: float 1s infinite ease-in-out;
    transform: none;
}

/* button hover effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(0);
}