/* ═══════════════════════════════════════════
   2x3 TRENDING GRID LAYOUT
   ═══════════════════════════════════════════ */

/* 2x3 Grid Container */
.trending-grid-2x3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Left Column: 2 Featured Cards */
.trending-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Right Column: 3 Small Cards */
.trending-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ═══════════════════════════════════════════
   FEATURED CARDS (Left, 2 cards) - SAME AS RIGHT
   ═══════════════════════════════════════════ */

.trending-featured-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trending-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.12);
}

.trending-featured-card .featured-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.trending-featured-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.trending-featured-card .featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.3);
}

/* Numbered Badges - Same size for all cards */
.trending-badge-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.badge-icon {
    color: white;
    font-size: 1rem;
    font-weight: 800;
}

.trending-featured-card .featured-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trending-featured-card .featured-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.trending-featured-card .featured-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-featured-card .featured-excerpt {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-featured-card .featured-meta {
    display: flex;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.trending-featured-card .featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ═══════════════════════════════════════════
   SMALL CARDS (Right, 3 cards)
   ═══════════════════════════════════════════ */

.trending-small-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trending-small-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.12);
}

.trending-small-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.trending-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-small-card:hover .trending-small-image img {
    transform: scale(1.1);
}

.small-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.3);
}

/* Numbered Badges - Small (for right cards) */
.trending-badge-small {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.trending-small-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.small-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.trending-small-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════ */

@media (max-width: 1200px) {
    .trending-grid-2x3 {
        grid-template-columns: 1fr;
    }

    .trending-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .trending-right {
        grid-template-columns: 1fr;
    }

    .trending-featured-card .featured-image {
        height: 180px;
    }

    .trending-small-image {
        height: 160px;
    }
}
