/* andW News - リストレイアウト */

.andw-news-wrapper.andw-news-layout-list {
    margin: 0;
    padding: 0;
}

.andw-news-list {
    margin-bottom: 20px;
}

.andw-news-item {
    border-bottom: 1px solid #e1e1e1;
    padding: 8px 0;
    margin: 0;
}

.andw-news-item:last-child {
    border-bottom: none;
}

.andw-news-item--pinned {
    background-color: #fff7e6;
    border-left: 3px solid #f57c00;
    padding-left: 12px;
}

/* メタ行: 日付 + カテゴリーバッジ 横並び */
.andw-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3px;
}

.andw-news-date {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* タイトル行 */
.andw-news-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.andw-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.andw-news-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* カテゴリーバッジ */
.andw-category {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.6;
}

/* カテゴリー別の色設定 */
.andw-category-news {
    background-color: #e3f2fd;
    color: #1976d2;
}

.andw-category-event {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.andw-category-info {
    background-color: #e8f5e8;
    color: #388e3c;
}

.andw-category-important {
    background-color: #ffebee;
    color: #d32f2f;
}

.andw-category-notice {
    background-color: #fff3e0;
    color: #f57c00;
}

/* デフォルトカテゴリー色 */
.andw-category:not([class*="andw-category-"]) {
    background-color: #f0f0f0;
    color: #666;
}

/* andw-badge プラグインのNEWバッジをブロック内で非表示 */
.andw-news-wrapper [class*="andw-badge"],
.andw-news-wrapper .andw-badge {
    display: none !important;
}

.andw-news-empty,
.andw-news-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.andw-news-error {
    background: #ffeaea;
    border-color: #ff6b6b;
    color: #c92a2a;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .andw-news-item {
        padding: 6px 0;
    }

    .andw-news-title {
        font-size: 13px;
    }
}
