/* =====================================================
   Panel Showcase — Reusable component
   Two-column layout with interactive mock browser
   ===================================================== */

.panel-showcase__more {
    padding: 12px 16px 12px 64px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    text-decoration: none;
}

.panel-showcase__more span {
    color: var(--primary-color);
}

.panel-showcase__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.panel-showcase__learn-more {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.panel-showcase__learn-more:hover {
    opacity: 0.8;
}


/* Panel Showcase — two-column layout with interactive mock */
.panel-showcase {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--gap-xl);
    align-items: start;
}

.panel-showcase__desc {
    font-size: 1.0625rem;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 0;
}

.panel-showcase__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-showcase__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    color: var(--text-muted);
    background: transparent;
}

.panel-showcase__item:hover {
    color: var(--gray-200);
    background: rgba(255, 255, 255, 0.03);
}

.panel-showcase__item.active {
    background: var(--gray-800);
    color: #f3f4f6;
}

.panel-showcase__item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
    margin-top: 2px;
}

.panel-showcase__item-icon svg {
    width: 24px;
    height: 24px;
}

.panel-showcase__item.active .panel-showcase__item-icon {
    color: var(--primary-color);
}

.panel-showcase__item-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.panel-showcase__item-text p {
    font-size: 0.8125rem;
    color: var(--status-gray);
    margin: 4px 0 0;
    line-height: 1.5;
}

.panel-showcase__item.active .panel-showcase__item-text p {
    color: var(--text-muted);
}


/* Mock Panel Browser */
.panel-mock {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.panel-mock__titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-mock__dots {
    display: flex;
    gap: var(--gap-xs);
}

.panel-mock__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.panel-mock__dots span:nth-child(1) { background: #ef4444; }
.panel-mock__dots span:nth-child(2) { background: #eab308; }
.panel-mock__dots span:nth-child(3) { background: #22c55e; }

.panel-mock__url {
    font-family: var(--mono-font);
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 14px;
    border-radius: 6px;
    flex: 1;
    margin: 0 16px;
    text-align: center;
}

.panel-mock__titlebar-spacer {
    width: 54px;
}

.panel-mock__body {
    min-height: 280px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    background: #121212;
}

.panel-mock__screen {
    display: none;
}

.panel-mock__screen.active {
    display: block;
    animation: panelScreenFadeIn 0.3s ease;
}

.panel-mock__screen img,
.panel-mock__screen video {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes panelScreenFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .panel-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .panel-showcase__preview {
        order: -1;
    }
    .panel-showcase__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .panel-showcase__pills {
        justify-content: center;
    }
    .panel-showcase__learn-more {
        justify-content: center;
    }
    .panel-mock {
        background: var(--gray-850);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}
