/* ==============================================
   Feed List Shortcode v2.0 - CSS
   ams-feed-display スタイルを統合
   ============================================== */

/* --- カードグリッド --- */
.ams-feed-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

/* --- カードアイテム --- */
.ams-feed-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.ams-feed-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* --- サムネイル --- */
.ams-feed-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.ams-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ams-feed-item:hover .ams-feed-thumb img {
    transform: scale(1.05);
}

/* --- ボディ --- */
.ams-feed-body {
    padding: 10px 12px;
}

/* --- タイトル --- */
.ams-feed-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.45;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}
.ams-feed-title:hover {
    color: #0073aa;
}

/* --- メタ情報（サイト名・日付） --- */
.ams-feed-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: .75rem;
    color: #888;
    gap: 4px;
}
.ams-feed-site {
    color: #0073aa;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ams-feed-site:hover {
    text-decoration: underline;
}
.ams-feed-date {
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- 空メッセージ --- */
.ams-feed-empty {
    color: #888;
    font-style: italic;
}

/* --- 単一URLリスト表示（show_image=false 時） --- */
.ams-feed-list-simple {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ams-feed-list-simple li {
    border-bottom: 1px solid #eee;
    padding: 8px 4px;
}
.ams-feed-list-simple li:last-child {
    border-bottom: none;
}
.ams-feed-list-simple a {
    color: #222;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.4;
}
.ams-feed-list-simple a:hover {
    color: #0073aa;
    text-decoration: underline;
}
