/* Bundles Purchase Page - Professional Design */

/* Fix body-container overflow on mobile */
@media screen and (max-width: 768px) {
    .body-container {
        padding: 0 !important;
        align-items: flex-start !important;
    }
}

.bundles-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bundles-header {
    text-align: center;
    margin-bottom: 56px;
}

.page-title {
    color: var(--color-6);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.bundles-container-wrapper {
    position: relative;
}

.bundles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Bundle Card */
.bundle-card {
    background-color: var(--color-6-dark);
    border-radius: 20px;
    padding: 48px 28px 40px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(217, 145, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}


.bundle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.bundle-card.popular {
    border-color: var(--color-2);
    background-color: var(--color-6-dark);
}

.bundle-card.popular:hover {
    border-color: var(--color-2);
    box-shadow: 0 8px 40px rgba(255, 217, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-2);
    color: black;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 217, 0, 0.4);
    z-index: 2;
    transition: none;
    white-space: nowrap;
}

.bundle-header {
    margin-bottom: 28px;
    width: 100%;
}

.bundle-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.bundle-credits {
    color: var(--color-6);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
}

.bundle-credits.unlimited {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-2);
    letter-spacing: 0;
    margin-bottom: 0;
}

/* Reduce spacing for unlimited card to align price with others */
.bundle-card[data-bundle-type="unlimited"] .bundle-header {
    margin-bottom: 0px;
}

.bundle-card[data-bundle-type="unlimited"] .bundle-name {
    margin-bottom: 8px;
}

.bundle-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 16px;
    line-height: 1.4;
    text-align: center;
}

.bundle-price-section {
    width: 100%;
    margin-bottom: 20px;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.bundle-price .currency {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.bundle-price .amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    font-family: 'Riforma LL', sans-serif;
    line-height: 1;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.price-per-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-per-event .value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.price-per-event .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.price-per-event .value {
    font-size: 1.05rem;
    color: var(--color-6);
    font-weight: 600;
}

.price-per-event .value-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
    font-weight: 400;
}

.regular-price-compare {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.regular-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
}

.regular-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-2);
    color: black;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255, 217, 0, 0.3);
}

.savings-badge i {
    font-size: 0.9rem;
}

.bundle-validity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bundle-validity i {
    color: var(--color-6);
    font-size: 1rem;
}

.btn-purchase {
    width: 100%;
    padding: 16px 28px;
    background-color: var(--color-6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Riforma LL', sans-serif;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(217, 145, 255, 0.2);
}

.btn-purchase:hover {
    background-color: var(--color-7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 171, 0.35);
}

.btn-purchase:active {
    background-color: var(--color-7);
    transform: translateY(0);
}


/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .bundles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Hide carousel indicators on desktop */
@media screen and (min-width: 769px) {
    .carousel-indicators {
        display: none;
    }

    .carousel-instructions {
        display: none;
    }
}

/* Mobile - Horizontal scrollable, starts at Regular Pass */
@media screen and (max-width: 768px) {
    .bundles-page {
        padding: 0;
        position: relative;
    }

    .popular-badge {
        font-size: 0.7rem;
        padding: 6px 20px;
        letter-spacing: 0.5px;
    }

    .bundles-header {
        padding: 0 20px;
        margin-bottom: 16px;
    }

    /* Carousel instructions */
    .carousel-instructions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0 20px 12px 20px;
        margin-bottom: 4px;
    }

    .carousel-text {
        color: var(--color-6);
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .carousel-arrow-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--color-6-dark);
        border: 2px solid var(--color-6);
        color: var(--color-6);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        flex-shrink: 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-arrow-btn:hover {
        background-color: var(--color-6);
        color: white;
        transform: scale(1.1);
    }

    .carousel-arrow-btn:active {
        transform: scale(0.95);
    }
    
    .carousel-arrow-btn:focus {
        outline: none;
    }
    
    .carousel-arrow-btn:focus-visible {
        outline: 2px solid var(--color-6);
        outline-offset: 2px;
    }

    .bundles-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        padding: 20px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .bundles-container::-webkit-scrollbar {
        display: none;
    }

    /* Carousel dots indicator */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        padding-bottom: 20px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(217, 145, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-dot.active {
        background-color: var(--color-6);
        width: 24px;
        border-radius: 4px;
    }

    .bundle-card {
        width: calc(100vw - 80px);
        min-width: calc(100vw - 80px);
        max-width: calc(100vw - 80px);
        padding: 32px 24px;
        flex-shrink: 0;
        scroll-snap-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-sizing: border-box;
    }


    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .bundle-price .amount {
        font-size: 2.5rem;
    }

    .btn-purchase {
        padding: 16px 24px;
        font-size: 1rem;
    }
}
