/* UTM Button Styles */
.utm-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.utm-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.utm-button:active {
    transform: translateY(0);
}

/* Button size variations */
.utm-button.utm-size-small {
    padding: 8px 16px;
    font-size: 14px;
}

.utm-button.utm-size-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.utm-button.utm-size-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Button style variations */
.utm-button.utm-style-filled {
    background-color: #007cba;
    color: #ffffff;
    border-color: #007cba;
}

.utm-button.utm-style-filled:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.utm-button.utm-style-outline {
    background-color: transparent;
    color: #007cba;
    border-color: #007cba;
}

.utm-button.utm-style-outline:hover {
    background-color: #007cba;
    color: #ffffff;
}

.utm-button.utm-style-ghost {
    background-color: transparent;
    color: #007cba;
    border-color: transparent;
}

.utm-button.utm-style-ghost:hover {
    background-color: rgba(0, 124, 186, 0.1);
    border-color: transparent;
}

/* Animation effects */
.utm-button[data-animation="grow"]:hover {
    transform: scale(1.05);
}

.utm-button[data-animation="shrink"]:hover {
    transform: scale(0.95);
}

.utm-button[data-animation="pulse"]:hover {
    animation: utm-pulse 0.6s ease-in-out;
}

.utm-button[data-animation="bounce"]:hover {
    animation: utm-bounce 0.6s ease-in-out;
}

.utm-button[data-animation="shake"]:hover {
    animation: utm-shake 0.6s ease-in-out;
}

/* Keyframe animations */
@keyframes utm-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes utm-bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-8px,0); }
    70% { transform: translate3d(0,-4px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

@keyframes utm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .utm-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .utm-button.utm-size-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Error state */
.utm-button-error {
    color: #dc3232;
    background-color: #f8f8f8;
    border: 1px solid #dc3232;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin: 10px 0;
}

/* Preview info in editor */
.utm-preview-info {
    background-color: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Loading state */
.utm-button.utm-loading {
    position: relative;
    pointer-events: none;
}

.utm-button.utm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: utm-spin 1s linear infinite;
}

@keyframes utm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
