/**
 * Portal Buttons - Consistent Blue Theme
 * 
 * @package RivaClientPortal
 * @version 1.0.1
 */

/* Primary Action Buttons - Mavi buton, kırmızı hover */
.rcp-btn-primary,
.rcp-btn-submit,
button[type="submit"],
input[type="submit"],
.rcp-create-request-btn,
.rcp-submit-btn,
.rcp-btn--primary {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.rcp-btn-primary:hover,
.rcp-btn-submit:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.rcp-create-request-btn:hover,
.rcp-submit-btn:hover,
.rcp-btn--primary:hover {
    background: linear-gradient(135deg, #FF3B30 0%, #C7001E 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4) !important;
    color: #ffffff !important;
}

.rcp-btn-primary:active,
.rcp-btn-submit:active,
button[type="submit"]:active,
input[type="submit"]:active,
.rcp-create-request-btn:active,
.rcp-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3) !important;
}

/* Secondary Buttons */
.rcp-btn-secondary,
.rcp-btn-cancel,
.rcp-btn-ghost {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.rcp-btn-secondary:hover,
.rcp-btn-cancel:hover,
.rcp-btn-ghost:hover {
    background: rgba(10, 132, 255, 0.15) !important;
    border-color: rgba(10, 132, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Danger Buttons */
.rcp-btn-danger,
.rcp-btn-delete {
    background: linear-gradient(135deg, #ff3b30, #ff6b6b) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.rcp-btn-danger:hover,
.rcp-btn-delete:hover {
    background: linear-gradient(135deg, #ff2d55, #ff5252) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3) !important;
}

/* Small Buttons */
.rcp-btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* Large Buttons */
.rcp-btn-lg {
    padding: 16px 40px !important;
    font-size: 16px !important;
}

/* Icon Buttons */
.rcp-btn-icon {
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

/* Disabled State */
.rcp-btn-primary:disabled,
.rcp-btn-submit:disabled,
button[type="submit"]:disabled,
input[type="submit"]:disabled,
.rcp-create-request-btn:disabled,
.rcp-submit-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading State */
.rcp-btn-loading {
    position: relative !important;
    color: transparent !important;
}

.rcp-btn-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid #ffffff !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Submit Buttons */
form .rcp-btn-primary,
form button[type="submit"],
form input[type="submit"] {
    width: 100% !important;
    margin-top: 20px !important;
}

/* Card Action Buttons */
.rcp-card .rcp-btn-primary,
.rcp-card button[type="submit"] {
    margin-top: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .rcp-btn-primary,
    .rcp-btn-submit,
    button[type="submit"],
    input[type="submit"] {
        width: 100% !important;
        padding: 14px 24px !important;
    }
}

/* Override any existing button styles */
a[class*="btn"],
button[class*="btn"],
input[class*="btn"] {
    text-decoration: none !important;
}

/* Specific overrides for common button classes */
.wp-block-button__link,
.wp-element-button,
.button,
.btn {
    background: linear-gradient(135deg, #0a84ff, #5e5ce6) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
.btn:hover {
    background: linear-gradient(135deg, #007aff, #4c4cff) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}
