/**
 * BravesChat Block — Gutenberg Editor Styles
 *
 * Diseño inspirado en el panel admin de BravesChat (estilo Bentō)
 *
 * @package BravesChat
 */

/* ===== Wrapper del bloque ===== */
.wp-block-braves-chat-widget {
    margin: 0;
}

/* ===== Card principal ===== */
.braves-block-card {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    transition: box-shadow 150ms ease-in-out;
}

.braves-block-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Header ===== */
.braves-block-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.braves-block-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.braves-block-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #01B7AF 0%, #5DD5C7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.braves-block-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.braves-block-card__badge {
    font-size: 10px;
    font-weight: 700;
    color: #01B7AF;
    background: #e6fafa;
    border: 1px solid #b2eeeb;
    border-radius: 20px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ===== Body ===== */
.braves-block-card__body {
    padding: 18px;
    background: #ffffff;
    min-height: 80px;
}

.braves-block-card__message-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.braves-block-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #01B7AF 0%, #5DD5C7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.braves-block-card__bubble {
    background: #f1f5f9;
    border-radius: 0 12px 12px 12px;
    padding: 11px 14px;
    flex: 1;
}

.braves-block-card__bubble-text {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

/* ===== Footer ===== */
.braves-block-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* ===== Sidebar inspector ===== */
.components-panel__body .components-base-control {
    margin-bottom: 16px;
}

.components-panel__body-title {
    font-weight: 600;
}

.components-base-control__help {
    font-size: 12px;
    font-style: italic;
    color: #757575;
}
