/* VerifiKitchen — Shared Business Profile public page
 *
 * Renders the [vfk_business_profile] shortcode for both vendors and CFPs.
 * Color tokens align with the existing CFP module styles so vendor and
 * CFP pages feel like the same family of pages, regardless of which
 * source rendered them.
 *
 * @since 5.7.0
 */

.vfk-bp {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* Header band — image on the left, heading block on the right.
 * Stacks on narrow viewports. */
.vfk-bp__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 0 0 18px;
}
@media (max-width: 600px) {
    .vfk-bp__header {
        flex-direction: column;
    }
}

.vfk-bp__image-wrap {
    flex: 0 0 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}
.vfk-bp__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.vfk-bp__heading {
    flex: 1 1 auto;
    min-width: 0; /* allow long text to wrap inside flex child */
}

.vfk-bp__name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}
.vfk-bp__tagline {
    margin: 0 0 10px;
    font-size: 15px;
    color: #586069;
    font-style: italic;
}
.vfk-bp__address {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Badge chips — featured, tier, business type. Order in the HTML is
 * Featured → tier → business type so featured is the leftmost (most
 * eye-catching) chip when present. */
.vfk-bp__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
}
.vfk-bp__badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.vfk-bp__badge--featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f1300;
}
.vfk-bp__badge--tier {
    background: #e0e7ff;
    color: #3730a3;
}
.vfk-bp__badge--brand {
    background: #ede9fe;
    color: #5b21b6;
}
.vfk-bp__badge--type {
    background: #ecfdf5;
    color: #065f46;
}

/* Tags — small pill chips. Distinct enough from the badges row to not
 * be confused with them. */
.vfk-bp__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 18px;
}
.vfk-bp__tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 11px;
    color: #374151;
    background: #fff;
}

/* Description body — wpautop adds <p> tags; we want consistent
 * spacing between paragraphs. */
.vfk-bp__description {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.65;
}
.vfk-bp__description p {
    margin: 0 0 1em;
}
.vfk-bp__description p:last-child {
    margin-bottom: 0;
}

/* Empty / not-found states — apologetic but not alarming. */
.vfk-bp--empty,
.vfk-bp--not-found {
    padding: 20px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
}
.vfk-bp--not-found h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1f2937;
}

/* v5.9.0: Customer reviews section (mirror from VeriEats).
 *
 * Stars use the same two-layer stacked-text technique as VeriEats so
 * the visual matches. letter-spacing:0 to avoid the "segmented groups"
 * artifact at the fill boundary (lesson from VeriEats v2.7.1).
 */
.vfk-bp__reviews {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.vfk-bp__reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 16px;
}
.vfk-bp__reviews-head h2 {
    margin: 0;
    font-size: 18px;
    flex: 0 0 auto;
}
.vfk-bp__reviews-agg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    flex: 1 1 auto;
    min-width: 0;
}
.vfk-bp__reviews-avg {
    font-weight: 600;
}
.vfk-bp__reviews-count {
    color: #6b7280;
}
.vfk-bp__reviews-cta {
    flex: 0 0 auto;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.vfk-bp__reviews-cta:hover {
    text-decoration: underline;
}

.vfk-bp__stars {
    position: relative;
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    color: #d1d5db;
    letter-spacing: 0;
}
.vfk-bp__stars-bg,
.vfk-bp__stars-fg {
    display: inline-block;
}
.vfk-bp__stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    color: #f59e0b;
    overflow: hidden;
    white-space: nowrap;
}

.vfk-bp__reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vfk-bp__review {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}
.vfk-bp__review:last-child {
    border-bottom: 0;
}
.vfk-bp__review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.vfk-bp__review-author {
    font-weight: 600;
    color: #111827;
}
.vfk-bp__review-date {
    color: #6b7280;
    margin-left: auto;
}
.vfk-bp__review-photo {
    margin: 8px 0;
}
.vfk-bp__review-photo img {
    max-width: 220px;
    border-radius: 6px;
    display: block;
}
.vfk-bp__review-body {
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
}
.vfk-bp__review-body p {
    margin: 0 0 0.8em;
}
.vfk-bp__review-body p:last-child {
    margin-bottom: 0;
}
