@import url('../styles/lab-shared.css');

/* ============================================
   ANIMATED GRADIENT BUTTON - GPU Verification
   ============================================ */

.gpu-stress-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4),
        0 0 0 0 rgba(0, 122, 255, 0.6);
    animation: pulseGlow 2s ease-in-out infinite;
    overflow: hidden;
    width: 100%;
    margin: 1rem 0;
}

/* Shimmering shine effect */
.gpu-stress-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.gpu-stress-btn:hover::before {
    left: 100%;
}

/* Hover state */
.gpu-stress-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 122, 255, 0.6),
        0 0 0 8px rgba(0, 122, 255, 0.2);
}

.gpu-stress-btn:active {
    transform: translateY(0) scale(1);
}

/* Pulsing glow animation */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 122, 255, 0.4),
            0 0 0 0 rgba(0, 122, 255, 0.6);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 122, 255, 0.6),
            0 0 0 12px rgba(0, 122, 255, 0);
    }
}

/* Icon rotation animation */
.gpu-stress-btn svg {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Active/Running state (red gradient) */
.gpu-stress-btn.active {
    background: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
    animation: none;
}

.gpu-stress-btn.active:hover {
    box-shadow: 0 12px 48px rgba(255, 59, 48, 0.6),
        0 0 0 8px rgba(255, 59, 48, 0.2);
}

.gpu-stress-btn.active svg {
    animation: rotate 1s linear infinite;
}

/* GPU specific overrides */