/* ============================================
   TENDANCES.CSS — Trending categories section
   ============================================ */

/* --- Section Header --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.see-more {
    font-size: 13px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.see-more:hover {
    text-decoration: underline;
}

/* --- Grid Layout --- */
.tendances-grid {
    display: grid;
    grid-template-columns: 200px repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}

/* --- Featured Card --- */
.tendance-featured {
    background: linear-gradient(160deg, #ff6e14 0%, #e8003d 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.tendance-featured h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.tendance-featured .t-emoji {
    font-size: 36px;
    margin-top: 8px;
}

/* --- Regular Cards --- */
.tendance-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    min-height: 160px;
    background: var(--border-light);
}

.tendance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.tendance-bg {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

/* --- Card Color Variants --- */
.t1 { background: linear-gradient(135deg, #ffe0f0, #ffb3d1); }
.t2 { background: linear-gradient(135deg, #e0f0ff, #b3d4ff); }
.t3 { background: linear-gradient(135deg, #e0ffe8, #b3f0c4); }
.t4 { background: linear-gradient(135deg, #fff3e0, #ffd699); }

/* --- Card Label --- */
.tendance-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    padding: 20px 14px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE — Tablet (768px) & Mobile (480px)
   ============================================ */
@media (max-width: 768px) {
    .tendances-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tendances-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tendance-featured {
        grid-column: 1 / -1;
    }

    .section-title {
        font-size: 16px;
    }

    .tendance-bg {
        font-size: 48px;
        min-height: 120px;
    }

    .tendance-featured {
        min-height: 120px;
    }
}
