/*
Theme Name: Ducatibox Child
Theme URI: https://rycar39.ru
Author: Your Name
Author URI: https://rycar39.ru
Description: Дочерняя тема для автосервиса Rycar
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ducatibox
Text Domain: ducatibox-child
Tags: automotive, service, reviews
*/

/* ========== ВАШИ СТИЛИ ДЛЯ ОТЗЫВОВ ========== */
:root {
    --rycar-primary: #8DC63F;
    --rycar-primary-hover: #7ab52d;
}

.rycar-breadcrumbs { font-size: 13px; color: #888; }
.rycar-reviews-archive .row { align-items: stretch !important; }

.rycar-review-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
    padding: 20px !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
}
.rycar-review-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); }

.rycar-review-card .card-header-custom { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rycar-source-icon-wrapper img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; display: block; }
.rycar-author-info { flex-grow: 1; min-width: 0; }
.rycar-author-name { font-weight: 700; font-size: 15px; color: #222; line-height: 1.3; display: block; }
.rycar-author-date { font-size: 13px; color: #999; line-height: 1.2; }
.rycar-stars { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
.rycar-stars .star { color: #FFD700; font-size: 14px; line-height: 1; }

.rycar-text {
    font-size: 14px; line-height: 1.6; color: #444; margin: 0 0 10px 0 !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
    overflow: hidden; text-overflow: ellipsis; flex-grow: 0;
}
.rycar-read-more {
    background: none !important; border: none !important; padding: 0 !important; margin: 0 !important;
    font-size: 14px; font-weight: 600; color: var(--rycar-primary) !important;
    text-decoration: none; cursor: pointer; align-self: flex-start; line-height: 1.4; transition: color 0.2s;
}
.rycar-read-more:hover { color: var(--rycar-primary-hover) !important; text-decoration: underline; }
.rycar-review-card a { color: var(--rycar-primary); text-decoration: none; }
.rycar-review-card a:hover { opacity: 0.85; }

/* Модальное окно */
.rycar-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999 !important;
    display: none; justify-content: center; align-items: center; padding: 20px;
    pointer-events: none; visibility: hidden; opacity: 0; transition: opacity 0.2s ease;
}
.rycar-modal-overlay.active { display: flex; pointer-events: auto; visibility: visible; opacity: 1; }
.rycar-modal-box {
    background: #fff; border-radius: 10px; padding: 30px;
    max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative;
}
.rycar-modal-close {
    position: absolute !important; top: 12px !important; right: 16px !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    padding: 0 !important; margin: 0 !important; width: 32px !important; height: 32px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 28px !important; font-weight: 300 !important; color: #888 !important;
    cursor: pointer !important; line-height: 1 !important; z-index: 100 !important; transition: color 0.2s ease;
}
.rycar-modal-close:hover { color: #333 !important; }
.rycar-modal-header { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; }
.rycar-modal-text { font-size: 15px; line-height: 1.7; color: #333; }

@media (max-width: 768px) {
    .rycar-review-card .card-header-custom { flex-direction: column; align-items: flex-start; }
    .rycar-stars { margin-left: 0; margin-top: 8px; }
}