/**
 * CloudGO CTA Buttons Widget Styles
 * File: cloudgo-cta-buttons.css
 */

.cloudgo-cta-buttons {
    padding: 20px 0;
    background: transparent;
    position: relative;
}

.cloudgo-cta-buttons .buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cloudgo-cta-buttons .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cloudgo-cta-buttons .cta-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cloudgo-cta-buttons .cta-button:active {
    transform: translateY(0);
}

.cloudgo-cta-buttons .cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Button Icons */
.cloudgo-cta-buttons .cta-button i {
    margin-right: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.cloudgo-cta-buttons .cta-button svg {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Button Text */
.cloudgo-cta-buttons .button-text {
    position: relative;
    z-index: 2;
}

/* Button Sizes */
.cloudgo-cta-buttons .cta-button.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 120px;
}

.cloudgo-cta-buttons .cta-button.btn-small i,
.cloudgo-cta-buttons .cta-button.btn-small svg {
    width: 10px;
    height: 10px;
    font-size: 10px;
    margin-right: 6px;
}

.cloudgo-cta-buttons .cta-button.btn-medium {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 150px;
}

.cloudgo-cta-buttons .cta-button.btn-medium i,
.cloudgo-cta-buttons .cta-button.btn-medium svg {
    width: 14px;
    height: 14px;
    font-size: 12px;
    margin-right: 8px;
}

.cloudgo-cta-buttons .cta-button.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 180px;
}

.cloudgo-cta-buttons .cta-button.btn-large i,
.cloudgo-cta-buttons .cta-button.btn-large svg {
    width: 16px;
    height: 16px;
    font-size: 14px;
    margin-right: 10px;
}

/* Primary Button - Red (default from image) */
.cloudgo-cta-buttons .cta-button.btn-primary {
    background: #FF4444;
    color: #fff;
    border-color: #FF4444;
}

.cloudgo-cta-buttons .cta-button.btn-primary:hover {
    background-color: transparent;
    color: #FF3200;
    background-image: linear-gradient(180deg, #FCFCFC 0%, #F9F9F9 100%);
    border-color: #FF3200;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.cloudgo-cta-buttons .cta-button.btn-primary:focus {
    background-color: transparent;
    color: #FF3200;
    background-image: linear-gradient(180deg, #FCFCFC 0%, #F9F9F9 100%);
    border-color: #FF3200;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/* Secondary Button - Blue (default from image) */
.cloudgo-cta-buttons .cta-button.btn-secondary {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

.cloudgo-cta-buttons .cta-button.btn-secondary:hover {
    background-color: transparent;
    color: #007BFF;
    background-image: linear-gradient(180deg, #FCFCFC 0%, #F9F9F9 100%);
    border-color: #007BFF;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.cloudgo-cta-buttons .cta-button.btn-secondary:focus {
    background-color: transparent;
    color: #007BFF;
    background-image: linear-gradient(180deg, #FCFCFC 0%, #F9F9F9 100%);
    border-color: #007BFF;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/* Success Button - Green */
.cloudgo-cta-buttons .cta-button.btn-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.cloudgo-cta-buttons .cta-button.btn-success:hover {
    background: #218838;
    border-color: #218838;
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.cloudgo-cta-buttons .cta-button.btn-success:focus {
    background: #218838;
    border-color: #218838;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

/* Warning Button - Orange */
.cloudgo-cta-buttons .cta-button.btn-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.cloudgo-cta-buttons .cta-button.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.cloudgo-cta-buttons .cta-button.btn-warning:focus {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

/* Info Button - Light Blue */
.cloudgo-cta-buttons .cta-button.btn-info {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.cloudgo-cta-buttons .cta-button.btn-info:hover {
    background: #138496;
    border-color: #138496;
    color: #fff;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.cloudgo-cta-buttons .cta-button.btn-info:focus {
    background: #138496;
    border-color: #138496;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25);
}

/* Dark Button - Black */
.cloudgo-cta-buttons .cta-button.btn-dark {
    background: #343a40;
    color: #fff;
    border-color: #343a40;
}

.cloudgo-cta-buttons .cta-button.btn-dark:hover {
    background: #23272b;
    border-color: #23272b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.4);
}

.cloudgo-cta-buttons .cta-button.btn-dark:focus {
    background: #23272b;
    border-color: #23272b;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.25);
}

/* Outline Buttons */
.cloudgo-cta-buttons .cta-button.btn-outline-primary {
    background: transparent;
    color: #FF4444;
    border-color: #FF4444;
}

.cloudgo-cta-buttons .cta-button.btn-outline-primary:hover {
    background: #FF4444;
    color: #fff;
    border-color: #FF4444;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.cloudgo-cta-buttons .cta-button.btn-outline-secondary {
    background: transparent;
    color: #4A90E2;
    border-color: #4A90E2;
}

.cloudgo-cta-buttons .cta-button.btn-outline-secondary:hover {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* Custom Button Styles */
.cloudgo-cta-buttons .cta-button.btn-custom {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.cloudgo-cta-buttons .cta-button.btn-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Ripple Effect */
.cloudgo-cta-buttons .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 1;
}

.cloudgo-cta-buttons .cta-button:hover::before {
    width: 120%;
    height: 120%;
}

/* Loading State */
.cloudgo-cta-buttons .cta-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cloudgo-cta-buttons .cta-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cloudgo-cta-buttons.mobile-stack .buttons-container {
        flex-direction: column;
        gap: 12px;
    }

    .cloudgo-cta-buttons .cta-button {
        min-width: 200px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .cloudgo-cta-buttons .cta-button.btn-small {
        min-width: 160px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cloudgo-cta-buttons .cta-button.btn-large {
        min-width: 220px;
        padding: 18px 36px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .cloudgo-cta-buttons .cta-button {
        min-width: 180px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .cloudgo-cta-buttons .cta-button i,
    .cloudgo-cta-buttons .cta-button svg {
        margin-right: 6px;
        width: 12px;
        height: 12px;
        font-size: 11px;
    }
    
    .cloudgo-cta-buttons .cta-button.btn-small {
        min-width: 150px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .cloudgo-cta-buttons .cta-button.btn-large {
        min-width: 200px;
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cloudgo-cta-buttons .cta-button {
        border-width: 3px;
    }
    
    .cloudgo-cta-buttons .cta-button:focus {
        outline: 3px solid #000;
        outline-offset: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cloudgo-cta-buttons .cta-button {
        transition: none;
    }
    
    .cloudgo-cta-buttons .cta-button:hover {
        transform: none;
    }
    
    .cloudgo-cta-buttons .cta-button::before {
        display: none;
    }
    
    .cloudgo-cta-buttons .cta-button.loading::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .cloudgo-cta-buttons .cta-button {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .cloudgo-cta-buttons .cta-button::before {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .cloudgo-cta-buttons .cta-button i,
[dir="rtl"] .cloudgo-cta-buttons .cta-button svg {
    margin-left: 8px;
    margin-right: 0;
}

/* Elementor Editor Preview */
.elementor-editor-active .cloudgo-cta-buttons {
    position: relative;
}

.elementor-widget-cloudgo-cta-buttons .cloudgo-cta-buttons {
    margin: 0;
}

/* Focus Visible Support */
.cloudgo-cta-buttons .cta-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
