/* painting-share.css - SNS共有UI（Share Loop）
   ブランド構造「Painting（絵画）」
   分割元: style.css @layer components セクション */

@layer components {

    /* ── Phase 2: Share Loop (旧5th @layer components, 統合) ── */

    .recipe-share {
        text-align: center;
        border-top: 1px solid var(--color-sub);
        padding: 3rem 1rem;
        margin: 3rem 0;
    }

    .recipe-share-message {
        font-family: var(--font-base);
        font-size: var(--fs-lg);
        font-weight: 400;
        letter-spacing: 0.05em;
        line-height: 2.0;
        color: var(--text-color);
        margin-bottom: 2rem;
    }

    .recipe-share-hashtag {
        font-family: var(--font-ui);
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--color-accent);
    }

    .recipe-share-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .recipe-share-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: transparent;
        border: 1px solid var(--color-sub);
        border-radius: var(--radius-pill);
        font-size: var(--fs-sm);
        color: var(--text-color);
        padding: 0.5rem 1.25rem;
        min-height: 44px;
        /* text-transform: lowercaseは共通スタイルで適用。英語ラベル（instagram, x, line）に効果 */
    }

    .recipe-share-btn:hover {
        background: var(--hover-accent-bg);
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

    .recipe-share-btn:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    .recipe-share-icon {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
    }

    /* X アイコンは fill ベース */
    .recipe-share-btn[data-share="x"] .recipe-share-icon {
        fill: currentColor;
        stroke: none;
    }

    /* LINE アイコンは fill ベース */
    .recipe-share-btn[data-share="line"] .recipe-share-icon {
        fill: currentColor;
        stroke: none;
    }

    /* コピー成功フィードバック */
    .recipe-share-btn[data-copied="true"] span {
        color: var(--color-accent);
    }

    /* デスクトップ */
    @media (min-width: 768px) {
        .recipe-share {
            padding: 4rem 1.5rem;
            margin: 4rem 0;
        }

        .recipe-share-actions {
            gap: 1rem;
        }

        .recipe-share-btn {
            padding: 0.75rem 1.25rem;
            font-size: var(--fs-base);
        }
    }

}
