/* ===== Projetos Page Styles ===== */
/* Ana Claudia Costa Arquitetura - Página de Todos os Projetos */

/* Header fix for projetos page */
body .header.header-dark {
    background: #1a1a2e;
}

body .header.header-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

body .header.header-dark .nav-link:hover {
    color: #c9a962;
}

body .header.header-dark .logo-white {
    display: block;
}

body .header.header-dark .logo-dark {
    display: none;
}

body .header.header-dark.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body .header.header-dark.scrolled .nav-link {
    color: #1a1a2e;
}

body .header.header-dark.scrolled .nav-link:hover {
    color: #c9a962;
}

body .header.header-dark.scrolled .logo-white {
    display: none;
}

body .header.header-dark.scrolled .logo-dark {
    display: block;
}

/* Header CTA button */
body .header.header-dark .header-cta {
    background: #c9a962;
    color: #fff;
    border: none;
}

body .header.header-dark .header-cta:hover {
    background: #b8944d;
}

/* Mobile toggle for dark header */
body .header.header-dark .mobile-toggle span {
    background: #fff;
}

body .header.header-dark.scrolled .mobile-toggle span {
    background: #1a1a2e;
}

/* Mobile menu for dark header pages */
@media (max-width: 768px) {
    body .header.header-dark {
        background: #1a1a2e;
    }
    
    body .header.header-dark.scrolled {
        background: #fff;
    }
    
    body .header.header-dark .header-cta {
        display: none !important;
    }
    
    /* Mobile nav when active */
    body .header.header-dark .nav.active {
        display: block !important;
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 64px) !important;
        height: calc(100dvh - 64px) !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body .header.header-dark .nav.active .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 24px 20px !important;
        margin: 0 !important;
        list-style: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body .header.header-dark .nav.active .nav-list li {
        display: block !important;
        border-bottom: 1px solid #f0f0f0;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body .header.header-dark .nav.active .nav-list li:last-child {
        border-bottom: none;
    }
    
    body .header.header-dark .nav.active .nav-link {
        display: block !important;
        padding: 18px 0 !important;
        font-size: 1.125rem !important;
        font-weight: 500 !important;
        color: #1a1a2e !important;
        text-decoration: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body .header.header-dark .nav.active .nav-link:active {
        color: #c9a962 !important;
    }
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 140px 0 60px;
    color: #fff;
}

.page-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.page-hero .back-link:hover {
    color: #c9a962;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Projects Section */
.projects-section {
    padding: 60px 0 100px;
    background: #f8f8f6;
    min-height: 60vh;
}

/* Filter Wrapper */
.projects-filter-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Main Filter */
.filter-main {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-main .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    background: #fff;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-main .filter-btn:hover {
    border-color: #c9a962;
    color: #c9a962;
}

.filter-main .filter-btn.active {
    background: linear-gradient(135deg, #c9a962 0%, #b8944f 100%);
    border-color: #c9a962;
    color: #fff;
}

.filter-main .filter-btn i {
    font-size: 0.9rem;
}

/* Subcategory Filter */
.filter-sub {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filter-sub-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    text-align: center;
}

.filter-sub-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-sub-buttons .filter-btn {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-sub-buttons .filter-btn:hover {
    border-color: #c9a962;
    color: #c9a962;
}

.filter-sub-buttons .filter-btn.active {
    background: #c9a962;
    border-color: #c9a962;
    color: #fff;
}

/* Projects Info */
.projects-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.projects-info span {
    color: #666;
    font-size: 0.95rem;
}

.projects-view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: #c9a962;
    color: #c9a962;
}

.view-btn.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Project Card */
.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-subcategory {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(201, 169, 98, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-card-link {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: #c9a962;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-card-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card-info {
    padding: 20px;
}

.project-card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.project-card-info p {
    color: #888;
    font-size: 0.9rem;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.project-card-tag {
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* List View Styles */
.projects-grid.list-view .project-card {
    display: flex;
    flex-direction: row;
}

.projects-grid.list-view .project-card-image {
    width: 300px;
    min-width: 300px;
    aspect-ratio: auto;
    height: 200px;
}

.projects-grid.list-view .project-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px;
}

.projects-grid.list-view .project-card-info h3 {
    font-size: 1.4rem;
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.projects-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 24px;
}

.projects-empty h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.projects-empty p {
    margin-bottom: 24px;
}

/* Loading State */
.projects-loading {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #eee;
    border-top-color: #c9a962;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid.list-view .project-card-image {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .projects-section {
        padding: 40px 0 60px;
    }
    
    .projects-filter-wrapper {
        padding: 16px;
    }
    
    .filter-main {
        gap: 8px;
    }
    
    .filter-main .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .filter-main .filter-btn i {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .projects-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .projects-grid.list-view .project-card {
        flex-direction: column;
    }
    
    .projects-grid.list-view .project-card-image {
        width: 100%;
        min-width: auto;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    .project-card-info {
        padding: 16px;
    }
    
    .project-card-info h3 {
        font-size: 1rem;
    }
    
    .projects-view-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-main .filter-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 4px);
    }
}

/* Footer Styles for Projetos Page */
.projetos-footer {
    background: #1a1a2e;
    padding: 40px 0;
}

.projetos-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.projetos-footer .footer-logo {
    max-width: 180px;
    height: auto;
}

.projetos-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}
