/**
 * Styles for the Metal Rouge Button Widget
 */

.metal-rouge-button-wrapper {
    display: inline-flex;
}

.elementor-align-justify .metal-rouge-button-wrapper {
    display: flex;
    width: 100%;
}

.metal-rouge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    background-color: #dc2626;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.metal-rouge-button:hover,
.metal-rouge-button:focus {
    color: #fff;
    background-color: #b91c1c;
    text-decoration: none;
    outline: none;
}

.metal-rouge-button:active {
    transform: translateY(1px);
}

.metal-rouge-button .mr-button-text {
    display: inline-block;
    vertical-align: middle;
}

.metal-rouge-button .mr-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.metal-rouge-button .mr-button-icon i,
.metal-rouge-button .mr-button-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
    color: inherit;
    fill: currentColor;
}

/* Smooth scroll indicator */
.metal-rouge-button.scrolling {
    pointer-events: none;
}

.metal-rouge-button.scrolling::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: button-scroll-shimmer 1s ease-in-out;
}

@keyframes button-scroll-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Button types */
.metal-rouge-button-info {
    background-color: #3498db;
}
.metal-rouge-button-info:hover {
    background-color: #2980b9;
}

.metal-rouge-button-success {
    background-color: #2ecc71;
}
.metal-rouge-button-success:hover {
    background-color: #27ae60;
}

.metal-rouge-button-warning {
    background-color: #f39c12;
}
.metal-rouge-button-warning:hover {
    background-color: #e67e22;
}

.metal-rouge-button-danger {
    background-color: #e74c3c;
}
.metal-rouge-button-danger:hover {
    background-color: #c0392b;
}

/* Alignment */
.elementor-align-justify .metal-rouge-button {
    width: 100%;
}

.elementor-align-left .metal-rouge-button-wrapper {
    text-align: left;
}

.elementor-align-right .metal-rouge-button-wrapper {
    text-align: right;
}

.elementor-align-center .metal-rouge-button-wrapper {
    text-align: center;
}

/* Responsive alignments */
@media (max-width: 767px) {
    .elementor-mobile-align-justify .metal-rouge-button-wrapper {
        display: flex;
        width: 100%;
    }
    
    .elementor-mobile-align-justify .metal-rouge-button {
        width: 100%;
    }
    
    .elementor-mobile-align-left .metal-rouge-button-wrapper {
        text-align: left;
    }
    
    .elementor-mobile-align-right .metal-rouge-button-wrapper {
        text-align: right;
    }
    
    .elementor-mobile-align-center .metal-rouge-button-wrapper {
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-tablet-align-justify .metal-rouge-button-wrapper {
        display: flex;
        width: 100%;
    }
    
    .elementor-tablet-align-justify .metal-rouge-button {
        width: 100%;
    }
    
    .elementor-tablet-align-left .metal-rouge-button-wrapper {
        text-align: left;
    }
    
    .elementor-tablet-align-right .metal-rouge-button-wrapper {
        text-align: right;
    }
    
    .elementor-tablet-align-center .metal-rouge-button-wrapper {
        text-align: center;
    }
}

/* Icon spacing */
.metal-rouge-button .mr-button-icon-left {
    margin-right: 8px;
}

.metal-rouge-button .mr-button-icon-right {
    margin-left: 8px;
}

/* Animation support */
.elementor-animation-grow {
    transition-duration: 0.3s;
    transition-property: transform;
}

.elementor-animation-grow:hover {
    transform: scale(1.1);
}

.elementor-animation-shrink {
    transition-duration: 0.3s;
    transition-property: transform;
}

.elementor-animation-shrink:hover {
    transform: scale(0.9);
}

.elementor-animation-pulse {
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.elementor-animation-pulse:hover {
    animation-name: elementor-animation-pulse;
}

@keyframes elementor-animation-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading state for smooth scroll */
.metal-rouge-button.scrolling {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Focus states for accessibility */
.metal-rouge-button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .metal-rouge-button {
        border: 2px solid;
    }
    
    .metal-rouge-button:focus {
        outline: 3px solid;
        outline-offset: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .metal-rouge-button,
    .metal-rouge-button::after {
        transition: none !important;
        animation: none !important;
    }
}