/**
 * Reviews Engine Styles
 * Стили для системы динамических отзывов
 */

/* Reviews section */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 800px;
    max-height: 800px;
    overflow: hidden;
    position: relative;
}

/* Градиент снизу для эффекта исчезновения */
.reviews-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Review item */
.review-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 8px;
}

.review-item.new-review {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b3 100%);
    border: 2px solid #FF8C00;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    animation: newReviewPulse 2s ease-in-out;
}

@keyframes newReviewPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(255, 140, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    }
}

/* Review header */
.review-header {
    margin-bottom: 8px;
}

.review-info {
    width: 100%;
}

.review-name {
    font-size: 13px;
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-date {
    font-size: 11px;
    font-weight: 300;
    color: #6e6e73;
    margin-left: 8px;
}

/* Review text */
.review-text {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.35;
    color: #1d1d1f;
    margin: 0;
    padding-bottom: 32px;
}

/* Review photos */
.review-photos {
    margin: 8px 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.review-photos img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.review-photos img:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.photo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.photo-more:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

/* Review reactions - positioned like Telegram */
.review-reactions {
    display: flex;
    gap: 6px;
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 5;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reaction-btn.compact {
    padding: 4px 8px;
    gap: 3px;
    font-size: 11px;
    border-radius: 12px;
}

.reaction-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.reaction-btn.active {
    background: #fff3e0;
    border-color: #FF8C00;
    color: #FF8C00;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.2);
}

.reaction-btn.active.like {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #4caf50;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.reaction-btn.active.dislike {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.reaction-emoji {
    font-size: 14px;
}

.reaction-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Reviews actions */
.reviews-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.reviews-actions .cta-button {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    padding: 10px 12px;
    font-size: 13px;
    box-shadow: none;
}

.reviews-actions .cta-button:hover {
    box-shadow: none;
}

/* Responsive */
@media (min-width: 768px) {
    .review-item {
        padding: 20px;
        border-radius: 16px;
    }
    
    .review-header {
        margin-bottom: 16px;
    }
    
    .review-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .review-date {
        font-size: 14px;
    }
    
    .review-text {
        font-size: 15px;
        line-height: 1.6;
    }
}
