/* ===== BUTTON COMPONENTS STYLES ===== */
/* File: /css/components/buttons.css */
/* Purpose: Reusable button styles for entire website */
/* Dependencies: CSS variables from config */
/* Last Updated: [CURRENT_DATE] */

/* ===== BASE BUTTON STYLES START ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semi-bold);
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--nsb-accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
/* ===== BASE BUTTON STYLES END ===== */

/* ===== PRIMARY BUTTON STYLES START ===== */
.btn-primary {
    background-color: var(--nsb-accent);
    color: var(--nsb-white);
    box-shadow: 0 2px 8px rgba(252, 163, 17, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: #e59400;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(252, 163, 17, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(252, 163, 17, 0.3);
}
/* ===== PRIMARY BUTTON STYLES END ===== */

/* ===== SECONDARY BUTTON STYLES START ===== */
.btn-secondary {
    background-color: transparent;
    color: var(--nsb-primary);
    border: 2px solid var(--nsb-primary);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--nsb-primary);
    color: var(--nsb-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(20, 33, 61, 0.2);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(20, 33, 61, 0.1);
}
/* ===== SECONDARY BUTTON STYLES END ===== */

/* ===== OUTLINE BUTTON STYLES START ===== */
.btn-outline {
    background-color: transparent;
    color: var(--nsb-white);
    border: 2px solid var(--nsb-white);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--nsb-white);
    color: var(--nsb-primary);
    transform: translateY(-2px);
}

.btn-outline:active:not(:disabled) {
    transform: translateY(0);
}
/* ===== OUTLINE BUTTON STYLES END ===== */

/* ===== BUTTON SIZES START ===== */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}
/* ===== BUTTON SIZES END ===== */

/* ===== BUTTON VARIANTS START ===== */
.btn-full {
    width: 100%;
}

.btn-with-icon {
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.75rem;
    width: 3rem;
    height: 3rem;
}

.btn-icon .icon {
    font-size: 1.25rem;
}
/* ===== BUTTON VARIANTS END ===== */

/* ===== RESPONSIVE BUTTONS START ===== */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .btn-full-mobile {
        width: 100%;
    }
}
/* ===== RESPONSIVE BUTTONS END ===== */

/* ===== BUTTON ANIMATIONS START ===== */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(252, 163, 17, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252, 163, 17, 0);
    }
}

.btn-pulse {
    animation: buttonPulse 2s infinite;
}

.btn-loading {
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== BUTTON ANIMATIONS END ===== */

/* End of buttons.css */