/* ============================================
   Reviews Page - Premium Production Version
   Bogura Bazar Theme
============================================ */

/* ========== হিরো ========== */
.reviews-hero {
    background: linear-gradient(135deg, #00A65A, #008D4C);
    padding: 50px 20px;
    border-radius: 20px;
    margin: 20px 0 35px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '⭐';
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 180px;
    opacity: 0.06;
    transform: rotate(20deg);
}

.reviews-hero::after {
    content: '💬';
    position: absolute;
    bottom: -50px;
    left: -30px;
    font-size: 150px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.reviews-hero-content {
    position: relative;
    z-index: 1;
}

.reviews-hero-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.reviews-hero-title span {
    color: #ffd700;
    position: relative;
}

.reviews-hero-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.reviews-hero-subtitle {
    font-size: 17px;
    opacity: 0.9;
    font-weight: 400;
}

/* ========== স্ট্যাটস ========== */
.reviews-stats {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid #eef2f6;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.reviews-stats-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

/* ওভারঅল রেটিং */
.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-right: 30px;
    border-right: 1px solid #eef2f6;
}

.rating-number {
    font-size: 52px;
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin: 8px 0 4px;
    color: #f59e0b;
    font-size: 18px;
}

.total-reviews {
    font-size: 14px;
    color: #8b8b8b;
    font-weight: 500;
}

/* রেটিং বার */
.rating-bars {
    flex: 1;
    min-width: 200px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.rating-bar-row:last-child {
    margin-bottom: 0;
}

.rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    width: 44px;
    text-align: right;
}

.rating-bar-track {
    flex: 1;
    height: 7px;
    background: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rating-percent {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    width: 40px;
}

/* ========== ফিল্টার বার ========== */
.reviews-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.reviews-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #eef2f6;
    border-radius: 30px;
    background: white;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00A65A;
    color: #00A65A;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #00A65A;
    color: white;
    border-color: #00A65A;
    box-shadow: 0 4px 16px rgba(0, 166, 90, 0.2);
}

.reviews-sort {
    padding: 10px 20px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.reviews-sort:hover {
    border-color: #00A65A;
}

.reviews-sort:focus {
    border-color: #00A65A;
    box-shadow: 0 0 0 3px rgba(0, 166, 90, 0.08);
}

/* ========== রিভিউ গ্রিড ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* ========== রিভিউ কার্ড ========== */
.review-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #eef2f6;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card:hover {
    border-color: #00A65A;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.reviewer-avatar span {
    font-size: 18px;
    font-weight: 700;
    color: #00A65A;
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 0;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #8b8b8b;
    margin-top: 2px;
}

.verified-badge {
    color: #00A65A;
    font-weight: 600;
    background: #e8f5e9;
    padding: 1px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
    background: #fef9e7;
    padding: 2px 12px 2px 8px;
    border-radius: 30px;
}

.rating-value {
    font-weight: 700;
    color: #0a0a0a;
    font-size: 13px;
}

.review-card-body {
    margin-bottom: 14px;
}

.review-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.review-product:hover {
    background: #e8f5e9;
    color: #00A65A;
}

.review-product img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
}

.review-product i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A65A;
    font-size: 16px;
}

