/* Public Styles for Bella Parquet Portfolio */

.bpp-portfolio-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.bpp-portfolio-grid.bpp-columns-1 {
    grid-template-columns: 1fr;
}

.bpp-portfolio-grid.bpp-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bpp-portfolio-grid.bpp-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bpp-portfolio-grid.bpp-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.bpp-portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpp-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bpp-portfolio-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bpp-portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.bpp-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bpp-portfolio-item:hover .bpp-portfolio-image img {
    transform: scale(1.05);
}

.bpp-portfolio-content {
    padding: 20px;
}

.bpp-portfolio-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.bpp-portfolio-location {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-weight: 500;
}

.bpp-portfolio-location::before {
    content: "📍 ";
    margin-right: 4px;
}

.bpp-portfolio-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.bpp-portfolio-description p {
    margin-bottom: 12px;
}

.bpp-portfolio-description p:last-child {
    margin-bottom: 0;
}

/* Single Portfolio Project */
.bpp-portfolio-single {
    padding: 40px 0;
}

.bpp-portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.bpp-portfolio-single .bpp-portfolio-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.bpp-portfolio-single .bpp-portfolio-location {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 0;
}

.bpp-portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bpp-portfolio-gallery .bpp-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpp-portfolio-gallery .bpp-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bpp-portfolio-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bpp-portfolio-gallery .bpp-gallery-item:hover img {
    transform: scale(1.02);
}

.bpp-portfolio-single .bpp-portfolio-description {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #555;
}

.bpp-portfolio-navigation {
    text-align: center;
    margin-top: 40px;
}

.bpp-back-to-portfolio {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.bpp-back-to-portfolio:hover {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Portfolio List Page */
.bpp-portfolio-page {
    padding: 40px 0;
}

.bpp-portfolio-page h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpp-portfolio-grid {
        gap: 20px;
        margin: 20px 0;
    }
    
    .bpp-portfolio-grid.bpp-columns-2,
    .bpp-portfolio-grid.bpp-columns-3,
    .bpp-portfolio-grid.bpp-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .bpp-portfolio-content {
        padding: 15px;
    }
    
    .bpp-portfolio-single .bpp-portfolio-title {
        font-size: 2em;
    }
    
    .bpp-portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bpp-portfolio-single {
        padding: 20px 0;
    }
    
    .bpp-portfolio-page h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .bpp-portfolio-content {
        padding: 12px;
    }
    
    .bpp-portfolio-title {
        font-size: 1.1em;
    }
    
    .bpp-portfolio-single .bpp-portfolio-title {
        font-size: 1.8em;
    }
    
    .bpp-portfolio-single .bpp-portfolio-description {
        font-size: 1em;
        text-align: left;
    }
}

/* Loading States */
.bpp-loading {
    text-align: center;
    padding: 40px;
}

.bpp-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: bpp-spin 1s linear infinite;
}

@keyframes bpp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom styling to match Bella Parquet theme */
.bpp-portfolio-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bpp-portfolio-title {
    font-family: inherit;
    letter-spacing: -0.02em;
}

/* Lightbox or modal styles (if implementing image popup) */
.bpp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.bpp-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpp-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.bpp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.bpp-lightbox-close:hover {
    color: #ccc;
}