/**
 * Casino Blocks Ultimate - Unified Button Styles
 * Version: 4.2.0
 */

/* Base Button */
.cbu-btn {
    display: inline-block;
    background: #ff9500;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.cbu-btn:hover {
    background: #e68600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.cbu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.2);
}

/* Button Sizes */
.cbu-btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

.cbu-btn-medium {
    padding: 12px 24px;
    font-size: 15px;
}

.cbu-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Button Variants */
.cbu-btn-primary {
    background: #ff9500;
    color: #ffffff;
}

.cbu-btn-primary:hover {
    background: #e68600;
}

.cbu-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cbu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cbu-btn-dark {
    background: #2c3445;
    color: #ffffff;
}

.cbu-btn-dark:hover {
    background: #3d4758;
}

.cbu-btn-success {
    background: #10b981;
    color: #ffffff;
}

.cbu-btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cbu-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.cbu-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Button Widths */
.cbu-btn-block {
    display: block;
    width: 100%;
}

.cbu-btn-auto {
    width: auto;
}

/* Button Shapes */
.cbu-btn-square {
    border-radius: 4px;
}

.cbu-btn-rounded {
    border-radius: 8px;
}

.cbu-btn-pill {
    border-radius: 50px;
}

/* Button States */
.cbu-btn:disabled,
.cbu-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.cbu-btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.cbu-btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: cbu-spin 0.6s linear infinite;
}

@keyframes cbu-spin {
    to { transform: rotate(360deg); }
}

/* Button Groups */
.cbu-btn-group {
    display: inline-flex;
    gap: 8px;
}

.cbu-btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbu-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cbu-btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .cbu-btn-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .cbu-btn-group .cbu-btn {
        width: 100%;
    }
}

/* Icon Buttons */
.cbu-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cbu-btn-icon-only {
    padding: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.cbu-btn-no-transform {
    text-transform: none;
}

.cbu-btn-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cbu-btn-outline {
    background: transparent;
    border: 2px solid #ff9500;
    color: #ff9500;
}

.cbu-btn-outline:hover {
    background: #ff9500;
    color: #ffffff;
}
