/* JC Portfolio Tabs — Frontend */
.jcpt-portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Tab Buttons ── */
.jcpt-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.jcpt-tab-btn {
    padding: 14px 40px;
    border: 2px solid rgba(123, 31, 255, .35);
    border-radius: 60px;
    background: transparent;
    color: #c0b8d0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}
.jcpt-tab-btn:hover {
    border-color: #7B1FFF;
    color: #fff;
}
.jcpt-tab-btn.active {
    background: linear-gradient(135deg, #7B1FFF 0%, #a855f7 100%);
    border-color: #7B1FFF;
    color: #fff;
    box-shadow: 0 4px 24px rgba(123, 31, 255, .35);
}

/* ── Tab Panels ── */
.jcpt-tab-panel {
    display: none;
    animation: jcptFadeIn .35s ease;
}
.jcpt-tab-panel.active {
    display: block;
}
@keyframes jcptFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Title ── */
.jcpt-section {
    margin-bottom: 40px;
}
.jcpt-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(123, 31, 255, .25);
}

/* ── Gallery Grid ── */
.jcpt-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .jcpt-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .jcpt-tab-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .jcpt-gallery {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery Item ── */
.jcpt-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid rgba(123, 31, 255, .15);
    transition: transform .25s ease, box-shadow .25s ease;
}
.jcpt-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(123, 31, 255, .2);
}
.jcpt-gallery-item a {
    display: block;
    text-decoration: none;
}
.jcpt-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .3s ease;
}
.jcpt-gallery-item:hover img {
    transform: scale(1.03);
}

/* ── Numbered Badge ── */
.jcpt-img-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(123, 31, 255, .85);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

/* ── Empty state ── */
.jcpt-empty {
    text-align: center;
    padding: 60px 20px;
    opacity: .5;
    font-size: 16px;
}
