/* ============================================
   LUCIX CTA BUTTON SYSTEM
   Standardized button styles matching brand guidelines
   ============================================ */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    outline: none;
}

/* Primary CTA Button - Lucix Indigo Solid */
.btn-primary,
.btn-cta-primary {
    background: #5558F0;
    color: #FFFFFF;
    border: 2px solid #5558F0;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(85, 88, 240, 0.15);
}

.btn-primary:hover,
.btn-cta-primary:hover {
    background: #4447d9;
    border-color: #4447d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 88, 240, 0.25);
}

.btn-primary:active,
.btn-cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(85, 88, 240, 0.2);
}

/* Secondary CTA Button - White/Light Outlined */
.btn-secondary,
.btn-cta-secondary {
    background: #FFFFFF;
    color: #5558F0;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover,
.btn-cta-secondary:hover {
    background: #F9FAFB;
    border-color: #5558F0;
    color: #4447d9;
    box-shadow: 0 2px 6px rgba(85, 88, 240, 0.1);
}

.btn-secondary:active,
.btn-cta-secondary:active {
    background: #F3F4F6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Secondary Button on Dark Background */
.section-dark .btn-secondary,
.section-dark .btn-cta-secondary,
.hero .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.section-dark .btn-secondary:hover,
.section-dark .btn-cta-secondary:hover,
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Large Button Variant */
.btn-large,
.btn-primary-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 10px;
}

/* CTA Button Container */
.cta-buttons,
.hero-cta,
.action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Navigation Button (Small) */
.btn-primary-nav {
    background: #5558F0;
    color: #FFFFFF !important;
    border: 2px solid #5558F0;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary-nav:hover {
    background: #4447d9;
    border-color: #4447d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(85, 88, 240, 0.2);
    color: #FFFFFF !important;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Ghost Button Variant */
.btn-ghost {
    background: transparent;
    color: #5558F0;
    border: 2px solid transparent;
    padding: 12px 24px;
    font-size: 15px;
}

.btn-ghost:hover {
    background: rgba(85, 88, 240, 0.05);
    border-color: rgba(85, 88, 240, 0.2);
}

/* Link Button (Text Only) */
.btn-link {
    background: none;
    border: none;
    color: #5558F0;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: #4447d9;
    text-decoration: underline;
}

.btn-link i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Icon Buttons */
.btn i {
    font-size: 0.9em;
}

.btn i:first-child {
    margin-right: 4px;
}

.btn i:last-child {
    margin-left: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-buttons,
    .hero-cta,
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-large,
    .btn-primary-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-primary-nav {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* Focus States for Accessibility */
.btn:focus-visible {
    outline: 2px solid #5558F0;
    outline-offset: 2px;
}

.btn-secondary:focus-visible {
    outline-color: #5558F0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-cta-primary {
        border: 3px solid #FFFFFF;
    }
    
    .btn-secondary,
    .btn-cta-secondary {
        border: 3px solid #5558F0;
    }
}
