/* ==================================================
   🎯 PROPOKIT BUTTON STYLES - CONSOLIDATED
   ==================================================
   
   This file contains ALL button-related styles used throughout the application.
   All other CSS files should reference these styles instead of defining their own.
   
   ORGANIZATION:
   - Base Button Styles
   - Button Variants (Primary, Secondary, etc.)
   - Button Sizes
   - Button States (Hover, Active, Disabled)
   - Modal-specific Button Styles
   - Responsive Button Styles
   ================================================== */

/* ==================================================
   🎯 BASE BUTTON STYLES
   ================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(0);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    line-height: 1.4;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    font-family: var(--text-font, 'Poppins', sans-serif);
    letter-spacing: 0.5px;
}

/* ==================================================
   🎯 BUTTON HOVER EFFECTS
   ================================================== */

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color, #ffc300);
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.9;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--primary-color, #ffc300);
    color: var(--text-light, #FFFFFF);
    transform: translateY(-2px);
}

/* ==================================================
   🎯 BUTTON ACTIVE STATE
   ================================================== */

.btn:active {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
    transform: translateY(0);
}

/* ==================================================
   🎯 BUTTON FOCUS STATES
   ================================================== */

.btn:focus-visible {
    outline: 3px solid var(--primary-color, #ffc300);
    outline-offset: 4px;
    border-radius: 8px;
}

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

.btn-primary {
    background-color: var(--primary-color, #ffc300);
    color: var(--text-dark, #1A202C);
}

.btn-primary:hover {
    background-color: var(--primary-hover, #ffd644);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark, #1A202C);
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

.btn-dark { 
    background: var(--dark-bg, #1A202C); 
    color: var(--text-light, #E2E8F0); 
    border-color: var(--dark-bg, #1A202C);
}

.btn-dark:hover { 
    color: var(--text-dark, #1A202C);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 191, 35, 0.3);
}

.btn-light { 
    background: var(--light-bg, #FFFFFF); 
    color: var(--dark-bg, #1A202C); 
    border-color: var(--dark-bg, #1A202C);
}

.btn-light:hover { 
    color: var(--text-light, #E2E8F0);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 191, 35, 0.3);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ==================================================
   🎯 BUTTON LOADING STATE
   ================================================== */

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

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================================================
   🎯 MODAL-SPECIFIC BUTTON STYLES
   ================================================== */

.modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

.modal-footer .btn:first-child {
    margin-left: 0;
}

/* Company Modal Footer Buttons */
.company-modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

.company-modal-footer .btn:first-child {
    margin-left: 0;
}

/* Edit Footer Modal Buttons */
#editFooterModal .modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

#editFooterModal .modal-footer .btn:first-child {
    margin-left: 0;
}

/* Edit Text Modal Buttons */
#editTextModal .modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

#editTextModal .modal-footer .btn:first-child {
    margin-left: 0;
}

/* Step Navigation Buttons */
.step-navigation .btn {
    margin: 0 5px;
    min-width: 80px;
}

/* Combined Image Modal Buttons */
#combinedImageModal .modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

#combinedImageModal .modal-footer .btn:first-child {
    margin-left: 0;
}

/* Company Intro Crop Modal Buttons */
#companyIntroCropModal .modal-footer .btn {
    margin-left: 10px;
    min-width: 100px;
}

#companyIntroCropModal .modal-footer .btn:first-child {
    margin-left: 0;
}

/* ==================================================
   🎯 PRICING CARD BUTTONS
   ================================================== */

.pricing-card .btn {
    width: 100%;
    margin-top: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================================================
   🎯 RESPONSIVE BUTTON STYLES
   ================================================== */

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .modal-footer .btn,
    .company-modal-footer .btn,
    #editFooterModal .modal-footer .btn,
    #editTextModal .modal-footer .btn,
    #combinedImageModal .modal-footer .btn,
    #companyIntroCropModal .modal-footer .btn {
        margin: 5px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .modal-footer .btn,
    .company-modal-footer .btn,
    #editFooterModal .modal-footer .btn,
    #editTextModal .modal-footer .btn,
    #combinedImageModal .modal-footer .btn,
    #companyIntroCropModal .modal-footer .btn {
        margin: 3px;
        min-width: 70px;
    }
}

/* ==================================================
   🎯 ANIMATIONS
   ================================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
