/**
 * Стили для плагина отзывов Яндекс
 */

/* Общие стили */
.yr-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.yr-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 24px;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.yr-review {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.yr-review:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.yr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.yr-author {
    display: flex;
    align-items: center;
}

.yr-avatar, .yr-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
}

.yr-avatar-placeholder {
    background-color: #ff5539;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.yr-author-name {
    font-weight: 600;
    color: #333;
}

.yr-rating {
    display: flex;
}

.yr-star {
    color: #ccc;
    font-size: 18px;
    margin-left: 2px;
}

.yr-star-filled {
    color: #ffcc00;
}

.yr-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.yr-text {
    line-height: 1.5;
    color: #444;
}

.yr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.yr-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff5539;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.yr-button:hover {
    background-color: #ff3a1c;
}

.yr-source {
    font-size: 12px;
    color: #888;
}

.yr-yandex {
    color: #ff5539;
    font-weight: 600;
}

/* Стили для слайдера */
.yr-slider-layout .yr-slider {
    position: relative;
    overflow: hidden;
}

.yr-slider .yr-slide {
    display: none;
}

.yr-slider .yr-slide.active {
    display: block;
}

.yr-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.yr-prev-btn, .yr-next-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.yr-prev-btn:hover, .yr-next-btn:hover {
    background-color: #ff5539;
    border-color: #ff5539;
    color: white;
}

/* Стили для сетки */
.yr-grid-layout .yr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    margin-bottom: 20px;
}

/* Стили для списка */
.yr-list-layout .yr-list-item {
    margin-bottom: 15px;
}

/* Стили для виджета рейтинга */
.yr-rating-widget {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.yr-rating-stars {
    display: flex;
    margin-right: 10px;
}

.yr-rating-value {
    font-weight: bold;
    color: #ff5539;
    margin-right: 5px;
}

.yr-rating-count {
    color: #888;
    font-size: 14px;
}

.yr-rating-small .yr-star {
    font-size: 14px;
}

.yr-rating-medium .yr-star {
    font-size: 18px;
}

.yr-rating-large .yr-star {
    font-size: 24px;
}

/* Стили для административной панели */
.yr-admin-preview {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.yr-admin-guide {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.yr-admin-guide ul {
    margin-left: 20px;
}

/* Стили для статистики */
.yr-dashboard-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.yr-dashboard-stat {
    width: 48%;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.yr-big-rating, .yr-big-number {
    font-size: 24px;
    font-weight: bold;
    color: #ff5539;
    margin: 10px 0;
}

.yr-custom-reviews {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0;
}

.yr-ratings-distribution {
    margin-bottom: 20px;
}

.yr-rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.yr-rating-label {
    width: 70px;
}

.yr-rating-bar-wrap {
    flex-grow: 1;
    background-color: #f0f0f0;
    height: 15px;
    margin: 0 10px;
    border-radius: 3px;
    overflow: hidden;
}

.yr-rating-bar {
    height: 100%;
    background-color: #ffcc00;
}

.yr-rating-count {
    width: 30px;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 768px) {
    .yr-grid-layout .yr-grid {
        grid-template-columns: 1fr;
    }
    
    .yr-review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yr-rating {
        margin-top: 10px;
    }
    
    .yr-footer {
        flex-direction: column;
    }
    
    .yr-source {
        margin-top: 10px;
    }
    
    .yr-dashboard-stats {
        flex-direction: column;
    }
    
    .yr-dashboard-stat {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Центрирование и адаптивность */
.yr-container {
    max-width: 100%;
    margin: 30px auto !important;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .yr-grid, .yr-list, .yr-slider {
        display: block;
    }
    .yr-grid-item, .yr-list-item, .yr-slide {
        display: none;
    }
    .yr-grid-item:first-child,
    .yr-list-item:first-child,
    .yr-slide:first-child {
        display: block;
    }
}