/**
 * Top Viewed Posts Styles
 *
 * @package Custom_Top_Post
 */

/* Widget wrapper with background */
.top-posts-widget {
    background: #f5f5f5 !important;
    padding: 20px !important;
    margin: 0 !important;
}

/* Title styling */
.top-posts-title {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 22px !important;
}

/* Main list container */
.top-posts-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.top-posts-list li {
    margin: 0 !important;
    padding: 12px 0 !important;
    border: none !important;
}

/* Wrapper for each post */
.sideBarWrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 0 !important;
}

/* Post number */
span.post-number {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.2;
    width: 60px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

/* Content wrapper */
.flexSidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

/* Post title link */
.flexSidebar a {
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    color: #333 !important;
    transition: color 0.3s ease;
    text-align: left;
    display: block;
}

.flexSidebar a:hover {
    color: #000 !important;
}

/* Post meta (categories and date) */
.post-meta {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.8) !important;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.post-meta a {
    font-size: 11px !important;
    text-decoration: none !important;
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    span.post-number {
        font-size: 30px;
        min-width: 40px;
    }

    .sideBarWrapper {
        gap: 10px;
    }

    .flexSidebar a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    span.post-number {
        font-size: 24px;
        min-width: 35px;
    }

    .post-meta {
        font-size: 11px;
    }
}
