/**
 * Site Button Standards
 * Standardized button styles for all site pages
 */

/* Base Button Styles */
.btn-site {
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-site:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-site:active {
    transform: translateY(0);
}

.btn-site:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 0 3px rgba(0,0,0,0.1);
}

.btn-site i {
    margin-right: 8px;
}

/* Large Button Variant */
.btn-site.btn-lg {
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Small Button Variant */
.btn-site.btn-sm {
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Create/Add Buttons (Green) */
.btn-site-create {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

.btn-site-create:hover {
    background: linear-gradient(135deg, #00a085, #008f75);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
    color: white;
}

/* Generic/Enable Buttons (Purple) */
.btn-site-generic {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.btn-site-generic:hover {
    background: linear-gradient(135deg, #5a4fcf, #9178e6);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: white;
}

/* Back/Cancel Buttons (Light) */
.btn-site-back {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-site-back:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    box-shadow: 0 8px 25px rgba(73, 80, 87, 0.2);
    color: #495057;
}

/* Delete/Remove Buttons (Red) */
.btn-site-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-site-delete:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    color: white;
}

/* Edit/Update Buttons (Blue) */
.btn-site-edit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-site-edit:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Button Group Styles */
.btn-group-site {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-group-site.gap-1 {
    gap: 4px;
}

.btn-group-site.gap-2 {
    gap: 8px;
}

.btn-group-site.gap-3 {
    gap: 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-site {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-site.btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-site.btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .btn-group-site {
        flex-wrap: wrap;
    }
}

/* Loading State */
.btn-site.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-site.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Disabled State */
.btn-site:disabled,
.btn-site.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.btn-site:disabled:hover,
.btn-site.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Success Flash Animation */
.btn-site.success-flash {
    animation: successFlash 0.6s ease;
}

@keyframes successFlash {
    0% { background-position: 0% 50%; }
    50% { 
        background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
        transform: scale(1.05);
    }
    100% { background-position: 100% 50%; }
}

/* Icon Only Buttons */
.btn-site-icon {
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.btn-site-icon i {
    margin: 0;
    font-size: 1.2rem;
}

.btn-site-icon.btn-sm {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.btn-site-icon.btn-sm i {
    font-size: 1rem;
}

.btn-site-icon.btn-lg {
    padding: 16px;
    width: 56px;
    height: 56px;
}

.btn-site-icon.btn-lg i {
    font-size: 1.4rem;
}

/* Special Variants */
.btn-site-outline {
    background: transparent;
    border: 2px solid;
}

.btn-site-outline.btn-site-create {
    border-color: #00b894;
    color: #00b894;
}

.btn-site-outline.btn-site-create:hover {
    background: #00b894;
    color: white;
}

.btn-site-outline.btn-site-generic {
    border-color: #6c5ce7;
    color: #6c5ce7;
}

.btn-site-outline.btn-site-generic:hover {
    background: #6c5ce7;
    color: white;
}

.btn-site-outline.btn-site-edit {
    border-color: #3498db;
    color: #3498db;
}

.btn-site-outline.btn-site-edit:hover {
    background: #3498db;
    color: white;
}

.btn-site-outline.btn-site-delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-site-outline.btn-site-delete:hover {
    background: #e74c3c;
    color: white;
}