/**
 * Archive Pages Styles
 * Category, Tag, Author, Search pages
 *
 * @package TBC_News
 */

/* ===================================
   ARCHIVE HEADER
   =================================== */

.archive-header {
    background: linear-gradient(135deg, var(--tbc-secondary) 0%, var(--tbc-primary) 100%) ;
    color: #ffffff;
    padding: 60px 0;
    margin-bottom: 48px;
}

.archive-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.archive-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px;
}

.archive-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 15px;
}

.archive-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Author Archive Specific */
.author-header {
    background: var(--tbc-text);
}

.author-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.author-header-avatar {
    flex-shrink: 0;
}

.author-header-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.author-header-content {
    flex: 1;
}

.author-social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.author-social-links a {
    color: #ffffff;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.author-social-links a:hover {
    opacity: 0.7;
}

/* ===================================
   ARCHIVE FILTERS
   =================================== */

.archive-filters {
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.archive-filters-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}


.archive-count {
    font-size: 15px;
    color: #767676;
   
}

.archive-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.archive-sort label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tbc-text);
}

.archive-sort select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ===================================
   ARCHIVE CONTENT
   =================================== */

.archive-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.archive-content.list-view {
    grid-template-columns: 1fr;
}

/* Excerpt Card for Archives */
.excerpt-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.excerpt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.excerpt-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.excerpt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.excerpt-card:hover .excerpt-card-image img {
    transform: scale(1.05);
}

.excerpt-card-content {
    padding: 24px;
}

.excerpt-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #767676;
}

.excerpt-card-title {
    margin: 0 0 12px;
}

.excerpt-card-title a {
    color: var(--tbc-text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.excerpt-card-title a:hover {
    color: var(--tbc-secondary);
}

.excerpt-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 10px;
}

.excerpt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.excerpt-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.excerpt-card-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.excerpt-card-readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--tbc-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.excerpt-card-readmore:hover {
    gap: 10px;
}

/* List View Styles */
.excerpt-card.list-style {
    display: flex;
    gap: 24px;
}

.excerpt-card.list-style .excerpt-card-image {
    width: 300px;
    flex-shrink: 0;
}

.excerpt-card.list-style .excerpt-card-content {
    flex: 1;
    padding: 20px 20px 20px 0;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 64px 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--tbc-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: var(--tbc-body-bg);
    border-color: var(--tbc-text);
}

.pagination .page-numbers.current {
    background: var(--tbc-text);
    color: #ffffff;
    border-color: var(--tbc-text);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===================================
   SEARCH RESULTS
   =================================== */

.search-header {
    background: var(--tbc-text);
    color: #ffffff;
}

.search-no-results {
    text-align: center;
    padding: 80px 20px;
}

.search-no-results h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.search-no-results p {
    font-size: 18px;
    color: #767676;
    margin-bottom: 32px;
}

.search-suggestions {
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestions h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    margin-bottom: 12px;
}

.search-suggestions a {
    color: var(--tbc-secondary);
    text-decoration: none;
    font-size: 16px;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* ===================================
   404 PAGE
   =================================== */

.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404-number {
    font-size: 120px;
    font-weight: 900;
    color: var(--tbc-text);
    line-height: 1;
    margin-bottom: 24px;
}

.error-404-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
}

.error-404-text {
    font-size: 18px;
    color: #767676;
    margin-bottom: 32px;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.error-404-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--tbc-text);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.error-404-button:hover {
    background: #333333;
    transform: translateY(-2px);
}

.error-404-button.secondary {
    background: #ffffff;
    color: var(--tbc-text);
    border: 2px solid var(--tbc-text);
}

.error-404-button.secondary:hover {
    background: var(--tbc-body-bg);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .archive-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .archive-title {
        font-size: 40px;
    }
}
@media (max-width: 992px) {
    .archive-content {
        grid-template-columns:  1fr;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 40px 0;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .author-header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social-links {
        justify-content: center;
    }
    
    .archive-content {
        grid-template-columns: 2fr, 1fr;
    }
    
    .excerpt-card.list-style {
        flex-direction: column;
    }
    
    .excerpt-card.list-style .excerpt-card-image {
        width: 100%;
    }
    
    .excerpt-card.list-style .excerpt-card-content {
        padding: 24px;
    }
    
    .archive-filters-inner {
        flex-direction: column;
        align-items: flex-start;
    }

      /* Author page mobile fix */
    .author-header-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-header-content {
        width: 100%;
    }
    
    .author-social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .archive-content {
        grid-template-columns:  1fr;
    }
}

@media (max-width: 480px) {
    .error-404-number {
        font-size: 80px;
    }
    
    .error-404-title {
        font-size: 28px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}









@media (max-width: 1024px) {
    .articles-grid.grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid.grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 998px) {
    .articles-grid.grid-4-col,
    .articles-grid.grid-3-col,
    .articles-grid.grid-2-col {
        grid-template-columns:  1fr;
    }
    
    .articles-grid.grid-mixed {
        grid-template-columns:  1fr;
    }

}
@media (max-width: 768px) {
    .articles-grid.grid-4-col,
    .articles-grid.grid-3-col,
    .articles-grid.grid-2-col {
        grid-template-columns: 2fr, 1fr;
    }
    
    .articles-grid.grid-mixed {
        grid-template-columns: 2fr, 1fr;
    }

}
@media (max-width: 620px) {
    .articles-grid.grid-4-col,
    .articles-grid.grid-3-col,
    .articles-grid.grid-2-col {
        grid-template-columns:  1fr;
    }
    
    .articles-grid.grid-mixed {
        grid-template-columns: 1fr;
    }
    
  
}




