/* ==========================================
   Bloom & Blush Blog Scroll — Frontend CSS
   Author: Ubaidur Rahman Ansari
   ========================================== */

/* ---- Reset & Base ---- */
.bbb-section {
    background-color: #EDE9F5;
    padding: 60px 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.bbb-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 100%;
}

/* ---- Header ---- */
.bbb-header {
    flex: 0 0 300px;
    min-width: 160px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.bbb-header__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

.bbb-header__subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.bbb-header__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bbb-header__btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ---- Carousel Outer ---- */
.bbb-carousel-outer {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Track Container ---- */
.bbb-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.bbb-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* RTL support */
.bbb-carousel-outer[data-direction="rtl"] .bbb-track {
    direction: rtl;
}

/* ---- Slide ---- */
.bbb-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* ---- Card ---- */
.bbb-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bbb-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.14);
}

/* ---- Card Image ---- */
.bbb-card__image-wrap {
    overflow: hidden;
    height: 240px;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.bbb-card__image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.bbb-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.bbb-card__image-wrap:hover .bbb-card__image {
    transform: scale(1.07);
}

/* ---- Card Body ---- */
.bbb-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ---- Category Badge ---- */
.bbb-card__category {
    display: inline-block;
    background: #F8E8FF;
    color: #7B2D8B;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* ---- Card Title ---- */
.bbb-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
}

.bbb-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.bbb-card__title a:hover {
    color: #b56f50 !important;
}

/* ---- Excerpt ---- */
.bbb-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ---- Read More ---- */
.bbb-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: auto;
    padding-top: 4px;
    cursor: pointer;
    transition: color 0.2s ease, gap 0.2s ease;
}

.bbb-card__readmore:hover {
    color: #7B2D8B;
    gap: 8px;
}

.bbb-card__readmore svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bbb-card__readmore:hover svg {
    transform: translateX(3px);
}

/* ---- Footer (Progress + Arrows) ---- */
.bbb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

/* ---- Progress Bar ---- */
.bbb-progress-wrap {
    flex: 1;
}

.bbb-progress-track {
    height: 3px;
    background: #E0D6EC;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bbb-progress-fill {
    height: 100%;
    background: #5C1A6B;
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

/* ---- Dots ---- */
.bbb-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.bbb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0D6EC;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

.bbb-dot.is-active {
    background: #5C1A6B;
    transform: scale(1.3);
}

/* ---- Arrows ---- */
.bbb-arrows {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.bbb-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bbb-arrow svg {
    stroke: #1a1a1a;
    transition: stroke 0.2s ease;
}

.bbb-arrow:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.bbb-arrow:hover svg {
    stroke: #ffffff;
}

.bbb-arrow:active {
    transform: scale(0.94);
}

.bbb-arrow:disabled,
.bbb-arrow.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bbb-arrow:disabled:hover,
.bbb-arrow.is-disabled:hover {
    background: #ffffff;
    border-color: #e0e0e0;
}

.bbb-arrow:disabled:hover svg,
.bbb-arrow.is-disabled:hover svg {
    stroke: #1a1a1a;
}

/* ---- Navigation visibility ---- */
.bbb-carousel-outer[data-nav="none"] .bbb-footer {
    display: none;
}

.bbb-carousel-outer[data-nav="arrows"] .bbb-progress-wrap {
    display: block;
}

.bbb-carousel-outer[data-nav="arrows"] .bbb-dots {
    display: none;
}

.bbb-carousel-outer[data-nav="dots"] .bbb-arrows {
    display: none;
}

.bbb-carousel-outer[data-nav="dots"] .bbb-progress-track {
    display: none;
}

.bbb-carousel-outer[data-nav="dots"] .bbb-progress-wrap {
    display: flex;
    align-items: center;
}

.bbb-carousel-outer[data-nav="both"] .bbb-progress-track {
    display: none;
}

.bbb-carousel-outer[data-nav="both"] .bbb-progress-wrap {
    display: flex;
    align-items: center;
}

/* ---- No posts ---- */
.bbb-no-posts {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .bbb-inner {
        flex-direction: column;
    }
    .bbb-header {
        flex: unset;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 24px;
    }
    .bbb-header__title {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .bbb-section {
        padding: 40px 20px;
    }
    .bbb-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bbb-card__image-wrap {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .bbb-section {
        padding: 30px 16px;
    }
}
