/* Main wrapper */
.ptp-trending-wrapper {
    background: #ffffff;
    padding: 0;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header */
.ptp-header {
    margin-bottom: 20px;
}

.ptp-widget-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    letter-spacing: -0.3px;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Tabs Container - Simple text tabs that fit horizontally */
.ptp-tabs-container {
    width: 100%;
    margin-bottom: 25px;
}

.ptp-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    background: #ffffff;
}

.ptp-tab-button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    margin-right: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #888888;
    transition: color 0.2s ease;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
}

.ptp-tab-button:last-child {
    margin-right: 0;
}

.ptp-tab-button:hover {
    color: #000000;
}

.ptp-tab-button.active {
    color: #000000;
    font-weight: 700;
}

.ptp-tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
}

/* Tab Content */
.ptp-tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.ptp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Posts List */
.ptp-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Post Item */
.ptp-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.ptp-post-item:last-child {
    border-bottom: none;
}

.ptp-post-item:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: 4px;
}

/* Thumbnail */
.ptp-post-thumbnail {
    flex-shrink: 0;
}

.ptp-post-thumbnail a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.ptp-post-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.ptp-post-thumbnail a:hover img {
    transform: scale(1.03);
}

/* Post Content */
.ptp-post-content {
    flex: 1;
    min-width: 0;
}

/* Categories - GREEN */
.ptp-post-categories {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ptp-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #00a84c;
    background: transparent;
    padding: 2px 0;
    margin: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ptp-category:hover {
    color: #fff !important;
    background: #00a84c !important;
    padding: 2px 8px;
    border-radius: 3px;
    margin: -2px -8px;
}

/* Post Title - BLACK */
.ptp-post-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.ptp-post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ptp-post-title a:hover {
    color: #00a84c;
    text-decoration: underline;
}

/* No Posts */
.ptp-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Loading */
.ptp-loading {
    text-align: center;
    padding: 40px;
}

.ptp-loading:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #f0f0f0;
    border-top-color: #00a84c;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE - TABS FIT HORIZONTALLY
   ============================================ */
@media (max-width: 768px) {
    .ptp-widget-title {
        font-size: 20px;
    }
    
    .ptp-tab-button {
        font-size: 14px;
        margin-right: 25px;
    }
    
    .ptp-post-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .ptp-post-title {
        font-size: 13px;
    }
    
    .ptp-category {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ptp-widget-title {
        font-size: 18px;
    }
    
    /* Make tabs fit horizontally - equal spacing */
    .ptp-tabs {
        justify-content: space-between;
        gap: 0;
    }
    
    .ptp-tab-button {
        margin-right: 0;
        font-size: 13px;
        padding: 0;
        flex: 1;
        text-align: center;
    }
    
    .ptp-post-thumbnail img {
        width: 55px;
        height: 55px;
    }
    
    .ptp-post-title {
        font-size: 12px;
    }
    
    .ptp-category {
        font-size: 9px;
    }
    
    .ptp-post-item {
        gap: 12px;
        padding: 12px 0;
    }
    
    .ptp-post-categories {
        gap: 6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .ptp-tab-button {
        font-size: 12px;
    }
    
    .ptp-post-thumbnail img {
        width: 50px;
        height: 50px;
    }
    
    .ptp-post-title {
        font-size: 11px;
    }
}

/* Ensure sidebar compatibility */
.widget-area .ptp-trending-wrapper,
.sidebar .ptp-trending-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}