/* Tag Archive Professional Compact Styles */
.tag-archive-professional {
    background: #f5f5f5;
    padding: 20px 0 40px;
}

/* Compact Header */
.tag-header-compact {
    background: #fff;
    border-bottom: 3px solid #e74c3c;
    margin-bottom: 25px;
    padding: 20px 0;
}

.tag-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tag-icon {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tag-icon .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.tag-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.tag-meta {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-meta .separator {
    color: #bdc3c7;
}

/* Content Wrapper - Sidebar Layout */
.tag-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Posts List Compact */
.posts-list-compact {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

/* Post Item */
.post-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 20px;
    transition: background 0.2s ease;
}

.post-item:hover {
    background: #f8f9fa;
}

.post-item:last-child {
    border-bottom: none;
}

.post-inner {
    display: flex;
    gap: 20px;
}

/* Featured Post (First) */
.featured-post {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
}

.featured-post .post-inner {
    flex-direction: column;
}

.featured-post .post-thumb {
    width: 100%;
    height: auto;
}

.featured-post .post-thumb img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.featured-post .post-title {
    font-size: 24px;
}

/* Regular Posts */
.post-thumb {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumb img {
    transform: scale(1.05);
}

.post-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Details */
.post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #e74c3c;
}

.post-excerpt {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #95a5a6;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Sidebar */
.tag-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #e74c3c;
    color: #fff;
}

.tag-name {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.tag-link:hover .tag-name {
    color: #fff;
}

.tag-count {
    background: #fff;
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.popular-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-content h4 a:hover {
    color: #e74c3c;
}

.popular-date {
    font-size: 12px;
    color: #95a5a6;
}

/* Pagination */
.pagination-wrapper {
    padding: 25px 20px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.page-numbers .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.no-posts-found .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-posts-found h3 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.no-posts-found p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-home:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tag-content-wrapper {
        grid-template-columns: 1fr;
    }

    .tag-sidebar {
        order: -1;
    }

    .sidebar-widget {
        display: none;
    }

    .tags-widget {
        display: block;
    }

    .tags-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tag-link {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .tag-header-content {
        flex-direction: column;
        text-align: center;
    }

    .tag-title {
        font-size: 24px;
    }

    .post-inner {
        flex-direction: column;
    }

    .post-thumb {
        width: 100%;
        height: 200px;
    }

    .featured-post .post-thumb img {
        max-height: 250px;
    }

    .post-title {
        font-size: 16px;
    }

    .featured-post .post-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tag-archive-professional {
        padding: 10px 0 20px;
    }

    .post-item {
        padding: 15px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}