/* Elementor Widget Styles - Barjueway Fragrance House */

/* ─── Widget Category Styles ─────────────────────────────── */
.bfh-elementor-widget {
    font-family: var(--bfh-font-body, 'Inter', sans-serif);
}

/* ─── Carousel Widgets ───────────────────────────────────── */
.bfh-carousel .swiper-pagination-bullet {
    background: var(--bfh-text-light, #9CA3AF);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.bfh-carousel .swiper-pagination-bullet-active {
    background: var(--bfh-primary, #18B7B0);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.bfh-carousel .swiper-button-prev,
.bfh-carousel .swiper-button-next {
    color: var(--bfh-primary, #18B7B0);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--bfh-shadow-md);
    transition: all 0.3s ease;
}

.bfh-carousel .swiper-button-prev::after,
.bfh-carousel .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.bfh-carousel .swiper-button-prev:hover,
.bfh-carousel .swiper-button-next:hover {
    background: var(--bfh-primary, #18B7B0);
    color: #fff;
}

/* ─── Perfume Grid Widget ────────────────────────────────── */
.bfh-widget-perfume-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .bfh-widget-perfume-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bfh-widget-perfume-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .bfh-widget-perfume-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Brand Grid Widget ──────────────────────────────────── */
.bfh-widget-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bfh-widget-brand-grid .bfh-brand-card {
    background: var(--bfh-surface, #fff);
    border: 1px solid var(--bfh-border-light, #F3F4F6);
    border-radius: var(--bfh-card-radius, 16px);
    padding: 24px;
    text-align: center;
    transition: all var(--bfh-transition);
}

.bfh-widget-brand-grid .bfh-brand-card:hover {
    box-shadow: var(--bfh-shadow-lg);
    transform: translateY(-4px);
}

.bfh-widget-brand-grid .bfh-brand-card img {
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .bfh-widget-brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .bfh-widget-brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── Poll Widget ────────────────────────────────────────── */
.bfh-widget-poll {
    background: var(--bfh-surface, #fff);
    border: 1px solid var(--bfh-border, #E5E7EB);
    border-radius: var(--bfh-card-radius, 16px);
    padding: 24px;
}

.bfh-widget-poll .bfh-poll__title {
    font-family: var(--bfh-font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bfh-widget-poll .bfh-poll__votes {
    color: var(--bfh-text-secondary, #6B7280);
    font-size: 13px;
    margin-bottom: 16px;
}

/* ─── Search Widget ──────────────────────────────────────── */
.bfh-widget-search .bfh-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.bfh-widget-search .bfh-search-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid var(--bfh-border, #E5E7EB);
    border-radius: var(--bfh-card-radius, 16px);
    font-size: 16px;
    font-family: var(--bfh-font-body);
    background: var(--bfh-surface, #fff);
    transition: border-color var(--bfh-transition-fast);
}

.bfh-widget-search .bfh-search-input:focus {
    outline: none;
    border-color: var(--bfh-primary, #18B7B0);
    box-shadow: 0 0 0 3px rgba(var(--bfh-primary-rgb, 24, 183, 176), 0.15);
}

/* ─── Notes Widget ───────────────────────────────────────── */
.bfh-widget-notes .bfh-notes-pyramid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bfh-widget-notes .bfh-notes-tier {
    text-align: center;
}

.bfh-widget-notes .bfh-notes-tier__title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--bfh-text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bfh-widget-notes .bfh-notes-tier__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.bfh-widget-notes .bfh-note-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
}

.bfh-widget-notes .bfh-note-item__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bfh-border-light);
    transition: all var(--bfh-transition);
}

.bfh-widget-notes .bfh-note-item:hover .bfh-note-item__img {
    border-color: var(--bfh-primary);
    transform: scale(1.1);
}

.bfh-widget-notes .bfh-note-item__name {
    font-size: 12px;
    color: var(--bfh-text-primary);
    text-align: center;
    line-height: 1.3;
}

/* ─── Accords Widget ─────────────────────────────────────── */
.bfh-widget-accords .bfh-accord-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 4px;
    color: #fff;
    transition: transform var(--bfh-transition-fast);
}

.bfh-widget-accords .bfh-accord-tag:hover {
    transform: scale(1.05);
}

/* ─── Performance Widget ─────────────────────────────────── */
.bfh-widget-performance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bfh-widget-performance .bfh-perf-meter {
    text-align: center;
    padding: 20px;
    background: var(--bfh-surface);
    border: 1px solid var(--bfh-border-light);
    border-radius: var(--bfh-card-radius);
}

.bfh-widget-performance .bfh-perf-meter__icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--bfh-text-secondary);
}

.bfh-widget-performance .bfh-perf-meter__value {
    font-size: 32px;
    font-weight: 700;
    color: var(--bfh-text-primary);
}

.bfh-widget-performance .bfh-perf-meter__max {
    font-size: 16px;
    color: var(--bfh-text-light);
    font-weight: 400;
}

.bfh-widget-performance .bfh-perf-meter__label {
    font-size: 14px;
    color: var(--bfh-text-secondary);
    margin-top: 4px;
}

.bfh-widget-performance .bfh-perf-meter__bar {
    height: 4px;
    background: var(--bfh-border-light);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.bfh-widget-performance .bfh-perf-meter__fill {
    height: 100%;
    background: var(--bfh-primary);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .bfh-widget-performance {
        grid-template-columns: 1fr;
    }
}

/* ─── Compare Widget ─────────────────────────────────────── */
.bfh-widget-compare .bfh-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--bfh-card-radius);
    overflow: hidden;
    border: 1px solid var(--bfh-border);
}

.bfh-widget-compare .bfh-compare-table th,
.bfh-widget-compare .bfh-compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--bfh-border-light);
}

.bfh-widget-compare .bfh-compare-table th {
    background: var(--bfh-surface-secondary);
    font-weight: 600;
    color: var(--bfh-text-primary);
}

.bfh-widget-compare .bfh-compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--bfh-text-secondary);
    background: var(--bfh-surface-secondary);
    min-width: 140px;
}

/* ─── Review List Widget ─────────────────────────────────── */
.bfh-widget-reviews .bfh-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Filter Sidebar Widget ──────────────────────────────── */
.bfh-widget-filter-sidebar {
    background: var(--bfh-surface);
    border: 1px solid var(--bfh-border);
    border-radius: var(--bfh-card-radius);
    padding: 20px;
}

/* ─── Timeline Widget ────────────────────────────────────── */
.bfh-widget-timeline .bfh-timeline {
    position: relative;
    padding-left: 32px;
}

.bfh-widget-timeline .bfh-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bfh-border);
}

.bfh-widget-timeline .bfh-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.bfh-widget-timeline .bfh-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bfh-primary);
    border: 2px solid var(--bfh-surface);
    box-shadow: 0 0 0 2px var(--bfh-primary);
}

.bfh-widget-timeline .bfh-timeline-item__year {
    font-weight: 700;
    color: var(--bfh-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.bfh-widget-timeline .bfh-timeline-item__content {
    font-size: 14px;
    color: var(--bfh-text-primary);
}

/* ─── Community Widget ───────────────────────────────────── */
.bfh-widget-community .bfh-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bfh-border-light);
}

.bfh-widget-community .bfh-activity-item:last-child {
    border-bottom: none;
}

.bfh-widget-community .bfh-activity-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bfh-widget-community .bfh-activity-item__text {
    font-size: 14px;
    color: var(--bfh-text-primary);
    line-height: 1.4;
}

.bfh-widget-community .bfh-activity-item__time {
    font-size: 12px;
    color: var(--bfh-text-light);
    margin-top: 2px;
}
