/* ===================================
   SINGLE PROJECT PAGE STYLES
   =================================== */

/* Project Wrapper */
.single-project-wrapper {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.project-hero {
    width: 100%;
    margin: 0 0 60px 0;
    position: relative;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Project Container */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Project Header */
.project-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.project-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.project-meta-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-category {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f0f0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

/* Content Grid Layout */
.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-bottom: 60px;
}

/* Main Content Area */
.project-main-content {
    min-width: 0;
}

.project-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 50px;
}

.project-description p {
    margin-bottom: 20px;
}

.project-description h2,
.project-description h3 {
    color: #222;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Gallery Section */
.project-gallery-section {
    margin-top: 50px;
}

.gallery-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-lightbox {
    display: block;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-icon {
    font-size: 48px;
    color: #fff;
    font-weight: 300;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.project-details-box,
.project-share-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.details-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.detail-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-value {
    display: block;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.detail-description .detail-value {
    margin-top: 5px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #666;
}

/* Project Navigation */
.project-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.nav-previous,
.nav-next,
.nav-all {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-all {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-previous:hover,
.nav-next:hover,
.nav-all:hover {
    background: #0073aa;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.nav-previous:hover .nav-arrow,
.nav-previous:hover .nav-label,
.nav-previous:hover .nav-title,
.nav-next:hover .nav-arrow,
.nav-next:hover .nav-label,
.nav-next:hover .nav-title,
.nav-all:hover .nav-label,
.nav-all:hover .nav-grid-icon {
    color: #fff;
}

.nav-arrow {
    font-size: 24px;
    color: #0073aa;
    transition: color 0.3s ease;
}

.nav-grid-icon {
    font-size: 28px;
    color: #0073aa;
    transition: color 0.3s ease;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-sidebar {
        position: static;
    }

    .project-details-box,
    .project-share-box {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .project-hero-image {
        height: 350px;
    }

    .project-title {
        font-size: 32px;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nav-previous,
    .nav-next {
        justify-content: space-between;
    }

    .nav-next {
        text-align: left;
    }

    .gallery-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .project-hero-image {
        height: 250px;
    }

    .project-title {
        font-size: 26px;
    }

    .project-header {
        margin-bottom: 30px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-details-box,
    .project-share-box {
        padding: 20px;
    }

    .nav-previous,
    .nav-next,
    .nav-all {
        padding: 15px;
    }

    .nav-title {
        font-size: 14px;
    }
}

/* Lightbox Basic Styles (if using simple lightbox) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}
