/* reviews.css - Стилі для відгуків та модального вікна */

/* 1. Секція відгуків */
.reviews-section { 
    padding: 40px 15px; 
    background: #fdfdfd; 
    text-align: center; 
}
.reviews-section h2 { 
    margin-bottom: 25px; 
    font-size: 26px; 
    color: #222;
}

/* 2. Сітка та Картки відгуків */
.reviews-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 450px; 
    margin: 0 auto; 
    text-align: left; 
}
.review-card { 
    background: #fff; 
    border-radius: 15px; 
    padding: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    border: 1px solid #eee; 
    transition: transform 0.2s ease;
}

/* 3. Шапка відгуку (Аватар + Ім'я) */
.rev-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}
.rev-avatar { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #27ae60; 
    background: #f0f0f0;
}
.rev-info-meta { flex-grow: 1; }
.rev-name { 
    display: block; 
    font-weight: bold; 
    font-size: 16px; 
    color: #333; 
    margin-bottom: 2px;
}
.rev-date { font-size: 12px; color: #999; }
.rev-rating { 
    color: #ffcc00; 
    font-size: 14px; 
    letter-spacing: 1px;
}

/* 4. Текст та Фото покупців */
.rev-text { 
    line-height: 1.5; 
    color: #444; 
    margin-bottom: 15px; 
    font-size: 15px; 
}
.rev-photos { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}
.rev-photos img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 1px solid #ddd; 
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.rev-photos img:hover { 
    opacity: 0.8; 
    transform: scale(1.05);
}

/* 5. Кнопка "Показати ще" */
.reviews-actions { 
    text-align: center; 
    margin-top: 25px; 
}
.btn-load-more { 
    padding: 14px 40px; 
    background: #27ae60; 
    color: white; 
    border: none; 
    border-radius: 30px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold; 
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(39,174,96,0.2);
}
.btn-load-more:hover { 
    background: #219150; 
    box-shadow: 0 6px 15px rgba(39,174,96,0.3);
}

/* 6. Модальне вікно (Lightbox) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    max-width: 95%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: default;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 45px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

@media (max-width: 400px) {
    .rev-photos img {
        width: 60px;
        height: 60px;
    }
}