/* ===================================
   📝 Sidebar Reviews Quick Access - نمایش کوتاه نظرات در نوار کناری
   ===================================*/

.reviews-quick-access {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reviews-quick-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50, #66BB6A);
    border-radius: 16px 16px 0 0;
}

.reviews-quick-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.reviews-quick-access .reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviews-quick-access .reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-quick-access .reviews-title::before {
    content: '⭐';
    font-size: 1rem;
}

.reviews-quick-access .reviews-count {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rating-quick-view {
    text-align: center;
    margin-bottom: 18px;
}

.rating-score-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-number-mini {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-stars-mini {
    font-size: 1rem;
}

.rating-stars-mini i {
    color: #FFB400;
    margin: 0 1px;
    text-shadow: 0 1px 3px rgba(255, 180, 0, 0.3);
}

.rating-text-mini {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.view-all-reviews-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-reviews-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-all-reviews-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.view-all-reviews-btn:hover::before {
    left: 100%;
}

.view-all-reviews-btn:active {
    transform: translateY(0);
}

.view-all-reviews-btn i:last-child {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(3px);
    }
    60% {
        transform: translateY(1px);
    }
}

/* ===================================
   📱 Responsive Design
   ===================================*/

@media (max-width: 1199px) {
    .reviews-quick-access {
        display: none; /* در تبلت و موبایل مخفی می‌شود */
    }
    
    /* اطمینان از قابل دسترس بودن تب‌ها در موبایل */
    .product-tabs {
        position: relative;
        z-index: 10;
        margin-top: 30px;
    }
    
    .product-tabs .tab-header {
        position: sticky;
        top: 70px;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 10px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1200px) {
    /* فقط در دسکتاپ نمایش داده می‌شود */
    .reviews-quick-access {
        display: block;
    }
    
    /* بهبود دسترسی به تب‌ها در دسکتاپ */
    .product-tabs {
        margin-top: 40px;
        position: relative;
    }
    
    .product-tabs .tab-header {
        position: sticky;
        top: 80px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 100;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        padding: 10px;
    }
    
    /* انیمیشن برای تب فعال */
    .tab-item.active {
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }
}

/* ===================================
   🎭 Animation and Effects
   ===================================*/

.reviews-quick-access {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse effect for engagement */
.reviews-quick-access:hover .rating-number-mini {
    animation: pulse-scale 1s ease-in-out;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Loading state for button */
.view-all-reviews-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.view-all-reviews-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   🌙 Dark Mode Support
   ===================================*/

[data-theme="dark"] .reviews-quick-access {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-color: rgba(76, 175, 80, 0.2);
}

[data-theme="dark"] .reviews-quick-access .reviews-title {
    color: #4CAF50;
}

[data-theme="dark"] .reviews-quick-access .reviews-count {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

[data-theme="dark"] .rating-text-mini {
    color: #b0b0b0;
}

/* ===================================
   🤔 Q&A Quick Access - نمایش کوتاه پرسش و پاسخ در نوار کناری
   ===================================*/

.qa-quick-access {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(25, 118, 210, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qa-quick-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976D2, #42A5F5, #26C6DA);
    border-radius: 16px 16px 0 0;
}

.qa-quick-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
}

.qa-quick-access .qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.qa-quick-access .qa-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1976D2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-quick-access .qa-title::before {
    content: '❓';
    font-size: 1rem;
}

.qa-quick-access .qa-count {
    background: rgba(25, 118, 210, 0.1);
    color: #1976D2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.qa-quick-view {
    margin-bottom: 18px;
}

.qa-stats-mini {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.qa-stat-mini {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.qa-stat-mini:hover {
    transform: scale(1.05);
}

.qa-stat-mini.answered {
    background: rgba(102, 187, 106, 0.1);
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.qa-stat-mini.pending {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.qa-stat-number-mini {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.qa-stat-mini.answered .qa-stat-number-mini {
    color: #66BB6A;
}

.qa-stat-mini.pending .qa-stat-number-mini {
    color: #FFA726;
}

.qa-stat-label-mini {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-stat-mini.answered .qa-stat-label-mini {
    color: #66BB6A;
}

.qa-stat-mini.pending .qa-stat-label-mini {
    color: #FFA726;
}

.view-all-qa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-qa-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-all-qa-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.view-all-qa-btn:hover::before {
    left: 100%;
}

.view-all-qa-btn:active {
    transform: translateY(0);
}

.view-all-qa-btn i:last-child {
    animation: bounce-down-qa 2s ease-in-out infinite;
}

@keyframes bounce-down-qa {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(3px);
    }
    60% {
        transform: translateY(1px);
    }
}

/* Responsive Q&A Quick Access */
@media (max-width: 1199px) {
    .qa-quick-access {
        display: none; /* در تبلت و موبایل مخفی می‌شود */
    }
}

@media (min-width: 1200px) {
    .qa-quick-access {
        display: block;
    }
}

/* Q&A Animation */
.qa-quick-access {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Pulse effect for engagement */
.qa-quick-access:hover .qa-stat-number-mini {
    animation: pulse-scale 1s ease-in-out;
}

/* Dark Mode Support for Q&A */
[data-theme="dark"] .qa-quick-access {
    background: linear-gradient(135deg, #263238 0%, #37474F 100%);
    border-color: rgba(25, 118, 210, 0.2);
}

[data-theme="dark"] .qa-quick-access .qa-title {
    color: #42A5F5;
}

[data-theme="dark"] .qa-quick-access .qa-count {
    background: rgba(25, 118, 210, 0.2);
    color: #42A5F5;
}

[data-theme="dark"] .qa-stat-mini.answered {
    background: rgba(102, 187, 106, 0.15);
    border-color: rgba(102, 187, 106, 0.3);
}

[data-theme="dark"] .qa-stat-mini.pending {
    background: rgba(255, 167, 38, 0.15);
    border-color: rgba(255, 167, 38, 0.3);
} 