/* ============================================
   BUTTON ATOM - Base Button Component
   ============================================ */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn:focus {
    outline: 2px solid #7D4096;
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

/* Button Text */
.btn__text {
    display: inline-block;
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */

/* Primary Variant (White background, Purple text) */
.btn--primary {
    background: white;
    color: #7D4096;
}

.btn--primary:hover:not(.btn--disabled) {
    background: #7D4096;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(125, 64, 150, 0.4);
}

/* Icon color change on hover for primary buttons */
.btn--primary:hover:not(.btn--disabled) .icon {
    color: white;
    fill: white;
}

/* Secondary Variant (Purple background, White text) */
.btn--secondary {
    background: #7D4096 !important; /* Solid purple, no gradient */
    color: white !important; /* Ensure white text */
    background-image: none !important; /* Remove any gradient */
}

.btn--secondary:hover:not(.btn--disabled) {
    background: white !important;
    color: #7D4096 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 64, 150, 0.4);
    background-image: none !important; /* Remove any gradient on hover */
}

/* Icon color change on hover for secondary buttons */
.btn--secondary:hover:not(.btn--disabled) .icon {
    color: #7D4096;
    fill: #7D4096;
}

/* Outline Variant */
.btn--outline {
    background: transparent;
    color: #7D4096;
    border: 2px solid #7D4096;
    box-shadow: none;
}

.btn--outline:hover:not(.btn--disabled) {
    background: #7D4096;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(125, 64, 150, 0.3);
}

/* Ghost Variant */
.btn--ghost {
    background: transparent;
    color: #7D4096;
    box-shadow: none;
}

.btn--ghost:hover:not(.btn--disabled) {
    background: rgba(125, 64, 150, 0.1);
    transform: translateY(-2px);
}


/* ============================================
   BUTTON SIZES
   ============================================ */

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 12px;
    gap: 8px;
}

.btn--medium {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 15px;
    gap: 12px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 18px;
    gap: 15px;
}

/* ============================================
   BUTTON STATES
   ============================================ */

.btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn--full-width {
    width: 100%;
    display: flex;
}

/* ============================================
   BUTTON WITH ICON
   ============================================ */

.btn--icon {
    /* Icon spacing is handled by gap property */
}

.btn--icon-left .icon {
    order: -1;
}

.btn--icon-right .icon {
    order: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn--large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

