/* ==========================================================================
   SitoraLife Projects Archive & Single Page Styles
   ========================================================================== */

/* ==========================================================================
   Projects Archive
   ========================================================================== */
.projects-archive {
    padding: 4rem 0;
}

.projects-archive .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-archive .page-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-wood, #d4a574);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.projects-archive .page-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-dark, #2c3e50);
    margin-bottom: 1rem;
}

.projects-archive .page-description {
    font-size: 1rem;
    color: var(--color-text-muted, #6c757d);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Buttons */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: var(--color-text-dark, #2c3e50);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-wood, #d4a574);
    background-color: var(--color-wood, #d4a574);
    color: #ffffff;
}

/* Archive Grid */
.projects-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Project Card (shared styles with homepage) */
.projects-archive .project-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.projects-archive .project-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.projects-archive .project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #fafafa;
}

.projects-archive .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-archive .project-card:hover .project-image img {
    transform: scale(1.05);
}

.projects-archive .project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f0eb;
    color: #6c757d;
    font-size: 0.875rem;
}

.projects-archive .project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-wood, #d4a574);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
}

.projects-archive .project-info {
    padding: 1.5rem;
}

.projects-archive .project-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-dark, #2c3e50);
    margin-bottom: 0.5rem;
}

.projects-archive .project-title a {
    color: inherit;
    text-decoration: none;
}

.projects-archive .project-title a:hover {
    color: var(--color-wood, #d4a574);
}

.projects-archive .project-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
    line-height: 1.6;
    margin: 0;
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 4rem 2rem;
    background: #f5f0eb;
    border-radius: 4px;
}

.no-projects p {
    font-size: 1.1rem;
    color: var(--color-text-muted, #6c757d);
    margin: 0;
}

/* Pagination */
.projects-archive .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.projects-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: var(--color-text-dark, #2c3e50);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.projects-archive .page-numbers:hover,
.projects-archive .page-numbers.current {
    background: var(--color-wood, #d4a574);
    border-color: var(--color-wood, #d4a574);
    color: #ffffff;
}

/* ==========================================================================
   Single Project
   ========================================================================== */
.single-project {
    padding: 4rem 0;
}

.single-project .container {
    max-width: 900px;
}

/* Project Header */
.project-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.project-type {
    display: inline-block;
    background-color: var(--color-wood, #d4a574);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    border-radius: 2px;
}

.single-project .project-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-dark, #2c3e50);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.project-meta {
    color: var(--color-text-muted, #6c757d);
    font-size: 0.9rem;
}

/* Featured Image */
.project-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Content */
.project-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark, #2c3e50);
    margin-bottom: 3rem;
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-content h2,
.project-content h3,
.project-content h4 {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-content ul,
.project-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.project-content li {
    margin-bottom: 0.5rem;
}

/* Project Gallery */
.project-gallery {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.gallery-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-dark, #2c3e50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

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

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

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.nav-previous,
.nav-next {
    display: flex;
}

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

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

.nav-all {
    text-align: center;
}

.prev-project,
.next-project {
    display: flex;
    flex-direction: column;
    color: var(--color-text-dark, #2c3e50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev-project:hover,
.next-project:hover {
    color: var(--color-wood, #d4a574);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 0.25rem;
}

.nav-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 500;
}

.all-projects {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-text-dark, #2c3e50);
    color: var(--color-text-dark, #2c3e50);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.all-projects:hover {
    background-color: var(--color-text-dark, #2c3e50);
    color: #ffffff;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .projects-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-archive {
        padding: 3rem 0;
    }

    .projects-archive .page-title {
        font-size: 2rem;
    }

    .projects-archive-grid {
        grid-template-columns: 1fr;
    }

    .single-project {
        padding: 3rem 0;
    }

    .single-project .project-title {
        font-size: 1.75rem;
    }

    .project-content {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-previous,
    .nav-next,
    .nav-all {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}
