/* ========================================================================
   Post Box - Professional Dynamic Styles v3.0 (User-Facing)
   Fully integrated with the UI Design System.
   ======================================================================== */

/* --- 1. Base Wrapper --- */
.pb-wrapper {
    position: relative;
    margin: 30px 0;
    padding: var(--ui-padding-y) var(--ui-padding-x);
    border-radius: var(--ui-radius);
    border-right-width: 5px; /* Keeps the distinctive side-border */
    border-right-style: solid;
    background-color: var(--ui-surface);
    box-shadow: var(--ui-shadow);
    font-family: var(--ui-font-family);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pb-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--ui-shadow-color) 70%, transparent);
}

/* --- 2. Title & Content --- */
.pb-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: var(--ui-font-weight-heading);
    margin-bottom: 12px;
}

.pb-title svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.pb-content {
    font-size: 0.95em;
    line-height: 1.8;
    color: var(--ui-text-paragraph);
}

.pb-content p:last-child {
    margin-bottom: 0;
}

/* ========================================================================
   3. Default Type Styles (using Design System status colors as base)
   These will be overridden by user's choices from the color picker panel.
   ======================================================================== */

/* Note (Info) - Blueish */
.pb-type-note {
    background-color: color-mix(in srgb, var(--ui-info) 8%, transparent);
    border-right-color: var(--ui-info);
}
.pb-type-note .pb-title { color: var(--ui-info); }

/* Warning (Error) - Reddish */
.pb-type-warning {
    background-color: color-mix(in srgb, var(--ui-error) 8%, transparent);
    border-right-color: var(--ui-error);
}
.pb-type-warning .pb-title { color: var(--ui-error); }

/* Success - Greenish */
.pb-type-success {
    background-color: color-mix(in srgb, var(--ui-success) 8%, transparent);
    border-right-color: var(--ui-success);
}
.pb-type-success .pb-title { color: var(--ui-success); }

/* Quote - Neutral Gray */
.pb-type-quote {
    background-color: var(--ui-surface);
    border-right-color: var(--ui-border-color);
    font-style: italic;
}
.pb-type-quote .pb-title { color: var(--ui-text-paragraph); }
.pb-type-quote::before {
    content: "”";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: color-mix(in srgb, var(--ui-border-color) 50%, transparent);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}
