
/* Top Reviews Widget CSS - Exact match to React version */

.top-reviews-widget {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border-radius: 0;
    background-color: rgba(153, 51, 102, 0.8); /* bg-[#993366]/80 */
    backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
    .top-reviews-widget {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* Header */
.widget-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.header-background-skew {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(153, 51, 102, 0.3), rgba(153, 51, 102, 0.5)); /* from-[#993366]/30 to-[#993366]/50 */
    transform: skewX(-12deg);
    border-radius: 0.5rem;
}

.header-title {
    position: relative;
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    padding: 0.5rem 2rem;
    margin: 0;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.8); /* text-white/80 */
    font-size: 1.125rem;
    margin: 0;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Review Item */
.review-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: rgba(153, 51, 102, 0.5); /* bg-[#993366]/50 */
    border: 1px solid rgba(153, 51, 102, 0.7); /* border-[#993366]/70 */
    padding: 1rem;
    backdrop-filter: blur(4px);
    width: 100%;
}

/* Desktop Layout */
.review-desktop {
    position: relative;
    display: none;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .review-desktop {
        display: flex;
    }
}

/* Avatar Section */
.avatar-section {
    flex-shrink: 0;
    position: relative;
}

.avatar-link {
    display: block;
}

.avatar {
    width: 4rem;
    height: 4rem;
    border: 2px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
    border-radius: 50%;
    overflow: hidden;
    transition: border-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar:hover {
    border-color: rgba(255, 255, 255, 0.4); /* hover:border-white/40 */
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.position-badge {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    background-color: #10b981; /* bg-emerald-600 */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Section */
.content-section {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.name-link {
    transition: color 0.3s ease;
    text-decoration: none;
}

.name-link:hover {
    color: rgba(255, 255, 255, 0.8); /* hover:text-white/80 */
}

.review-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Verified Badge */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-badge > div {
    background-color: #10b981; /* bg-emerald-600 */
    color: white;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-icon {
    background-color: #047857; /* bg-emerald-700 */
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon {
    width: 0.625rem;
    height: 0.625rem;
}

.verified-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Rating Section */
.top-reviews-widget .rating-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

@media (min-width: 640px) {
    .top-reviews-widget .rating-section {
        width: auto;
    }
}

.top-reviews-widget .rating-value {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.top-reviews-widget .stars-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-reviews-widget .star {
    width: 2rem;
    height: 2rem;
}

.top-reviews-widget .star.filled {
    color: #fbbf24; /* text-yellow-400 */
}

.top-reviews-widget .star.empty {
    color: #d1d5db; /* text-gray-300 */
}

/* Action Buttons Desktop */
.top-reviews-widget .action-buttons-desktop {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

.top-reviews-widget .action-buttons-desktop a {
    text-decoration: none;
}

.top-reviews-widget .btn-reviews, .top-reviews-widget .btn-overview {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    white-space: nowrap;
    width: 100%;
    height: 2.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

@media (min-width: 640px) {
    .top-reviews-widget .btn-reviews, .top-reviews-widget .btn-overview {
        font-size: 0.875rem;
    }
}

.top-reviews-widget .btn-reviews {
    background-color: white;
    color: #993366; /* text-[#993366] */
    border: 1px solid rgba(255, 255, 255, 0.3); /* border-white/30 */
}

.top-reviews-widget .btn-reviews:hover {
    background-color: rgba(255, 255, 255, 0.9); /* hover:bg-white/90 */
}

.message-icon {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

@media (min-width: 640px) {
    .message-icon {
        width: 1rem;
        height: 1rem;
    }
}

.top-reviews-widget .btn-overview {
    background: linear-gradient(to right, rgba(153, 51, 102, 0.3), rgba(153, 51, 102, 0.5)); /* from-[#993366]/30 to-[#993366]/50 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
}

.top-reviews-widget .btn-overview:hover {
    background: linear-gradient(to right, rgba(153, 51, 102, 0.5), rgba(153, 51, 102, 0.7)); /* hover:from-[#993366]/50 hover:to-[#993366]/70 */
}

/* Mobile Layout */
.review-mobile {
    position: relative;
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .review-mobile {
        display: none;
    }
}

.mobile-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Mobile Avatar Section */
.mobile-avatar-section {
    flex-shrink: 0;
    position: relative;
}

.mobile-avatar-link {
    display: block;
}

.mobile-avatar {
    width: 3rem;
    height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
    border-radius: 50%;
    overflow: hidden;
    transition: border-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-avatar:hover {
    border-color: rgba(255, 255, 255, 0.4); /* hover:border-white/40 */
}

.mobile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.mobile-position-badge {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    background-color: #10b981; /* bg-emerald-600 */
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Content */
.mobile-content {
    flex: 1;
    min-width: 0;
}

.mobile-name-section {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.mobile-name-link {
    transition: color 0.3s ease;
    text-decoration: none;
}

.mobile-name-link:hover {
    color: rgba(255, 255, 255, 0.8); /* hover:text-white/80 */
}

.mobile-review-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin: 0;
}

.mobile-verified-badge {
    background-color: #10b981; /* bg-emerald-600 */
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-check-icon {
    width: 0.75rem;
    height: 0.75rem;
}

/* Mobile Rating */
.top-reviews-widget .mobile-rating-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-reviews-widget .mobile-rating-value {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin-right: 0.25rem;
}

.top-reviews-widget .mobile-stars-container {
    display: flex;
    align-items: center;
}

.top-reviews-widget .mobile-star {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24; /* text-yellow-400 */
}

/* Mobile Action Buttons */
.top-reviews-widget .mobile-action-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.top-reviews-widget .mobile-btn-link {
    flex: 1;
    text-decoration: none;
}

.top-reviews-widget .mobile-btn-reviews, .top-reviews-widget .mobile-btn-overview {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    white-space: nowrap;
    width: 100%;
    height: 2.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-reviews-widget .mobile-btn-reviews {
    background-color: white;
    color: #993366; /* text-[#993366] */
    border: 1px solid rgba(255, 255, 255, 0.3); /* border-white/30 */
}

.top-reviews-widget .mobile-btn-reviews:hover {
    background-color: rgba(255, 255, 255, 0.9); /* hover:bg-white/90 */
}

.top-reviews-widget .mobile-btn-overview {
    background: linear-gradient(to right, rgba(153, 51, 102, 0.3), rgba(153, 51, 102, 0.5)); /* from-[#993366]/30 to-[#993366]/50 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
}

.top-reviews-widget .mobile-btn-overview:hover {
    background: linear-gradient(to right, rgba(153, 51, 102, 0.5), rgba(153, 51, 102, 0.7)); /* hover:from-[#993366]/50 hover:to-[#993366]/70 */
}
