/* =============================================================
   BeautyPulse Widget — beautypulse.css
   Theme: Warm White × Pink Gradient
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Reset within scope ── */
.bp-reviews-section *,
.bp-blog-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Shared tokens (fallback values; per-widget <style> overrides these) ── */
.bp-reviews-section,
.bp-blog-section {
    --bp-accent:      #e8637a;
    --bp-accent-soft: #f7c5cf;
    --bp-bg-start:    #fff8f6;
    --bp-bg-end:      #fce8e8;
    --bp-bg-color:    #fff8f6;
    --bp-card-bg:     #ffffff;
    --bp-card-dark:   #2d1b2e;
    --bp-head-color:  #2d1b2e;
    --bp-text-color:  #5a3d4a;
    --bp-muted:       #a8818e;
    --bp-border:      rgba(232, 99, 122, .15);
    --bp-shadow:      0 8px 32px rgba(232, 99, 122, .12);
    --bp-radius-lg:   20px;
    --bp-radius-md:   14px;
    --bp-radius-sm:   8px;
    --bp-font-serif:  'Cormorant Garamond', Georgia, serif;
    --bp-font-sans:   'DM Sans', system-ui, sans-serif;
    font-family: var(--bp-font-sans);
    /* Blog card overrideable tokens (set via inline <style> per widget) */
    --bp-card-radius:      20px;
    --bp-thumb-height:     160px;
    --bp-card-min-w:       220px;
    --bp-card-title-color: #ffffff;
    --bp-card-text-color:  rgba(255,255,255,0.6);
    --bp-card-date-color:  rgba(255,255,255,0.4);
    --bp-card-title-size:  1.05rem;
    --bp-card-excerpt-sz:  12px;
}


/* ================================================================
   REVIEWS WIDGET
   ================================================================ */

.bp-reviews-section {
    background: linear-gradient(135deg, var(--bp-bg-start) 0%, var(--bp-bg-end) 100%);
    padding: 72px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Soft background blobs */
.bp-reviews-section::before,
.bp-reviews-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.bp-reviews-section::before {
    width: 400px; height: 400px;
    top: -100px; right: -100px;
    background: radial-gradient(circle, rgba(232,99,122,.12) 0%, transparent 70%);
}
.bp-reviews-section::after {
    width: 300px; height: 300px;
    bottom: -80px; left: -80px;
    background: radial-gradient(circle, rgba(247,197,207,.2) 0%, transparent 70%);
}

/* ── Section header ── */
.bp-section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.bp-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--bp-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bp-accent);
    margin-bottom: 14px;
}
.bp-label-line {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--bp-accent);
    opacity: .5;
}

.bp-main-title {
    font-family: var(--bp-font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--bp-head-color);
    line-height: 1.15;
    margin-bottom: 12px;
}

.bp-subtitle {
    font-size: 15px;
    color: var(--bp-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ── Stats bar ── */
.bp-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--bp-border);
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 4px 20px rgba(232,99,122,.08);
}
.bp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}
.bp-stat-num {
    font-family: var(--bp-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bp-head-color);
    line-height: 1;
}
.bp-stat-label {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bp-muted);
    margin-top: 3px;
}
.bp-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--bp-border);
}

/* ── Carousel wrapper ── */
.bp-carousel-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bp-carousel-track-outer {
    flex: 1;
    overflow: hidden;
    border-radius: var(--bp-radius-lg);
}

.bp-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Nav buttons ── */
.bp-nav {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--bp-border);
    background: #fff;
    color: var(--bp-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: all .25s ease;
    position: relative;
    z-index: 2;
    line-height: 0; /* prevent phantom height */
}
.bp-nav:hover {
    background: var(--bp-accent);
    color: #fff;
    border-color: var(--bp-accent);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(232,99,122,.3);
}
.bp-nav:focus-visible {
    outline: 2px solid var(--bp-accent);
    outline-offset: 3px;
}
.bp-nav svg {
    display: block; /* removes inline-block gap */
    pointer-events: none;
}

/* ── Review card ── */
.bp-review-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background: var(--bp-card-bg);
    border-radius: var(--bp-radius-lg);
    padding: 28px 24px 22px;
    box-shadow: var(--bp-shadow);
    border: 1px solid var(--bp-border);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.bp-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(232,99,122,.18);
}

/* Bubble decorations */
.bp-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.bp-bubble-1 {
    width: 80px; height: 80px;
    top: -20px; right: -20px;
    background: radial-gradient(circle, rgba(232,99,122,.12) 0%, transparent 70%);
}
.bp-bubble-2 {
    width: 50px; height: 50px;
    bottom: 30px; left: -10px;
    background: radial-gradient(circle, rgba(247,197,207,.3) 0%, transparent 70%);
}

/* Stars */
.bp-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}
.bp-star {
    display: block;
}
.bp-star--filled { color: var(--bp-accent); }
.bp-star--empty  { color: #ddd; }

/* Quote mark */
.bp-quote-mark {
    font-family: var(--bp-font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: .6;
    color: var(--bp-accent);
    opacity: .25;
    display: block;
    margin-bottom: 8px;
}

/* Review text */
.bp-review-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--bp-text-color);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

/* Product tag */
.bp-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--bp-accent);
    background: rgba(232,99,122,.08);
    border: 1px solid rgba(232,99,122,.2);
    border-radius: 50px;
    padding: 4px 10px;
    margin-bottom: 16px;
}
.bp-sku {
    opacity: .7;
    margin-left: 4px;
    font-weight: 400;
}

