/**
 * Wood Projects Archive Styles
 * 
 * @package Flatsome Child - Nhà Gỗ Đăng Khôi
 */

/* Archive Header */
.archive-header {
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid #d4af37;
}

.archive-title {
    color: #8b4513;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.archive-description {
    text-align: center;
    color: #6b4423;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Taxonomy Header */
.taxonomy-header {
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgb(212 175 55 / 35%);
}

.taxonomy-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #d4af37;
}

.taxonomy-breadcrumb a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.taxonomy-breadcrumb a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.taxonomy-breadcrumb .separator {
    margin: 0 8px;
    color: #d4af37;
    font-weight: bold;
}

.taxonomy-breadcrumb .current {
    font-weight: 600;
    color: #d4af37;
}

.taxonomy-title {
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.taxonomy-title i {
    color: #d4af37;
    font-size: 2rem;
}

.taxonomy-description {
    text-align: center;
    color: #6b4423;
    font-size: 1.1rem;
    margin: 15px auto;
    max-width: 600px;
    line-height: 1.6;
}

.taxonomy-meta {
    text-align: center;
    margin-top: 20px;
}

.taxonomy-meta .post-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #d4af37;
    font-weight: 600;
    border: 1px solid #d4af37;
}

.taxonomy-meta .post-count i {
    color: #d4af37;
}

/* Filter Controls */
.projects-filters {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #d4af37;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 14px;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Layout Toggle */
.layout-toggle {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.layout-btn {
    padding: 8px 12px;
    border: 1px solid #d4af37;
    background: #fff;
    color: #8b4513;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.layout-btn:hover,
.layout-btn.active {
    background: #d4af37;
    color: #fff;
}

/* Projects Grid */
.projects-container {
    display: flex;
    gap: 30px;
}

.projects-main {
    flex: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

/* Project Card Styles */
.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #d4af37;
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-badge {
    background: rgba(212, 175, 55, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.gallery-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-content {
    padding: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #d4af37;
}

.project-wood-types {
    margin-bottom: 15px;
}

.project-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.project-info-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.project-info-list i {
    color: #d4af37;
    width: 16px;
    text-align: center;
}

.project-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* List Layout Styles */
.projects-grid.list-layout .project-card {
    display: flex;
    align-items: stretch;
}

.projects-grid.list-layout .project-thumbnail {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.projects-grid.list-layout .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-grid.list-layout .project-excerpt {
    -webkit-line-clamp: 2;
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    text-decoration: none;
    color: #8b4513;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #d4af37;
    color: #fff;
}

/* No Projects Found */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 15px;
    margin: 40px 0;
}

.no-projects-icon {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.no-projects h3 {
    color: #8b4513;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-projects p {
    color: #666;
    margin-bottom: 25px;
}

.no-projects .button {
    background: #d4af37;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-projects .button:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .layout-toggle {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .projects-filters {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid.list-layout .project-card {
        flex-direction: column;
    }
    
    .projects-grid.list-layout .project-thumbnail {
        width: 100%;
        height: 200px;
    }
    

}

@media (max-width: 480px) {
    .archive-header {
        padding: 30px 0;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .projects-filters {
        padding: 15px;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .project-content {
        padding: 20px;
    }
    

}

/* Print Styles */
@media print {
    .projects-filters,
    .layout-toggle,
    .pagination {
        display: none;
    }
    
    .projects-container {
        flex-direction: column;
    }
    
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .project-card {
        border: 1px solid #000;
    }
    
    .view-details-btn {
        background: #000;
        border: 1px solid #000;
    }
    

}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .view-details-btn,
    .layout-btn,
    .category-link,
    .wood-type-tag {
        transition: none;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .project-thumbnail img {
        transition: none;
    }
    
    .project-card:hover .project-thumbnail img {
        transform: none;
    }
}