/**
 * SWELL記事自動生成 - フロントエンドCSS
 * 吹き出しブロックと箇条書きの装飾スタイル
 *
 * @package Swell_Article_Generator
 */

/* ============================================
   吹き出しブロック（筆者の独自見解用）
   ============================================ */
.swell-block-balloon {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 2em 0;
    padding: 0;
}

.swell-block-balloon__icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.swell-block-balloon__icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.swell-block-balloon__icon-name {
    display: block;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
}

.swell-block-balloon__body {
    flex: 1;
    position: relative;
}

.swell-block-balloon__body::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 16px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #e8f4fd transparent transparent;
}

.swell-block-balloon__text {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.95em;
    line-height: 1.8;
    color: #333;
    position: relative;
}

.swell-block-balloon__text p {
    margin: 0;
}

/* アイコン画像がない場合のデフォルトアバター */
.swell-block-balloon__icon:not(:has(img))::before {
    content: '💡';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 28px;
    border: 2px solid #e0e0e0;
}


/* ============================================
   箇条書きリストの装飾（囲い枠付き）
   ============================================ */

/* SWELLチェックアイコンリストの外枠装飾 */
.is-style-swell-icon-check {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 20px 24px 20px 20px !important;
    margin: 1.5em 0;
    list-style: none !important;
}

.is-style-swell-icon-check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    line-height: 1.7;
}

.is-style-swell-icon-check li:last-child {
    margin-bottom: 0;
}

.is-style-swell-icon-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

/* 番号付きリストの装飾 */
.entry-content ol.is-style-default,
.post_content ol.is-style-default {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 20px 24px 20px 44px !important;
    margin: 1.5em 0;
}

.entry-content ol.is-style-default li,
.post_content ol.is-style-default li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.entry-content ol.is-style-default li:last-child,
.post_content ol.is-style-default li:last-child {
    margin-bottom: 0;
}


/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 600px) {
    .swell-block-balloon {
        gap: 10px;
    }

    .swell-block-balloon__icon {
        width: 44px;
    }

    .swell-block-balloon__icon img,
    .swell-block-balloon__icon:not(:has(img))::before {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .swell-block-balloon__icon-name {
        font-size: 10px;
    }

    .swell-block-balloon__text {
        padding: 12px 14px;
        font-size: 0.9em;
    }

    .is-style-swell-icon-check {
        padding: 14px 16px 14px 14px !important;
    }
}