/**
 * CSS Styling for Core HTML Placeholder Mode (1core-mod/core-html-placeholder)
 * Chuẩn màu sắc ANM Block Design System: --wp--preset--color--surf-var, --wp--preset--color--pri
 */

.anm-core-html-placeholder-wrap {
    margin: 12px 0;
    padding: 16px 20px;
    background: var(--wp--preset--color--surf-var, #f3f4f6);
    border: 2px dashed var(--wp--preset--color--out-var, #cbd5e1);
    border-radius: var(--wpds-border-radius-lg, 8px);
    color: var(--wp--preset--color--pri, #1e293b);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.anm-core-html-placeholder-wrap:hover {
    border-color: #007cba;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.anm-core-html-placeholder-wrap.is-selected {
    border-color: #007cba;
    outline: 2px solid #007cba;
    outline-offset: 1px;
}

.anm-chp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.anm-chp-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anm-chp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #23282e;
    color: #00d084;
    font-weight: 700;
    font-size: 13px;
    font-family: monospace;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.anm-chp-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.anm-chp-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.anm-chp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.anm-chp-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.anm-chp-btn-edit:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.anm-chp-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 11px;
    color: #64748b;
}

.anm-chp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.anm-chp-badge--script { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.anm-chp-badge--style { color: #9333ea; border-color: #f3e8ff; background: #faf5ff; }
.anm-chp-badge--iframe { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; }
.anm-chp-badge--button { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }

.anm-chp-snippet {
    background: #1e1e1e;
    color: #9cdcfe;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 52px;
    overflow: hidden;
    position: relative;
    opacity: 0.9;
}

.anm-chp-snippet::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(to bottom, transparent, #1e1e1e);
}

