/**
 * Bando News Widgets CSS
 * Chosun/HKR-inspired news layouts (Bando variant)
 * Site 10: bando.news
 */

/* ===== Main Grid Layout (Chosun-style 3-column) ===== */

.bando-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.bando-main-grid__column {
    display: flex;
    flex-direction: column;
}

.bando-main-grid__column--featured {
    border-right: 1px solid #d0d0d0;
    padding-right: 20px;
}

.bando-main-grid__column--list {
    padding-left: 20px;
}

.bando-main-grid__column--list:last-child {
    border-left: 1px solid #d0d0d0;
}

/* Featured Article */
.bando-main-grid__featured {
    display: flex;
    flex-direction: column;
}

.bando-main-grid__featured-image {
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 4px;
}

.bando-main-grid__featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bando-main-grid__featured-image:hover img {
    transform: scale(1.05);
}

.bando-main-grid__featured-title a {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.bando-main-grid__featured-title a:hover {
    color: #c41e3a;
}

.bando-main-grid__featured-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.bando-main-grid__featured-meta {
    color: #888;
    font-size: 12px;
}

/* List Items */
.bando-main-grid__list-item {
    padding: 16px 0;
}

.bando-main-grid__list-item--first {
    padding-top: 0;
}

.bando-main-grid__list-content {
    display: flex;
    gap: 12px;
}

.bando-main-grid__list-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
}

.bando-main-grid__list-image--small {
    width: 80px;
    height: 60px;
}

.bando-main-grid__list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bando-main-grid__list-image:hover img {
    transform: scale(1.1);
}

.bando-main-grid__list-title {
    flex: 1;
    margin: 0;
}

.bando-main-grid__list-title a {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bando-main-grid__list-title a:hover {
    color: #c41e3a;
}

.bando-main-grid__separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 16px 0;
}

/* ===== Popular Posts Sidebar (HKR-style) ===== */

.bando-popular {
    background: #fff;
    padding: 20px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
}

.bando-popular__header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c41e3a;
}

.bando-popular__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.bando-popular__list {
    display: flex;
    flex-direction: column;
}

.bando-popular__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.bando-popular__item:first-child {
    padding-top: 0;
}

.bando-popular__rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
}

.bando-popular__rank--top {
    background-color: #c41e3a;
    color: #fff;
}

.bando-popular__rank--normal {
    background-color: #f5f5f5;
    color: #666;
}

.bando-popular__content {
    flex: 1;
}

.bando-popular__item-title {
    margin: 0;
}

.bando-popular__item-title a {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bando-popular__item-title a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.bando-popular__separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 12px 0;
}

/* ===== Related Posts Widget ===== */

.bando-related {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.bando-related__header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d0d0;
}

.bando-related__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.bando-related__list {
    display: flex;
    flex-direction: column;
}

.bando-related__item {
    padding: 12px 0;
}

.bando-related__item:first-child {
    padding-top: 0;
}

.bando-related__item-title {
    margin: 0 0 8px 0;
}

.bando-related__item-title a {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.bando-related__item-title a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.bando-related__meta {
    color: #888;
    font-size: 12px;
}

.bando-related__separator {
    height: 1px;
    background-color: #d0d0d0;
    margin: 12px 0;
}

/* ===== Responsive Design ===== */

@media (max-width: 1024px) {
    .bando-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .bando-main-grid__column:last-child {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #d0d0d0;
        padding-top: 20px;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .bando-main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bando-main-grid__column {
        border: none !important;
        padding: 0 !important;
    }
    
    .bando-main-grid__column + .bando-main-grid__column {
        border-top: 1px solid #d0d0d0;
        padding-top: 20px !important;
        margin-top: 20px;
    }
    
    .bando-main-grid__featured-title a {
        font-size: 20px;
    }
    
    .bando-main-grid__list-title a {
        font-size: 14px;
    }
    
    .bando-main-grid__list-image {
        width: 100px;
        height: 75px;
    }
    
    .bando-main-grid__list-image--small {
        width: 80px;
        height: 60px;
    }
}

