/* ============================================
   PREMIUM 3D PARALLAX SHOWCASE
   ============================================ */

.showcase-grid-wrapper.parallax-showcase {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 800px;
    /* Space for the floating elements */
    padding: var(--section-content-margin) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    /* 3D perspective */
    z-index: 10;
    /* Keep beneath the header which is 1000 */
}

/* 1. Center Hero Phone */
.hero-phone-wrapper {
    position: relative;
    z-index: 10;
}

.premium-phone-mockup {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 48px;
    border: 12px solid #1a1a1a;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 15px;
    z-index: 20;
}

.dynamic-island {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #111;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #222;
    overflow: hidden;
    border-radius: 36px;
    /* Inner radius */
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-ui-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ui-overlay-bottom {
    flex: 1;
    padding-right: 16px;
}

.ui-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.ui-caption {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.ui-overlay-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.ui-icon {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
}

.ui-icon svg {
    width: 20px;
    height: 20px;
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.4) 0%, rgba(191, 198, 244, 0.2) 40%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* 2. Floating Cards */
.floating-card {
    position: absolute;
    will-change: transform, opacity;
}

/* Positioning the cards around the center phone */
.left-card {
    left: calc(50% - 380px);
    top: 15%;
    z-index: 12;
}

.right-card {
    right: calc(50% - 380px);
    top: 25%;
    z-index: 11;
}

.bottom-left-card {
    left: calc(50% - 250px);
    bottom: 10%;
    z-index: 8;
    /* Behind the main ones */
}

.bottom-right-card {
    right: calc(50% - 270px);
    bottom: 5%;
    z-index: 15;
    /* in front */
}

/* 3. Bento UI */
.social-bento {
    width: 240px;
    border-radius: 24px;
    background: white;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-bento.small {
    width: 180px;
    padding: 8px;
    border-radius: 20px;
}

.card-dark .social-bento {
    background: #111;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon {
    width: 28px;
    height: 28px;
}

.bento-meta {
    display: flex;
    flex-direction: column;
}

.bento-name {
    font-weight: 600;
    font-size: 14px;
}

.bento-time {
    font-size: 12px;
    color: #666;
}

.card-dark .bento-time {
    color: #999;
}

.bento-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    /* Square post */
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-text {
    font-size: 13px;
    line-height: 1.5;
}

.bento-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 16px;
}

.media-only {
    position: relative;
}

.media-only .bento-video,
.media-only .bento-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 9/16;
}

.media-only .play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .showcase-grid-wrapper.parallax-showcase {
        min-height: 700px;
    }

    .left-card {
        left: 5%;
        width: 220px;
    }

    .right-card {
        right: 5%;
        top: 30%;
        width: 220px;
    }

    .bottom-left-card,
    .bottom-right-card {
        display: none;
    }

    .social-bento {
        width: 100%;
    }

    /* Fill parent width */
}

@media (max-width: 768px) {
    .showcase-grid-wrapper.parallax-showcase {
        flex-direction: column;
        gap: 40px;
        perspective: none;
        padding-top: 40px;
        min-height: auto;
    }

    .floating-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 340px;
    }
}