/**
 * Kolaras Hulchal - Dark-Navy Trending News Panel CSS
 *
 * @package Kolaras_Hulchal
 * @version 1.0.0
 */

/* 1. Trending Panel Main Container */
.kh-trending-panel {
    background-color: var(--kh-navy-main, #1C2541);
    border-radius: var(--kh-radius, 6px);
    padding: 1.25rem;
    box-shadow: var(--kh-shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. Header & Red Underline Accent */
.kh-trending-header {
    margin-bottom: 1rem;
}

.kh-trending-title {
    font-family: var(--kh-font-heading, 'Tiro Devanagari Hindi', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--kh-text-inverse, #FFFFFF);
    margin: 0;
}

.kh-header-underline {
    height: 3px;
    width: 45px;
    background-color: var(--kh-red-primary, #D90429);
    margin-top: 0.375rem;
    border-radius: 2px;
}

/* 3. Trending Ordered List */
.kh-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    justify-content: space-between;
}

.kh-trending-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 4. Red Number Rank Box */
.kh-trending-rank-box {
    background-color: var(--kh-red-primary, #D90429);
    color: var(--kh-text-inverse, #FFFFFF);
    font-weight: 800;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(217, 4, 41, 0.3);
}

/* 5. Thumbnail & Info Layout */
.kh-trending-media {
    flex-shrink: 0;
}

.kh-trending-thumb {
    width: 60px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.kh-trending-thumb-placeholder {
    width: 60px;
    height: 48px;
    background-color: var(--kh-navy-dark, #0B132B);
    border-radius: 4px;
}

.kh-trending-info {
    flex: 1;
    min-width: 0; /* Prevents text overflow flex glitch */
}

.kh-trending-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-trending-item-title a {
    color: var(--kh-text-inverse, #FFFFFF);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kh-trending-item-title a:hover {
    color: #F87171;
}

.kh-trending-meta {
    font-size: 0.75rem;
    color: var(--kh-text-light, #94A3B8);
}
