/* ============================================
   PackagingPapa Portfolio Plugin - Frontend CSS
   (Loaded only on portfolio archive/single pages
    if theme doesn't already style them)
============================================ */

/* Single Portfolio Header */
.single-portfolio-header {
    background: linear-gradient(135deg, #1D3557 0%, #2d4e77 100%);
    padding: 60px 0 40px;
    color: #fff;
}

.single-portfolio-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.single-portfolio-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.single-portfolio-breadcrumb a:hover { color: #fff; }

.single-portfolio-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px;
}

.single-portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.single-portfolio-category {
    background: rgba(230,57,70,0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-portfolio-category a {
    color: #fff;
    text-decoration: none;
}

/* Portfolio Content Layout */
.single-portfolio-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    padding: 60px 0;
    align-items: start;
}

/* Gallery */
.portfolio-gallery-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.portfolio-gallery-main img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
}

.portfolio-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.portfolio-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.portfolio-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-gallery-thumb.active,
.portfolio-gallery-thumb:hover {
    border-color: #E63946;
}

/* Details Sidebar */
.portfolio-details-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #E63946;
    margin-bottom: 20px;
}

.portfolio-details-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.portfolio-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.portfolio-detail-row:last-child { border-bottom: none; }

.portfolio-detail-label {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    flex-shrink: 0;
}

.portfolio-detail-value {
    font-size: 0.88rem;
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* CTA Card */
.portfolio-cta-card {
    background: linear-gradient(135deg, #E63946, #c1121f);
    border-radius: 10px;
    padding: 25px;
    color: #fff;
    margin-bottom: 20px;
}

.portfolio-cta-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-cta-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
}

.portfolio-cta-card .btn-white {
    background: #fff;
    color: #E63946;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.portfolio-cta-card .btn-white:hover {
    background: #f0f0f0;
}

/* Related Portfolio */
.related-portfolio {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 0;
}

/* Admin actions on single */
.portfolio-admin-actions {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .single-portfolio-content {
        grid-template-columns: 1fr;
    }

    .portfolio-details-sidebar {
        order: -1;
    }

    .single-portfolio-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .portfolio-gallery-thumbs {
        gap: 8px;
    }
    .portfolio-gallery-thumb {
        width: 60px;
        height: 60px;
    }
}