/* Card footer */
.bp-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--bp-border);
}
.bp-author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bp-accent) 0%, #f7a5b5 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bp-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bp-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bp-head-color);
}
.bp-review-date {
    font-size: 11px;
    color: var(--bp-muted);
}
.bp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #2e7d4f;
    background: rgba(46,125,79,.08);
    border-radius: 50px;
    padding: 3px 8px;
    white-space: nowrap;
}

/* ── Dots ── */
.bp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}
.bp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bp-accent-soft);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all .25s ease;
    display: block;
}
.bp-dot.bp-dot--active {
    background: var(--bp-accent);
    width: 24px;
    border-radius: 4px;
}

.bp-no-reviews {
    text-align: center;
    color: var(--bp-muted);
    font-size: 15px;
    padding: 40px 0;
}


/* ================================================================
   BLOG WIDGET
   ================================================================ */

.bp-blog-section {
    background: var(--bp-bg-color, #fff8f6);
    padding: 72px 40px 80px;
    position: relative;
}

.bp-blog-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ── Left panel ── */
.bp-blog-left {
    position: sticky;
    top: 40px;
}

.bp-label-small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bp-muted);
    margin-bottom: 10px;
}

.bp-blog-title {
    font-family: var(--bp-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--bp-head-color);
    line-height: 1.2;
    margin-bottom: 12px;
}

.bp-blog-subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: var(--bp-muted);
    margin-bottom: 28px;
}

.bp-blog-illustration {
    width: 140px;
    margin-top: 8px;
    opacity: .85;
}
.bp-girl-svg {
    width: 100%;
    height: auto;
}

/* ── Right panel & cards ── */
.bp-blog-right {
    min-width: 0;
}

/* Horizontal scroll layout (default) */
.bp-blog-layout-horizontal-scroll .bp-blog-cards-wrap {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* hide scrollbar */
    scrollbar-width: none;
}
.bp-blog-layout-horizontal-scroll .bp-blog-cards-wrap::-webkit-scrollbar {
    display: none;
}
.bp-blog-layout-horizontal-scroll .bp-blog-card {
    scroll-snap-align: start;
    flex: 0 0 var(--bp-card-min-w, 220px);
}

/* Grid layout */
.bp-blog-layout-grid .bp-blog-cards-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--bp-card-min-w, 220px), 1fr));
    gap: 18px;
}

/* ── Blog card ── */
.bp-blog-card {
    background: var(--bp-card-dark);
    border-radius: var(--bp-card-radius, var(--bp-radius-lg));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}
.bp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(45,27,46,.25);
}

/* Featured card  */
.bp-blog-card--featured {
    flex: 0 0 280px;
}

.bp-blog-card-img {
    position: relative;
    height: var(--bp-thumb-height, 160px);
    overflow: hidden;
}
.bp-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.bp-blog-card:hover .bp-blog-card-img img {
    transform: scale(1.06);
}
.bp-blog-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(45,27,46,.6) 100%);
}

.bp-blog-card-body {
    padding: 20px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bp-blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
}
.bp-blog-cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bp-accent);
    background: rgba(232,99,122,.15);
    border-radius: 50px;
    padding: 3px 8px;
}

.bp-blog-date {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--bp-card-date-color, rgba(255,255,255,.4));
}

.bp-blog-post-title {
    font-family: var(--bp-font-serif);
    font-size: var(--bp-card-title-size, 1.05rem);
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}
.bp-blog-post-title a {
    color: var(--bp-card-title-color, #fff);
    text-decoration: none;
    transition: color .2s;
}
.bp-blog-post-title a:hover {
    color: var(--bp-accent-soft, #f7c5cf);
}

.bp-blog-excerpt {
    font-size: var(--bp-card-excerpt-sz, 12px);
    line-height: 1.6;
    color: var(--bp-card-text-color, rgba(255,255,255,.6));
}

.bp-blog-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.bp-blog-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--bp-card-text-color, rgba(255,255,255,.45));
    opacity: .75;
}
.bp-blog-meta-item svg {
    opacity: .7;
    flex-shrink: 0;
}

/* Read button */
.bp-blog-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bp-accent);
    color: #fff;
    text-decoration: none;
    transition: all .25s ease;
    margin-top: 10px;
    align-self: flex-start;
    line-height: 0; /* prevent phantom height */
    flex-shrink: 0;
}
.bp-blog-read-btn:hover {
    background: #c94760;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(232,99,122,.4);
}
.bp-blog-read-btn svg {
    display: block;
    pointer-events: none;
}

/* ── Blog footer / older posts ── */
.bp-blog-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.bp-older-posts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--bp-accent) 0%, #c94760 100%);
    border-radius: 50px;
    padding: 12px 28px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(232,99,122,.3);
    transition: all .25s ease;
    letter-spacing: .03em;
}
.bp-older-posts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232,99,122,.4);
}

.bp-no-posts {
    color: var(--bp-muted);
    font-size: 15px;
    padding: 40px 0;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .bp-review-card { flex: 0 0 calc(50% - 10px); }

    .bp-blog-inner {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .bp-reviews-section,
    .bp-blog-section { padding: 48px 20px 56px; }

    .bp-review-card { flex: 0 0 85vw; }

    .bp-blog-inner {
        grid-template-columns: 1fr;
    }
    .bp-blog-left {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-end;
    }
    .bp-blog-illustration { display: none; }
    .bp-blog-title { flex: 0 0 100%; }

    .bp-nav { display: none; }

    .bp-stats-bar {
        flex-wrap: wrap;
        border-radius: var(--bp-radius-md);
        padding: 16px;
    }
    .bp-stat-divider { display: none; }
    .bp-stat { padding: 8px 12px; }
}
