/**
 * Bento Grid Layout - Magazine Style
 * Modern news grid with featured article and sidebar items
 */

/* ============================================
   BENTO SECTION CONTAINER
   ============================================ */
.bento-section {
    margin-bottom: 2.5rem;
    padding: 0;
}

/* Category Header */
.bento-section .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent, #1a1a2e);
}

.bento-section .category-name {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: #1a1a2e;
}

.bento-section .category-more,
.bento-section .category-more:link,
.bento-section .category-more:visited,
.bento-section .category-more:hover,
.bento-section .category-more:active,
.bento-section .category-header a.category-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

.bento-section .category-more:hover {
    color: #e74c3c;
}

/* ============================================
   BENTO GRID LAYOUT
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1rem;
}

/* ============================================
   FEATURED ARTICLE (Left - Big)
   ============================================ */
.bento-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bento-featured .featured-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bento-featured .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-featured:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.bento-featured .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.bento-featured .news-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.bento-featured .news-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.bento-featured .news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bento-featured .news-title a:hover {
    color: #f0f0f0;
}

.bento-featured .news-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SIDEBAR ITEMS (Right - Small Stack)
   ============================================ */
.bento-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bento-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.bento-item .item-image-wrapper {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.bento-item .item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-item:hover .item-image-wrapper img {
    transform: scale(1.08);
}

.bento-item .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.bento-item .news-category a {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e74c3c;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.bento-item .news-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-item .news-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bento-item .news-title a:hover {
    color: #e74c3c;
}

.bento-item .news-meta {
    font-size: 0.75rem;
    color: #888;
}

/* ============================================
   CATEGORY COLOR BADGES
   ============================================ */
/* Celebrity - Purple */
.bento-section[data-category="celebrity"] .category-header {
    border-bottom-color: #9b59b6;
}

.bento-section[data-category="celebrity"] .bento-featured .news-category a,
.bento-section[data-category="celebrity"] .bento-item .news-category a {
    background: #9b59b6;
    color: #fff;
}

/* Culture - Blue */
.bento-section[data-category="culture"] .category-header {
    border-bottom-color: #3498db;
}

.bento-section[data-category="culture"] .bento-featured .news-category a,
.bento-section[data-category="culture"] .bento-item .news-category a {
    background: #3498db;
    color: #fff;
}

/* Movies - Red */
.bento-section[data-category="movies"] .category-header {
    border-bottom-color: #e74c3c;
}

.bento-section[data-category="movies"] .bento-featured .news-category a,
.bento-section[data-category="movies"] .bento-item .news-category a {
    background: #e74c3c;
    color: #fff;
}

/* Music - Green */
.bento-section[data-category="music"] .category-header {
    border-bottom-color: #27ae60;
}

.bento-section[data-category="music"] .bento-featured .news-category a,
.bento-section[data-category="music"] .bento-item .news-category a {
    background: #27ae60;
    color: #fff;
}

/* Sport - Orange */
.bento-section[data-category="sport"] .category-header {
    border-bottom-color: #f39c12;
}

.bento-section[data-category="sport"] .bento-featured .news-category a,
.bento-section[data-category="sport"] .bento-item .news-category a {
    background: #f39c12;
    color: #fff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .bento-grid {
        gap: 0.875rem;
    }

    .bento-featured .news-title {
        font-size: 1.15rem;
    }

    .bento-item .item-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .bento-item .news-title {
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-featured .featured-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .bento-featured .featured-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .bento-featured .news-title {
        font-size: 1.1rem;
    }

    .bento-sidebar {
        gap: 0.75rem;
    }

    .bento-item {
        padding: 0.75rem;
    }

    .bento-item .item-image-wrapper {
        width: 75px;
        height: 75px;
    }

    .bento-featured {
        border-radius: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .bento-section {
        margin-bottom: 2rem;
    }

    .bento-section .category-name {
        font-size: 1.1rem;
    }

    .bento-featured .news-title {
        font-size: 1rem;
    }

    .bento-item .item-image-wrapper {
        width: 70px;
        height: 70px;
    }

    .bento-item .news-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}