/* Modern Reviews Widget Styles */

/* Container & Layout */
.reviews-widget-container {
    width: 100%;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

/* Carousel Mode */
.reviews-carousel-mode .reviews-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Grid Mode */
.reviews-grid-mode .reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Carousel Controls */
.reviews-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text, #333);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Marquee Mode */
.reviews-marquee-mode .marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.reviews-marquee-mode:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Review Card - Modern Glassmorphism */
.review-card-modern {
    background: var(--color-glass-bg, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border, rgba(255, 255, 255, 0.15));
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    color: var(--color-text, #ffffff);
}

.review-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    border-color: var(--color-accent-1, #ff3e9d);
    background: var(--color-glass-hover, rgba(255, 255, 255, 0.1));
}

/* Compact Card for Marquee */
.review-card-compact {
    min-width: 280px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    /* Force dark text for light marquee card */
}

/* Card Header */
.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-1, #ff3e9d), var(--color-accent-2, #ff69b4));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.review-meta {
    flex: 1;
    line-height: 1.2;
}

.review-author {
    font-weight: 600;
    color: inherit;
    /* Inherit from card */
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--color-text-muted, #a0a0c0);
}

.verified-badge,
.source-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.source-badge i {
    font-size: 0.9rem;
}

.source-whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.source-email {
    color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
}

.source-web,
.verified-badge {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Rating */
.review-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.stars-empty {
    color: #e5e7eb;
    opacity: 0.3;
}

/* Content */
.review-content {
    font-size: 0.95rem;
    color: inherit;
    /* Inherit from card */
    opacity: 0.9;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Footer */
.review-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-text-muted, #a0a0c0);
}

/* Dark Mode Support (System Preference) */
@media (prefers-color-scheme: dark) {
    .review-card-modern {
        background: rgba(30, 30, 30, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
        color: #eee;
    }
}

/* Light Theme Overrides (Explicit) */
[data-theme="light"] .review-card-modern {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

[data-theme="light"] .review-card-modern:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-1);
}

[data-theme="light"] .review-card-compact {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

[data-theme="light"] .stars-empty {
    color: #cbd5e1;
}

[data-theme="light"] .review-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}