/**
 * XCoCar Widget V3 - CTA Button Styles
 * 
 * Blinkande CTA-knapp för förmånsbilsvärdering
 * @version 3.0.0
 */

/* Main CTA Button with Pulse Animation */
.xcocar-widget-cta {
    display: inline-block;
    background: linear-gradient(45deg, #778E8C, #6B7E7A);
    color: white;
    border: none;
    border-radius: 0;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(119, 142, 140, 0.4);
    font-family: 'Quicksand', Arial, sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Shimmer Animation - Blinking Effect (sweeps across button) */
@keyframes xcocar-pulse {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Shimmer Effect - Always Running */
.xcocar-widget-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: xcocar-pulse 2s infinite;
    transition: animation 0.3s ease;
}

.xcocar-widget-cta:hover::before {
    animation: none; /* Stop shimmer on hover */
}

/* Hover State */
.xcocar-widget-cta:hover {
    background: linear-gradient(45deg, #6B7E7A, #5A6C66);
    box-shadow: 0 6px 20px rgba(119, 142, 140, 0.6);
    transform: translateY(-2px);
}

/* Active/Click State */
.xcocar-widget-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(119, 142, 140, 0.4);
}

/* Focus State (Accessibility) */
.xcocar-widget-cta:focus {
    outline: 2px solid #778E8C;
    outline-offset: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .xcocar-widget-cta {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }
}

/* Alternative: Glow Variant */
.xcocar-widget-cta-glow {
    display: inline-block;
    background: linear-gradient(45deg, #778E8C, #6B7E7A);
    color: white;
    border: none;
    border-radius: 0;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', Arial, sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: xcocar-glow 2s ease-in-out infinite;
}

/* Glow Animation - Alternative Blinking */
@keyframes xcocar-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(119, 142, 140, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(119, 142, 140, 1), 0 0 20px rgba(119, 142, 140, 0.6);
    }
}

.xcocar-widget-cta-glow:hover {
    background: linear-gradient(45deg, #6B7E7A, #5A6C66);
    transform: translateY(-2px);
    animation: none;
}

/* Disabled State */
.xcocar-widget-cta:disabled,
.xcocar-widget-cta-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}
