/* ================================================================
   HST Block Styles  –  Front-end & Block Editor
   Loaded via wp_enqueue_scripts (front) + enqueue_block_editor_assets
   ================================================================ */

/* ── Paragraph: ⚠ 注意書き（赤枠） ──────────────────────────────── */
.is-style-hst-warning {
    border-left: 4px solid #ef4444 !important;
    background-color: #fef2f2;
    padding: 1rem 1.25rem !important;
    border-radius: 0 6px 6px 0;
    color: #991b1b;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Paragraph: 💡 補足（青枠） ──────────────────────────────────── */
.is-style-hst-supplement {
    border-left: 4px solid #3b82f6 !important;
    background-color: #eff6ff;
    padding: 1rem 1.25rem !important;
    border-radius: 0 6px 6px 0;
    color: #1e40af;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Paragraph: ✨ 重要ポイント（金枠） ──────────────────────────── */
.is-style-hst-point {
    border-left: 4px solid #f59e0b !important;
    background-color: #fffbeb;
    padding: 1rem 1.25rem !important;
    border-radius: 0 6px 6px 0;
    color: #92400e;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Heading: セクション見出し ───────────────────────────────────── */
.is-style-hst-section {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.4rem;
    letter-spacing: 0.12em;
}

/* ── List: ✅ チェックリスト ─────────────────────────────────────── */
.is-style-hst-check {
    list-style: none !important;
    padding-left: 0 !important;
}
.is-style-hst-check li,
.is-style-hst-check .wp-block-list-item {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.45rem;
}
.is-style-hst-check li::before,
.is-style-hst-check .wp-block-list-item::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* ── List: ⚠ 注意リスト（赤） ──────────────────────────────────── */
.is-style-hst-caution {
    list-style: none !important;
    padding-left: 0 !important;
}
.is-style-hst-caution li,
.is-style-hst-caution .wp-block-list-item {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.45rem;
    color: #991b1b;
}
.is-style-hst-caution li::before,
.is-style-hst-caution .wp-block-list-item::before {
    content: '⚠';
    position: absolute;
    left: 0;
}

/* ================================================================
   Block Pattern Styles
   ================================================================ */

/* ── Q&A ─────────────────────────────────────────────────────────── */
.hst-qa-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem !important;
    margin: 1rem 0;
}
.hst-qa-q {
    font-weight: 700;
    color: #0f172a;
    border-left: 3px solid #0f172a;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem !important;
}
.hst-qa-a {
    color: #475569;
    padding-left: 0.75rem;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Checklist Wrap ──────────────────────────────────────────────── */
.hst-checklist-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem !important;
    margin: 1rem 0;
}
.hst-checklist-title {
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem !important;
}

/* ── Important Box ───────────────────────────────────────────────── */
.hst-important-box {
    background: #fffbeb;
    border: 2px solid #f59e0b !important;
    border-radius: 8px;
    padding: 1.25rem 1.5rem !important;
    margin: 1.5rem 0;
}
.hst-important-label {
    font-size: 0.7rem !important;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b45309 !important;
    margin-bottom: 0.4rem !important;
    margin-top: 0 !important;
}
.hst-important-box h4.wp-block-heading {
    color: #78350f;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}
.hst-important-box p:last-child {
    margin-bottom: 0 !important;
    color: #92400e;
}

/* ── Before / After ──────────────────────────────────────────────── */
.hst-ba-wrap {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem 1.5rem !important;
    margin: 1.5rem 0;
}
.hst-ba-title {
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem !important;
}
/* Keep both columns equal height with object-fit */
.hst-ba-img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.hst-ba-img figcaption.wp-element-caption {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
    color: #64748b;
}
.hst-ba-wrap .wp-block-columns {
    gap: 4px !important;
    margin-bottom: 0.75rem;
}
.hst-ba-desc {
    color: #475569;
    font-size: 0.875rem;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* ================================================================
   Admin-only: spinning dashicon for translate button loading state
   (harmless on front-end – class is only used in WP admin)
   ================================================================ */
@keyframes hst-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.hst-spin {
    display: inline-block;
    animation: hst-spin 0.8s linear infinite;
}
