/* Customer Account - Reviews & Questions */
.customer-reviews-questions {
    padding: 20px 0;
}

/* Статистика */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 48px;
    opacity: 0.9;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Таби */
.review-question-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.tab-btn.active {
    color: #00a046;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #00a046;
}

/* Tab panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Review/Question Items */
.review-item,
.question-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-item:hover,
.question-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Review header */
.review-header,
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating .star {
    font-size: 20px;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-rating .star.empty {
    color: #e0e0e0;
}

.review-date,
.question-date {
    color: #999;
    font-size: 14px;
}

.question-icon {
    font-size: 24px;
}

/* Content */
.review-content,
.question-content {
    margin-bottom: 20px;
}

.review-text,
.question-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.review-section {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.review-section strong {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-section p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.review-section.advantages {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.review-section.disadvantages {
    background: #ffebee;
    border-left: 3px solid #f44336;
}

/* Footer */
.review-footer,
.question-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Admin reply/answer */
.admin-reply,
.admin-answer {
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border-left: 3px solid #00a046;
    border-radius: 8px;
}

.reply-label,
.answer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.reply-icon,
.answer-icon {
    font-size: 18px;
}

.admin-reply strong,
.admin-answer strong {
    color: #00a046;
    font-size: 14px;
}

.admin-reply p,
.admin-answer p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .review-item,
    .question-item {
        padding: 20px 15px;
    }
    
    .review-header,
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-question-tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
}
