/* ============================================
   BASES — FULLSCREEN INTERACTIVE LAYOUT (LIGHT THEME)
   ============================================ */

.bases-fullscreen {
    width: 100vw;
    height: 100dvh;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    position: relative;
    background: var(--blush);
}

.bases-bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    pointer-events: none;
    transition: background 1s ease;
    z-index: 0;
}

/* ============================================
   LEFT — SELECTOR PANEL
   ============================================ */
.bases-selector {
    display: flex;
    flex-direction: column;
    /* Top padding = navbar height so content never goes behind it */
    padding: 80px 48px 32px 64px;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(13, 48, 90, 0.06);
    min-height: 0;
    overflow: hidden;
}

/* Wrapper that takes all available space and centers header + grid */
.selector-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.selector-header {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.selector-tag {
    display: block;
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.selector-tag .dot {
    display: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.selector-title {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.selector-title .accent {
    color: var(--coral);
}

.selector-tag .step-accent {
    color: var(--coral);
}

/* ============================================
   SELECTOR GRID — 2x3 circles
   ============================================ */
.selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.5vw, 20px);
    width: min(100%, 380px);
    max-width: 380px;
    flex-shrink: 0;
}

.base-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.base-circle:hover {
    transform: scale(1.06);
}

.base-circle:active {
    transform: scale(0.97);
}

.circle-img-wrap {
    width: clamp(68px, 5.5vw, 95px);
    height: clamp(68px, 5.5vw, 95px);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: white;
    border: 2px solid rgba(13, 48, 90, 0.08);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: saturate(0.8) brightness(0.95);
}

.base-circle:hover .circle-img-wrap img,
.base-circle.active .circle-img-wrap img {
    filter: saturate(1) brightness(1);
    transform: scale(1.1);
}

.base-circle.active .circle-img-wrap {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(209, 77, 70, 0.15), 0 8px 25px -5px rgba(209, 77, 70, 0.25);
}

.base-circle:hover .circle-img-wrap {
    border-color: rgba(13, 48, 90, 0.2);
}

.circle-ring {
    position: absolute;
    /* top: 6px = circle padding */
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(68px, 5.5vw, 95px);
    height: clamp(68px, 5.5vw, 95px);
    border-radius: 50%;
    border: 2px solid var(--coral);
    opacity: 0;
    pointer-events: none;
}

.base-circle.active .circle-ring {
    opacity: 1;
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.18); opacity: 0; }
}

.circle-label {
    font-family: 'Clash Display', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(13, 48, 90, 0.4);
    transition: color 0.4s ease;
}

.base-circle:hover .circle-label {
    color: rgba(13, 48, 90, 0.7);
}

.base-circle.active .circle-label {
    color: var(--coral);
}

/* ============================================
   SELECTOR FOOTER
   ============================================ */
.selector-footer {
    flex-shrink: 0;
    padding: 24px 0 0;
    display: flex;
    justify-content: center;
    width: min(100%, 380px);
}

.bases-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: transparent;
    border: 1.5px solid rgba(13, 48, 90, 0.15);
    border-radius: 100px;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    justify-content: center;
}

.bases-next-btn:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(209, 77, 70, 0.35);
}

.bases-next-btn svg {
    transition: transform 0.3s ease;
}

.bases-next-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   RIGHT — SHOWCASE PANEL
   ============================================ */
.bases-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Equal vertical padding accounting for 80px navbar */
    padding: 80px 64px 80px;
    position: relative;
    z-index: 1;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   IMAGE CONTAINER — properly centered on number
   ============================================ */
.showcase-image-container {
    position: relative;
    width: 100%;
    /* Reduced height so the image is smaller and the number shows */
    height: clamp(160px, 22vh, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 16px;
}

/* Big background number — truly centered in the container */
.showcase-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(var(--number-offset-x, -50%), -50%);
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    /* Slightly larger than the image so it peeks out around it */
    font-size: clamp(9rem, 26vh, 18rem);
    color: rgba(13, 48, 90, 0.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.bases-showcase.is-yogur {
    --number-offset-x: calc(-50% - 6px);
}

/* Image wrapper — same center as the number, smaller than the number */
.showcase-img-wrap {
    position: relative;
    z-index: 1;
    /* Image takes 75% of the container height so the number is visible around it */
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-img-wrap img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
    transition: filter 0.6s ease;
    will-change: transform, opacity;
}

/* ============================================
   INFO AREA
   ============================================ */
.showcase-info {
    text-align: center;
    max-width: 500px;
    width: 100%;
    flex-shrink: 1;
    min-height: 0;
}

.showcase-name {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    line-height: 1.1;
}

.showcase-line {
    width: 48px;
    height: 3px;
    background: var(--coral);
    border-radius: 3px;
    margin: 0 auto 14px;
    flex-shrink: 0;
}

.showcase-desc {
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.65;
    color: rgba(13, 48, 90, 0.6);
    font-weight: 400;
    margin-bottom: 16px;
}

/* Benefits Block */
.showcase-benefits {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 48, 90, 0.06);
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 16px;
    text-align: left;
}

.benefit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--coral);
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.benefit-title svg {
    stroke: var(--coral);
    flex-shrink: 0;
}

.showcase-benefits p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(13, 48, 90, 0.65);
    font-weight: 400;
}

/* Tags */
.showcase-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stag {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 48, 90, 0.08);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(13, 48, 90, 0.6);
    transition: all 0.3s ease;
}

.stag:hover {
    background: var(--coral);
    color: white;
    border-color: var(--coral);
    transform: translateY(-2px);
}

/* Float animation for image */
@keyframes float-showcase {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.showcase-img-wrap.floating img {
    animation: float-showcase 5s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE — TABLET (1100px)
   ============================================ */
@media (max-width: 1100px) {
    .bases-fullscreen {
        grid-template-columns: 38% 62%;
    }

    .bases-selector {
        padding: 80px 24px 32px 32px;
    }

    .bases-showcase {
        padding: 80px 32px 32px;
    }

    .selector-grid {
        max-width: 290px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (768px, stacked)
   ============================================ */
@media (max-width: 768px) {
    .bases-fullscreen {
        grid-template-columns: 1fr;
        width: 100%;
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
    }

    .bases-selector {
        padding: 90px 20px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(13, 48, 90, 0.06);
        overflow: visible;
        align-items: center;
    }

    .selector-main {
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    .selector-header {
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }

    .selector-title {
        font-size: 1.8rem;
    }

    .selector-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
    }

    .selector-footer {
        padding-top: 20px;
        width: 100%;
        margin: 0 auto;
    }

    .bases-showcase {
        padding: 28px 24px 48px;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .showcase-image-container {
        height: 200px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .showcase-img-wrap {
        height: 50%;
    }

    .showcase-number {
        font-size: 7rem;
    }

    .showcase-name {
        font-size: 1.5rem;
    }

    .showcase-desc {
        font-size: 0.9rem;
    }

    .showcase-benefits {
        padding: 12px 16px;
    }

    .bases-bg-glow {
        width: 350px;
        height: 350px;
        left: 50%;
        top: 40%;
    }
}

@media (max-width: 400px) {
    .circle-img-wrap {
        width: 58px;
        height: 58px;
    }
    .circle-ring {
        width: 58px;
        height: 58px;
    }
    .selector-title {
        font-size: 1.5rem;
    }
}
