/**
 * Pride Comparison Section - Frontend Styles
 */

/* Main Container */
.prep-comparison-section {
    max-width: var(--section-max-width, 1290px);
    margin: 0 auto;
    padding: var(--section-padding, 20px) 0;
    background: var(--bg-color, #f4f5f7);
}

/* Header */
.prep-header {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.prep-title {
    font-size: var(--title-font-size, 30px);
    font-weight: 500;
    line-height: 110%;
    margin-bottom: 0.7rem;
    color: var(--title-color, #161615);
    letter-spacing: -0.6px;
}

.prep-subtitle {
    font-size: var(--subtitle-font-size, 16px);
    line-height: 140%;
    color: var(--subtitle-color, #656565);
    font-weight: 500;
    margin: 0;
}

/* Tabs */
.prep-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    padding: 0.6rem;
    background: #FFFFFF;
    border-radius: 999px;
    border: 1px solid #e6e8ed;
    max-width: 400px;
}

.prep-tab-btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-size: 0.97rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #EDEDED;
    color: #9aa1ab;
    box-shadow: none;
}

.prep-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color, #ffc107) 0%, var(--accent-color, #ffb300) 100%);
    color: var(--button-text-color, #1a1a1a);
    border-color: var(--accent-color, #f2b10b);
    box-shadow: 0 12px 26px rgba(255, 193, 7, 0.35);
}

/* Carousel Container */
.prep-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 0.35rem;
}

.prep-carousel-container::before,
.prep-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.prep-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color, #f4f5f7) 0%, rgba(244,245,247,0) 100%);
}

.prep-carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-color, #f4f5f7) 0%, rgba(244,245,247,0) 100%);
}

.prep-carousel-container.hide-left-gradient::before {
    opacity: 0;
    visibility: hidden;
}

.prep-carousel-container.hide-right-gradient::after {
    opacity: 0;
    visibility: hidden;
}

/* Carousel Track */
.prep-carousel-track {
    display: flex;
    --card-width: 78%;
    --card-gap: 1.05rem;
    --peek: 16%;
    gap: var(--card-gap);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    will-change: transform;
}

.prep-carousel-track.show-tab1 {
    transform: translateX(0);
}

.prep-carousel-track.show-tab2 {
    transform: translateX(calc(-1 * (var(--card-width) - var(--peek))));
}

/* Cards */
.prep-card {
    flex: 0 0 var(--card-width);
    background: var(--card-bg-color, #ffffff);
    border-radius: var(--card-border-radius, 22px);
    border: 1px solid #eef0f3;
    padding: 1.45rem 1.35rem 1.55rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

.prep-card.active {
    opacity: 1;
    transform: scale(1);
}

.prep-card.inactive {
    opacity: 0.38;
    filter: none;
}

/* Pill Container */
.prep-pill-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 1.35rem;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.prep-pill-container::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,193,7,0.07) 0%, transparent 70%);
    border-radius: 50%;
    top: -28px;
    right: -28px;
}

.prep-pill-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

/* Card Content */
.prep-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prep-plan-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 125%;
    letter-spacing: -0.44px;
    margin-bottom: 0.4rem;
    color: var(--plan-title-color, #1a1a1a);
}

.prep-plan-subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 0.4rem;
    color: var(--plan-subtitle-color, #161615);
}

.prep-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--description-color, #50545d);
    margin-bottom: 1.15rem;
}

/* Features List */
.prep-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.prep-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--description-color, #50545d);
}

.prep-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 8px;
    height: 8px;
    background: var(--accent-color, #ffc107);
    border-radius: 50%;
}

/* Price */
.prep-price {
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    color: var(--price-color, #656565);
    margin-bottom: 0.5rem;
}

.prep-price span {
    font-size: 1.5rem;
    font-weight: 600;
}

/* CTA Button */
.prep-cta-btn {
    display: block;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--accent-color, #ffc107) 0%, var(--accent-color, #ffb300) 100%);
    color: var(--button-text-color, #1a1a1a);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--button-border-radius, 40px);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.28);
    margin: 0 auto;
    width: 100%;
}

.prep-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 193, 7, 0.35);
}

.prep-cta-btn:active {
    transform: scale(0.98);
}

.prep-card.inactive .prep-cta-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* Very small screens */
@media (max-width: 380px) {
    .prep-title {
        font-size: 1.5rem;
    }

    .prep-subtitle {
        font-size: 0.85rem;
    }

    .prep-tab-btn {
        padding: 0.75rem 1.15rem;
        font-size: 0.95rem;
    }

    .prep-pill-container {
        min-height: 170px;
        padding: 1.9rem 1.5rem;
    }

    .prep-carousel-track {
        --card-width: 90%;
        --card-gap: 0.9rem;
    }
}

@media (max-width: 768px) {
    .prep-header {
        margin-right: 3rem;
    }

    .prep-price {
        font-size: 0.9rem;
    }

    .prep-price span {
        font-size: 1.5rem;
    }
}

/* Desktop layout */
@media (min-width: 900px) {
    .prep-comparison-section {
        padding: 2.5rem 1rem 3rem;
    }

    .prep-header {
        max-width: 600px;
        margin-bottom: 1.8rem;
    }

    .prep-title {
        font-size: var(--title-desktop-font-size, 40px);
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .prep-subtitle {
        font-size: 1rem;
        line-height: 1.72;
    }

    .prep-carousel-container {
        overflow: visible;
        padding: 0;
    }

    .prep-carousel-container::before,
    .prep-carousel-container::after {
        display: none;
    }

    .prep-carousel-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        --card-width: auto;
        --card-gap: 1.5rem;
        transform: none !important;
    }

    .prep-card {
        flex: 1;
        width: 100%;
        border-radius: var(--card-border-radius, 24px);
        padding: 1.75rem 1.5rem 1.6rem;
        box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
        opacity: 1;
        transform: none;
        filter: none;
    }

    .prep-pill-container {
        min-height: 190px;
        padding: 1.9rem 1.6rem;
    }

    .prep-pill-container::before {
        width: 130px;
        height: 130px;
        top: -28px;
        right: -32px;
    }

    .prep-card-content {
        gap: 0.6rem;
    }

    .prep-plan-title {
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }

    .prep-plan-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0.7rem;
    }

    .prep-description {
        font-size: 0.98rem;
        line-height: 1.72;
        margin-bottom: 1.05rem;
    }

    .prep-price {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .prep-cta-btn {
        width: auto;
        padding: 0.95rem 1.4rem;
        border-radius: var(--button-border-radius, 38px);
        margin: 0;
    }

    .prep-card.inactive {
        opacity: 0.5;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .prep-carousel-track,
    .prep-card,
    .prep-tab-btn,
    .prep-cta-btn {
        transition: none;
    }
}