.review-comment {
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.review-date {
    font-size: 12px;
    color: #8b8b8b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #8b8b8b;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #f0fdf4;
    color: #00A65A;
}

.helpful-btn.voted {
    color: #00A65A;
    background: #e8f5e9;
}

.helpful-count {
    font-weight: 700;
    color: #0a0a0a;
    min-width: 16px;
    text-align: center;
}

/* ========== খালি স্টেট ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: #8b8b8b;
}

/* ========== লোডিং ========== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #eef2f6;
    border-top-color: #00A65A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== লোড মোর ========== */
.load-more-container {
    text-align: center;
    margin-top: 8px;
}

.load-more-btn {
    padding: 12px 36px;
    background: white;
    border: 2px solid #00A65A;
    border-radius: 40px;
    color: #00A65A;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #00A65A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 166, 90, 0.15);
}

/* ============================================
   রেসপন্সিভ
============================================ */

/* ========== ট্যাবলেট (992px) ========== */
@media (max-width: 992px) {
    .reviews-hero-title {
        font-size: 30px;
    }
    .reviews-stats-wrapper {
        gap: 32px;
    }
    .overall-rating {
        padding-right: 20px;
    }
    .rating-number {
        font-size: 44px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== মোবাইল (768px) ========== */
@media (max-width: 768px) {
    .reviews-hero {
        padding: 30px 16px;
        border-radius: 16px;
    }
    .reviews-hero-title {
        font-size: 24px;
    }
    .reviews-hero-subtitle {
        font-size: 14px;
    }
    .reviews-stats {
        padding: 20px;
        border-radius: 16px;
    }
    .reviews-stats-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .overall-rating {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding-bottom: 16px;
        width: 100%;
    }
    .rating-number {
        font-size: 38px;
    }
    .rating-stars {
        font-size: 16px;
    }
    .rating-bars {
        width: 100%;
        min-width: unset;
    }
    .reviews-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .reviews-filter-buttons {
        justify-content: center;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .review-card {
        padding: 16px;
        border-radius: 16px;
    }
    .review-card-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .review-rating {
        width: 100%;
        margin-left: 62px;
        justify-content: flex-start;
        background: none;
        padding: 0;
    }
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    .reviewer-avatar span {
        font-size: 14px;
    }
    .reviewer-name {
        font-size: 13px;
    }
    .review-comment {
        font-size: 13px;
    }
    .review-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .load-more-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ========== ছোট মোবাইল (480px) ========== */
@media (max-width: 480px) {
    .reviews-hero-title {
        font-size: 20px;
    }
    .reviews-hero {
        padding: 24px 14px;
        border-radius: 14px;
    }
    .reviews-stats {
        padding: 16px;
        border-radius: 14px;
    }
    .rating-number {
        font-size: 32px;
    }
    .rating-stars {
        font-size: 14px;
        gap: 2px;
    }
    .total-reviews {
        font-size: 12px;
    }
    .reviews-filter-buttons {
        gap: 6px;
    }
    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    .reviews-sort {
        font-size: 12px;
        padding: 8px 14px;
    }
    .review-card {
        padding: 14px;
        border-radius: 14px;
    }
    .review-rating {
        margin-left: 54px;
        font-size: 12px;
    }
    .reviewer-avatar {
        width: 36px;
        height: 36px;
    }
    .reviewer-avatar span {
        font-size: 12px;
    }
    .reviewer-name {
        font-size: 12px;
    }
    .reviewer-meta {
        font-size: 11px;
        gap: 6px;
    }
    .review-product {
        font-size: 12px;
        padding: 4px 10px 4px 4px;
    }
    .review-product img {
        width: 24px;
        height: 24px;
    }
    .review-product i {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .review-comment {
        font-size: 12px;
        line-height: 1.7;
    }
    .helpful-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
    .load-more-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    .empty-state i {
        font-size: 40px;
    }
    .empty-state h3 {
        font-size: 18px;
    }
    .empty-state p {
        font-size: 13px;
    }
}

/* ========== অতি ছোট মোবাইল (380px) ========== */
@media (max-width: 380px) {
    .reviews-hero-title {
        font-size: 18px;
    }
    .rating-number {
        font-size: 28px;
    }
    .filter-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    .review-card {
        padding: 12px;
    }
    .review-rating {
        margin-left: 48px;
        font-size: 11px;
    }
    .reviewer-avatar {
        width: 32px;
        height: 32px;
    }
    .reviewer-avatar span {
        font-size: 11px;
    }
    .reviewer-name {
        font-size: 11px;
    }
    .review-comment {
        font-size: 11px;
    }
    .helpful-btn {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ============================================
   অ্যানিমেশন
============================================ */
.review-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.15s; }
.review-card:nth-child(4) { animation-delay: 0.2s; }
.review-card:nth-child(5) { animation-delay: 0.25s; }
.review-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   টাচ ডিভাইস
============================================ */
@media (hover: none) and (pointer: coarse) {
    .review-card:hover {
        transform: none;
        border-color: #eef2f6;
        box-shadow: none;
    }
    .filter-btn:hover {
        transform: none;
    }
    .load-more-btn:hover {
        transform: none;
        background: white;
        color: #00A65A;
        box-shadow: none;
    }
}



