/* Panama Kosher Fest 2026 - Custom Styles */

/* CSS Custom Properties (Variables) */
:root {
    /* Primary Colors (Based on Panama Yeshiva Week) */
    --primary-color: #d80a7d;
    --secondary-color: #374151;
    --bg-light-blue: #F5F8FF;
    --bg-dark-blue: #061A60;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;

    /* Neutral Colors */
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --section-padding: 80px;

    /* Transitions */
    --transition-base: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

/* Hero Sections */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark-blue) 0%, var(--primary-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark-blue) 0%, var(--primary-color) 100%);
    position: relative;
    padding-top: 100px;
}

/* Event Highlights */
.event-highlights {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Scroll Indicator Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Cards */
.card {
    transition: var(--transition-base);
    border-radius: 10px;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Badges */
.badge-popular {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 10;
    background: var(--warning-yellow);
    color: var(--dark-gray);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-best-value {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 10;
    background: var(--success-green);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Gala Teaser Section */
.gala-teaser {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.gala-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--bg-dark-blue) 0%, var(--primary-color) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Pricing Cards */
.pricing {
    padding: 20px 0;
}

/* Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light-blue);
    border-radius: 50%;
}

/* Floating Info Bar */
.floating-info-bar {
    z-index: 1020;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Zone Image Placeholders */
.zone-image-placeholder,
.image-placeholder {
    background: var(--light-gray);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.zone-image-placeholder img,
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accordion Custom Styles */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b8086a;
    border-color: #b8086a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 10, 125, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Savings Badge Component */
.savings-badge {
    background: var(--success-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin: 5px 0;
}

/* Price Comparison Component */
.price-comparison {
    background: var(--bg-light-blue);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--success-green);
}

/* Trust Signals */
.trust-signals {
    font-size: 0.9rem;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animated {
    animation: countUp 0.5s ease-out;
}

/* Form Styles */
.form-control,
.form-select {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(216, 10, 125, 0.15);
}

/* Alert Customization */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 80px;
    }

    .navbar-collapse {
        background: rgba(0,0,0,0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .badge-popular,
    .badge-best-value {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 40px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 70vh;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b8086a 100%);
}

.text-primary-custom {
    color: var(--primary-color);
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-custom {
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Package Builder Styles */
.package-step {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.package-step.active {
    border: 2px solid var(--primary-color);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hotel/Flight Selection Cards */
.selection-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition-base);
    cursor: pointer;
}

.selection-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(216, 10, 125, 0.15);
}

.selection-card.selected {
    border-color: var(--primary-color);
    background: rgba(216, 10, 125, 0.05);
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    display: none;
}

.exit-popup.show {
    display: block;
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
}

.popup-overlay.show {
    display: block;
}

/* Checkout Progress Bar */
.checkout-progress {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 80px;
    z-index: 100;
}

/* Savings Breakdown */
.savings-breakdown {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--success-green);
}

.savings-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.savings-item:last-child {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--success-green);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Warning/Confirmation Modals */
.warning-modal {
    background: #fff3cd;
    border: 2px solid var(--warning-yellow);
    padding: 30px;
    border-radius: 10px;
}

/* Mobile Optimization */
@media (max-width: 575.98px) {
    .package-step {
        padding: 20px;
    }

    .step-indicator {
        flex-direction: column;
        gap: 15px;
    }

    .step-indicator::before {
        display: none;
    }

    .exit-popup {
        padding: 25px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .floating-info-bar,
    .btn,
    .exit-popup,
    .popup-overlay {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
