/* ===================================
   Trending Recipes Section Styles
   =================================== */

.trending-recipes-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 2rem 1rem;
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
}

.trending-recipes-section h2 {
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: #333;
}

/* Recipe Grid Layout */
.recipe-grid.trending-recipes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Recipe Card */
.trending-recipes .recipe-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.trending-recipes .recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.trending-recipes .recipe-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Recipe Thumbnail */
.trending-recipes .recipe-thumbnail {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.trending-recipes .recipe-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Trending Badge */
.trending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    z-index: 2;
}

/* Recipe Info Section */
.trending-recipes .recipe-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trending-recipes .recipe-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.trending-recipes .recipe-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Recipe Stats */
.trending-recipes .recipe-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.trending-recipes .views-badge,
.trending-recipes .views-today {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.trending-recipes .views-today {
    background: #fff3e0;
    color: #e65100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trending-recipes-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0 2rem 0;
    }

    .trending-recipes-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .recipe-grid.trending-recipes {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .trending-recipes .recipe-info {
        padding: 0.875rem;
    }

    .trending-recipes .recipe-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .recipe-grid.trending-recipes {
        grid-template-columns: 1fr;
    }

    .trending-recipes-section {
        border-radius: 8px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .trending-recipes-section {
        background: linear-gradient(135deg, #2a1f1f 0%, #3a2020 100%);
    }

    .trending-recipes-section h2 {
        color: #f0f0f0;
    }

    .trending-recipes .recipe-card {
        background: #333;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .trending-recipes .recipe-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .trending-recipes .recipe-info h3 {
        color: #f0f0f0;
    }

    .trending-recipes .recipe-excerpt {
        color: #bbb;
    }

    .trending-recipes .views-badge {
        background: #444;
        color: #ccc;
    }

    .trending-recipes .views-today {
        background: #4a3520;
        color: #ffa726;
    }
}
