/* ==========================================================================
   Button Styles - Enhanced with Gradient Accent Button
   ========================================================================== */

/* Base Button Styles */
.btn {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: var(--fw-medium, 500);
    transition: all var(--transition-base, 0.2s ease-in-out);
    line-height: 1.4;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
}

/* Mobile-first approach - smaller buttons on mobile */
@media (max-width: 767px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Larger screens get slightly bigger buttons */
@media (min-width: 768px) {
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary, #34509c) 0%, #2c447f 100%);
    border-color: var(--bs-primary, #34509c);
    color: #fff;
    font-weight: var(--fw-medium, 500);
    box-shadow: 0 3px 10px rgba(52, 80, 156, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c447f 0%, #243967 100%);
    border-color: #284073;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 80, 156, 0.3);
}

.btn-primary:active {
    background: linear-gradient(135deg, #243967 0%, #203360 100%);
    border-color: #203360;
    transform: translateY(0);
}

/* Accent Button - Primary CTA with Enhanced Prominence */
.btn-accent {
    background: linear-gradient(135deg, var(--bs-accent, #ea1f63) 0%, #d41b59 100%);
    border-color: var(--bs-accent, #ea1f63);
    color: #fff;
    font-weight: var(--fw-semibold, 600);
    box-shadow: 0 4px 15px rgba(234, 31, 99, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d41b59 0%, #c81953 100%);
    border-color: #c81953;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(234, 31, 99, 0.4);
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:active {
    background: linear-gradient(135deg, #c81953 0%, #bc184e 100%);
    border-color: #bc184e;
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 10px rgba(234, 31, 99, 0.3);
}

/* Large Accent Button - Extra prominent for hero sections */
.btn-accent.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: var(--fw-bold, 700);
    box-shadow: 0 5px 20px rgba(234, 31, 99, 0.35);
}

@media (max-width: 767px) {
    .btn-accent.btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--bs-secondary, #6c757d);
    border-color: var(--bs-secondary, #6c757d);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    background-color: #545b62;
    border-color: #4e555b;
    transform: translateY(0);
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    border-color: var(--bs-primary, #34509c);
    color: var(--bs-primary, #34509c);
    font-weight: var(--fw-medium, 500);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary, #34509c);
    border-color: var(--bs-primary, #34509c);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 80, 156, 0.2);
}

.btn-outline-accent {
    background-color: transparent;
    border-color: var(--bs-accent, #ea1f63);
    color: var(--bs-accent, #ea1f63);
    font-weight: var(--fw-medium, 500);
}

.btn-outline-accent:hover {
    background-color: var(--bs-accent, #ea1f63);
    border-color: var(--bs-accent, #ea1f63);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(234, 31, 99, 0.2);
}

/* White Button (for dark/gradient backgrounds) */
.btn-white {
    background-color: #fff;
    border-color: #fff;
    color: var(--bs-primary, #34509c);
    font-weight: var(--fw-semibold, 600);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--bs-primary, #34509c);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Large White Button for Hero CTAs on gradients */
.btn-white.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: var(--fw-bold, 700);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Outline White Button (for dark/gradient backgrounds) */
.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    backdrop-filter: blur(10px);
    font-weight: var(--fw-medium, 500);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #fff;
    color: var(--bs-primary, #34509c);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Sizes */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
    border-radius: 0.625rem;
}

@media (max-width: 767px) {
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* Button Icons */
.btn i,
.btn .bi {
    font-size: 1.2em;
    vertical-align: middle;
}

.btn i:first-child:not(:only-child),
.btn .bi:first-child:not(:only-child) {
    margin-right: 0.375rem;
}

.btn i:last-child:not(:only-child),
.btn .bi:last-child:not(:only-child) {
    margin-left: 0.375rem;
}

.btn i:only-child,
.btn .bi:only-child {
    margin: 0;
}

/* Icon sizes in large buttons */
.btn-lg i,
.btn-lg .bi {
    font-size: 1.25em;
}

/* Button States */
.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(52, 80, 156, 0.25);
}

.btn-accent:focus {
    box-shadow: 0 0 0 0.25rem rgba(234, 31, 99, 0.25);
}

.btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.btn:disabled::before,
.btn.disabled::before {
    display: none;
}

/* Button Link Style */
.btn-link {
    background: none;
    border: none;
    color: var(--bs-primary, #34509c);
    text-decoration: underline;
    padding: 0;
    font-weight: var(--fw-normal, 400);
    box-shadow: none;
}

.btn-link:hover {
    color: #2c447f;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group-vertical {
    flex-direction: column;
}

/* Button hierarchy in hero section */
.hero-section .btn-group,
.hero-section .d-flex.gap-3 {
    gap: 0.75rem !important;
}

/* First button in hero is typically the primary CTA */
.hero-section .btn:first-child {
    min-width: 160px;
}

@media (max-width: 767px) {
    .hero-section .btn:first-child {
        min-width: 140px;
    }
}

/* Utility Classes */
.btn-block {
    width: 100%;
}

.btn-rounded {
    border-radius: 50rem;
}

.btn-square {
    border-radius: 0;
}

/* Pill buttons (fully rounded) */
.btn.rounded-pill {
    border-radius: 50rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn-lg.rounded-pill {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Hover lift effect for all buttons */
@media (hover: hover) {
    .btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn::before {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
}