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

/* Archive Header */
.archive-header {
    background: #000;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #4c4221;
    text-align: center;
}

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

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

/* Simple Blog Post Card */
.blog-post-card {
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid #d4af37;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #d4af37;
}

.blog-post-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail */
.blog-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.post-thumbnail-link {
    display: block;
    height: 100%;
}

/* Content */
.blog-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.blog-post-title {
    margin: 0;
    font-size: 14px;
    font-weight: 300 !important;
    line-height: 1.4;
    flex-grow: 1;
}

.blog-post-title a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Post Meta */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.85rem;
}

.blog-post-meta i {
    color: #d4af37;
    font-size: 0.8rem;
}

.blog-post-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-meta a:hover {
    color: #d4af37;
}

/* Post Excerpt */
.blog-post-excerpt {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0;
    flex-grow: 1;
}

/* Post Actions */
.blog-post-actions {
    margin-top: 20px;
    padding-top: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4af37;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
}

.read-more-btn:hover {
    background: transparent;
    color: #d4af37;
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* List Layout */
.blog-post-list {
    margin-bottom: 20px;
}

.blog-post-list .blog-post-card-inner {
    flex-direction: row;
    align-items: stretch;
}

.blog-post-list .blog-post-thumbnail {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.blog-post-list .blog-post-content {
    padding: 25px;
}

.blog-post-list .blog-post-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.blog-post-list .blog-post-meta {
    margin: 10px 0;
}

.blog-post-list .blog-post-excerpt {
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-list .blog-post-actions {
    margin-top: auto;
    padding-top: 15px;
}

/* Grid Layout */
.blog-post-grid .blog-post-thumbnail {
    height: 250px;
}

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

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

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

.filter-group label {
    font-weight: 600;
    color: #d4af37;
    min-width: 80px;
    white-space: nowrap;
}
.blog-archive-controls {
    display: flex;
    justify-content: space-between;
}

.blog-post-meta {
    font-size: 12px;
    display: flex;
    column-gap: 11px;
    margin: 9px 0px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 15px;
}

/* Mobile: 1 column layout */
@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 20px;
    }
}

.filter-group select {
padding: 5px 5px;
    border: 1px solid #d4af37;
    background: #000;
    color: #d4af37;
    min-width: 135px;
    font-size: 13px;
}

.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;
}

.layout-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.layout-label {
    font-weight: 600;
    color: #d4af37;
    white-space: nowrap;
}

.layout-btn {
    padding: 8px 12px;
    border: 1px solid #d4af37;
    background: #000;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-btn:hover {
    background: #d4af37;
    color: #000;
}

.layout-btn.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* Results Info */
.blog-results-info {
    margin-bottom: 20px;
    text-align: center;
}

.results-count {
    color: #d4af37;
    font-size: 14px;
    margin: 0;
}

/* Blog Container */
.blog-container {
    margin-bottom: 40px;
}

.blog-content.row {
    margin: 0 -15px;
}

.blog-content .col {
    padding: 0 15px;
}

/* Blog Sidebar Styles */
.blog-sidebar {
    padding: 20px 0;
}

.blog-sidebar .widget {
    background: #000;
    border: 1px solid #d4af37;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

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

.blog-sidebar .widget-content {
    padding: 20px;
    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;
}

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

.blog-categories-list li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.blog-categories-list li:last-child {
    border-bottom: none;
}

.blog-categories-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-categories-list .category-link:hover,
.blog-categories-list .current-cat .category-link {
    color: #b8860b;
    padding-left: 10px;
}

.blog-categories-list .category-count {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

.blog-categories-list .current-cat .category-count {
    background: #d4af37;
    color: #000;
}

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

.recent-post-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

.recent-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.recent-post-link:hover .recent-post-title {
    color: #b8860b;
}

.recent-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.8);
}

.recent-post-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.recent-post-meta i {
    font-size: 10px;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

.popular-post-rank {
    background: #d4af37;
    color: #000;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-post-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.popular-post-link:hover .popular-post-title {
    color: #b8860b;
}

.popular-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.8);
}

.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.popular-post-meta i {
    font-size: 10px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.tag-link:hover,
.tag-link.current {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

.tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    font-size: 10px;
}

/* Archive Links Widget */
.archive-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-link-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.archive-link-item:last-child {
    border-bottom: none;
}

.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-link:hover {
    color: #b8860b;
    padding-left: 10px;
}

.archive-count {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Blog Stats Widget */
.blog-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.2);
}

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

.stat-label {
    font-size: 12px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Newsletter Widget */
.newsletter-content p {
    color: #d4af37;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d4af37;
    border-right: none;
    font-size: 14px;
    outline: none;
    color: #d4af37;
    background: #000;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(212, 175, 55, 0.7);
}

.newsletter-form input[type="email"]:focus {
    border-color: #b8860b;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.newsletter-submit {
    padding: 10px 15px;
    background: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

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

.newsletter-privacy {
    color: rgba(212, 175, 55, 0.8);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.newsletter-privacy i {
    color: #d4af37;
    font-size: 10px;
}

/* Social Follow Widget */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #d4af37;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #d4af37;
    background: #000;
}

.social-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link.facebook,
.social-link.twitter,
.social-link.instagram,
.social-link.youtube,
.social-link.linkedin {
    background: #000;
    border-color: #d4af37;
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Grid Layout Specific */
.grid-layout .blog-content .col {
    margin-bottom: 30px;
}

/* List Layout Specific */
.list-layout .blog-content .col {
    margin-bottom: 20px;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #000;
    border: 2px dashed #d4af37;
}

.blog-empty i {
    color: #d4af37;
    margin-bottom: 20px;
}

.blog-empty h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.blog-empty p {
    color: #d4af37;
    margin-bottom: 25px;
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #000;
    color: #d4af37;
    text-decoration: none;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #d4af37;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .layout-controls {
        margin-left: 0;
        justify-content: center;
    }
    
    .blog-post-list .blog-post-card-inner {
        flex-direction: column;
    }
    
    .blog-post-list .blog-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .blog-post-list .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-list .blog-post-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .archive-header {
        padding: 30px 0;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .blog-filters {
        padding: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-group label {
        min-width: auto;
    }
    
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .blog-post-content {
        padding: 15px;
    }
    
    .blog-post-title {
        font-size: 1.2rem;
    }
    
    .blog-post-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .blog-post-meta span {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .blog-post-excerpt {
        font-size: 0.85rem;
        margin: 10px 0;
    }
    
    .read-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .blog-post-actions {
        margin-top: 15px;
        padding-top: 10px;
    }
}

/* Print Styles */
@media print {
    .blog-filters,
    .layout-controls,
    .blog-pagination {
        display: none;
    }
    
    .blog-post-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .blog-post-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blog-post-card {
        border: 3px solid #000;
    }
    
    .blog-post-title a {
        color: #000;
    }
    
    .blog-post-title a:hover {
        color: #000;
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .blog-post-card,
    .blog-post-thumbnail img,
    .layout-btn,
    .blog-post-title a {
        transition: none;
    }
    
    .blog-post-card:hover {
        transform: none;
    }
    
    .blog-post-card:hover .blog-post-thumbnail img {
        transform: none;
    }
}