/* ===== WOOD PROJECTS SIDEBAR - ARCHIVE DESIGN ===== */

/* Main Sidebar Container */
.wood-projects-sidebar {
    padding: 20px 0;
}

/* Widget Base Styling */
.wood-projects-sidebar .widget {
    background: #000;
    border: 1px solid #d4af37;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wood-projects-sidebar .widget:last-child {
    margin-bottom: 0;
}

.wood-projects-sidebar .widget-title {
    background: #000;
    color: #d4af37;
    padding: 10px 15px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.wood-projects-sidebar .widget-title i {
    color: #d4af37;
    font-size: 1rem;
}

.wood-projects-sidebar .widget-content {
    padding: 12px 15px;
    color: #d4af37;
}

/* Search Widget */
.widget-search .search-input-wrapper {
    position: relative;
    display: flex;
    gap: 0;
}

.filter-row {
    display: flex;
    column-gap: 15px;
    justify-content: flex-end;
}

.widget-search .search-field {
flex: 1;
    padding: 19px 15px !important;
    border: 1px solid #d4af37 !important;
    border-right: none;
    font-size: 12px;
    outline: none;
    color: #d4af37;
    background: #000000 !important;
    height: 100%;
}

.widget-search .search-field::placeholder {
    color: rgba(212, 175, 55, 0.7);
}

.widget-search .search-field:focus {
    border-color: #b8860b;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.widget-search .search-submit {
    padding: 10px 15px;
    background: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-search .search-submit:hover {
    background: #b8860b;
    border-color: #b8860b;
}

/* Project Categories Widget - Hierarchical */
.project-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-categories-list.hierarchical .category-item {
    border-bottom: 1px solid #333;
    padding: 0;
}

.project-categories-list.hierarchical .category-item:last-child {
    border-bottom: none;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    padding: 4px 0;
    gap: 8px;
}

.category-toggle {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.category-toggle:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.category-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.category-item.expanded .category-toggle i {
    transform: rotate(90deg);
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    flex: 1;
}

.category-link:hover {
    color: #d4af37;
}

.current-cat > .category-header .category-link {
    color: #d4af37;
    font-weight: 600;
}

.category-count {
    background: #333;
    color: #999;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Sub Categories */
.sub-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 28px;
    border-left: 1px solid #333;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sub-category-item {
    padding: 3px 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.sub-category-item:last-child {
    border-bottom: none;
}

.sub-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    padding-left: 8px;
    position: relative;
}

.sub-category-link:before {
    content: '└';
    position: absolute;
    left: -12px;
    color: #666;
    font-size: 0.7rem;
}

.sub-category-link:hover {
    color: #d4af37;
}

.sub-category-item.current-cat .sub-category-link {
    color: #d4af37;
    font-weight: 600;
}

.sub-category-item .category-count {
    background: rgba(51, 51, 51, 0.7);
    font-size: 0.7rem;
}

/* Wood Types Widget */
.wood-types-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wood-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 3px 6px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wood-type-tag:hover,
.wood-type-tag.current {
    border-color: #d4af37;
    color: #d4af37;
}

.wood-type-tag .count {
    background: #333;
    color: #999;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
}

/* Featured Projects Widget */
.featured-projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-project-item {
    display: flex;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #333;
}

.featured-project-item:last-child {
    border-bottom: none;
}

.featured-project-thumb {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    overflow: hidden;
    border: 1px solid #333;
}

.featured-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-project-content {
    flex: 1;
    min-width: 0;
}

.featured-project-title {
    margin: 0 0 3px 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

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

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

.featured-project-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: #999;
}

.featured-project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-project-meta i {
    color: #d4af37;
    width: 10px;
    text-align: center;
    font-size: 0.65rem;
}

/* Recent Projects Widget */
.recent-projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-project-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

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

.recent-project-link {
    display: flex;
    gap: 8px;
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.recent-project-link:hover {
    color: #d4af37;
}

.recent-project-thumb {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid #333;
}

.recent-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-project-title {
    color: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 2px 0;
}

.recent-project-date {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-project-date i {
    font-size: 0.65rem;
}

/* Project Stats Widget */
.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    text-align: center;
    padding: 6px;
    border: 1px solid #333;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact CTA Widget */
.widget-contact-cta {
    text-align: center;
}

.cta-icon {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cta-title {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.cta-description {
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.cta-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.cta-buttons .button {
    padding: 5px 10px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.cta-buttons .button.primary {
    background: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
}

.cta-buttons .button.primary:hover {
    background: #b8860b;
    border-color: #b8860b;
}

.cta-buttons .button.secondary {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.cta-buttons .button.secondary:hover {
    background: #d4af37;
    color: #000;
}

/* Newsletter Widget */
.newsletter-content p {
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.newsletter-form .form-group {
    display: flex;
    gap: 6px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 5px 6px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    font-size: 0.7rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-form .button {
    padding: 5px 8px;
    font-size: 0.7rem;
    background: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.newsletter-form .button:hover {
    background: #b8860b;
    border-color: #b8860b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wood-projects-sidebar .widget {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .wood-projects-sidebar .widget-title {
        font-size: 0.85rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wood-projects-sidebar .widget {
        padding: 8px;
    }
    
    .featured-project-item {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-project-thumb {
        width: 60px;
        height: 60px;
        margin: 0 auto 6px;
    }
}