/* ========================================
   ARCHIVE PAGE STYLES
   ======================================== */

/* Archive Container */
.archive-container {
    padding: 2rem 0 3rem;
}

/* Posts Grid - Same style as related posts in single.php */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    border: none !important;
    outline: none !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none !important;
    outline: none !important;
}

/* Garantir que não apareça borda em nenhum estado */
.post-card:focus,
.post-card:active,
.post-card:visited {
    border: none !important;
    outline: none !important;
}

/* Post Thumbnail - Same style as related posts */
.post-thumbnail {
    overflow: hidden;
}

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

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

/* Post Content - Same style as related posts */
.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.post-categories {
    display: flex;
    gap: var(--space-2);
}

.post-category {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    font-weight: var(--font-medium);
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.post-date {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.post-actions {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.read-more svg {
    transition: transform var(--transition-fast);
}

.read-more:hover svg {
    transform: translateX(2px);
}

/* Archive styles now match single.php related posts exactly */

/* Archive Pagination */
.archive-pagination {
    margin-top: 3rem;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archive-pagination a,
.archive-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.archive-pagination a:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    color: var(--primary-color);
}

.archive-pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.archive-pagination .prev,
.archive-pagination .next {
    font-size: 0.9rem;
    gap: 0.5rem;
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--gray-900);
}

.no-posts-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Archive Sidebar */
.archive-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-50);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--gray-900);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.category-list li {
    margin: 0 0 0.5rem 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.category-list a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.current-category a {
    background: var(--gray-100);
    color: var(--primary-color);
    font-weight: 500;
}

.category-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

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

.recent-posts-list li {
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-50);
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-list a {
    display: block;
    text-decoration: none;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.recent-posts-list a:hover {
    color: var(--primary-color);
}

.recent-post-title {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-1);
    color: var(--gray-900);
}

.recent-post-date {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--gray-50);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.tag-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }

    .archive-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .archive-main {
        padding: 1.5rem 0 2rem;
    }

    .archive-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .archive-title {
        font-size: 2rem;
    }

    .archive-sidebar {
        position: static;
        order: -1;
    }

    .posts-grid {
        gap: 1.5rem;
    }

    .post-content {
        padding: 1.25rem;
    }

    .archive-pagination .nav-links {
        gap: 0.25rem;
    }

    .archive-pagination a,
    .archive-pagination .current {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .archive-main {
        padding: 1rem 0;
    }

    .archive-title {
        font-size: 1.75rem;
    }

    .archive-description {
        font-size: 1rem;
    }

    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .widget {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .archive-sidebar,
    .archive-pagination {
        display: none;
    }

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

    .post-card {
        box-shadow: none;
        border: 1px solid var(--black);
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .post-thumbnail {
        display: none;
    }
}

/* ========================================
   CATEGORY & TAG SPECIFIC STYLES (MINIMAL)
   ======================================== */

/* Apenas widgets específicos de category/tags se necessário */

