/* ============================================
   WORLD-CLASS SHOWCASE SYSTEM v2.0
   Premium "Product Spotlight" Layout
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    --showcase-bg: #ffffff;
    --showcase-bg-alt: #f8fafc;
    --showcase-text: #0f172a;
    --showcase-muted: #64748b;
    --showcase-border: #e2e8f0;
    --showcase-highlight: #3b82f6;
    --showcase-radius: 16px;
    --showcase-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 12px 24px -8px rgba(0, 0, 0, 0.04);
    --showcase-shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.12), 0 20px 40px -10px rgba(0, 0, 0, 0.06);
    --showcase-glow: 0 0 60px rgba(59, 130, 246, 0.15);
}

/* === SECTION WRAPPER === */
.showcase-section {
    padding: 120px 0 140px;
    background: var(--showcase-bg);
    overflow: hidden;
    position: relative;
}

/* Subtle background texture */
.showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* === SECTION HEADER === */
.showcase-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 100px;
    position: relative;
}

.showcase-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.showcase-header p {
    font-size: 1.15rem;
    color: var(--showcase-muted);
    line-height: 1.6;
}

/* === VERTICAL GRID (Breathable Rows) === */
.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* === EACH ROW: 2-Column Split === */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-row.reverse {
    direction: rtl;
}

.showcase-row.reverse>* {
    direction: ltr;
}

/* === TEXT COLUMN === */
.showcase-text {
    padding: 0 10px;
}

.showcase-text h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--showcase-text);
    line-height: 1.2;
}

.showcase-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--showcase-muted);
    margin-bottom: 28px;
}

/* === TAG PILLS === */
.tags-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 6px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

/* === VISUAL COLUMN (The Magic) === */
.showcase-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Soft glow behind mockups */
.showcase-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

/* ============================================
   MOCKUP FRAMES — Premium, 3D-Tilted, Glowing
   ============================================ */

/* --- Phone Frame --- */
.mockup-phone {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 44px;
    box-shadow:
        var(--showcase-shadow-lg),
        inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    border: 6px solid #1a1a2e;
    position: relative;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    z-index: 1;
}

/* Phone notch */
.mockup-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mockup-phone:hover {
    transform: rotateY(0) rotateX(0) scale(1.03);
    box-shadow:
        var(--showcase-shadow-lg),
        var(--showcase-glow);
}

/* --- Dashboard Frame --- */
.mockup-dashboard {
    width: 100%;
    max-width: 560px;
    height: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--showcase-shadow-lg);
    border: 1px solid var(--showcase-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: rotateY(5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    z-index: 1;
}

.mockup-dashboard:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow:
        var(--showcase-shadow-lg),
        var(--showcase-glow);
}

/* --- Browser Frame --- */
.mockup-browser {
    width: 100%;
    max-width: 560px;
    height: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--showcase-shadow-lg);
    border: 1px solid var(--showcase-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    z-index: 1;
}

.mockup-browser:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow:
        var(--showcase-shadow-lg),
        var(--showcase-glow);
}

/* ============================================
   INTERNAL UI HELPERS
   ============================================ */

/* --- Header Bar (Browser/Dashboard Chrome) --- */
.ui-header {
    height: 42px;
    min-height: 42px;
    border-bottom: 1px solid var(--showcase-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f8fafc;
    gap: 8px;
}

/* --- Window Dots --- */
.ui-dots {
    display: flex;
    gap: 6px;
}

.ui-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    position: relative;
}

/* Three dots effect */
.ui-dot::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.ui-dot::after {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

/* --- Sidebar --- */
.ui-sidebar {
    width: 60px;
    border-right: 1px solid var(--showcase-border);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 16px;
}

/* --- Content --- */
.ui-content {
    flex: 1;
    padding: 20px;
    position: relative;
    background: #fff;
}

/* --- Skeleton UI --- */
.ui-skeleton-text {
    height: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: skeleton-shimmer 2s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.ui-skeleton-block {
    background: #f1f5f9;
    border-radius: 8px;
}

/* --- Chart Helpers --- */
.ui-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
}

.ui-bar {
    width: 100%;
    background: var(--showcase-highlight);
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.ui-bar:hover {
    opacity: 1;
}

/* --- Stat Cards --- */
.ui-stat-card {
    border: 1px solid var(--showcase-border);
    border-radius: 12px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.ui-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === PULSE ANIMATION (for live indicators) === */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */
@media (max-width: 1024px) {
    .showcase-grid {
        gap: 80px;
    }

    .showcase-row {
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .showcase-section {
        padding: 80px 0 100px;
    }

    .showcase-header {
        margin-bottom: 60px;
    }

    .showcase-row,
    .showcase-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
        text-align: center;
    }

    .showcase-text {
        order: 1;
        text-align: center;
    }

    .showcase-visual {
        order: 2;
    }

    .tags-row {
        justify-content: center;
    }

    /* Flatten 3D on mobile */
    .mockup-phone,
    .mockup-dashboard,
    .mockup-browser {
        transform: none !important;
        max-width: 100%;
    }

    .mockup-phone {
        width: 260px;
        height: 520px;
        margin: 0 auto;
    }

    .mockup-dashboard,
    .mockup-browser {
        max-width: 100%;
        height: 340px;
    }

    .showcase-visual::before {
        display: none;
    }

    .showcase-grid {
        gap: 60px;
    }
}

@media (max-width: 480px) {
    .showcase-section {
        padding: 60px 0 80px;
    }

    .showcase-header h2 {
        font-size: 2rem;
    }

    .showcase-text h3 {
        font-size: 1.4rem;
    }

    .showcase-text p {
        font-size: 0.95rem;
    }

    .mockup-phone {
        width: 240px;
        height: 480px;
    }

    .mockup-dashboard,
    .mockup-browser {
        height: 280px;
    }

    .showcase-grid {
        gap: 50px;
    }
}