/* ========== СТРАНИЦА ПРОСМОТРА РЕЦЕНЗИИ ========== */

/* Основной контейнер */
.review-detail-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.review-detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Основной контент */
.review-detail-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Хлебные крошки */
.review-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-link:hover {
    color: #e94560;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 600;
}

/* Заголовок рецензии */
.review-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px;
    line-height: 1.3;
}

/* Мета-информация */
.review-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 25px;
}

.review-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-detail-meta-item i {
    color: #e94560;
}

/* Информация о фильме/сериале */
.review-detail-item-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.review-detail-item-poster {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    flex-shrink: 0;
}

.review-detail-item-details {
    flex: 1;
}

.review-detail-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px;
}

.review-detail-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.review-detail-item-title a:hover {
    color: #e94560;
}

.review-detail-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Бейдж типа */
.review-detail-item-badge {
    background: #e94560;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.review-detail-item-badge.series {
    background: #8b5cf6;
}

/* Рейтинг */
.review-detail-item-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #f1c40f;
}

/* Ссылка "Подробнее" */
.review-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
    border: none;
    margin-top: 10px;
}

.review-item-link.series {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.review-item-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
    color: white;
}

.review-item-link.series:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.review-item-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.review-item-link:hover i {
    transform: translateX(4px);
}

/* Текст рецензии */
.review-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2c3e50;
}

.review-detail-body p {
    margin-bottom: 20px;
}

.review-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
}

.review-detail-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 12px;
}

.review-detail-body ul,
.review-detail-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.review-detail-body li {
    margin-bottom: 8px;
}

.review-detail-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #e94560;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.review-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Футер рецензии */
.review-detail-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Теги */
.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.review-tag:hover {
    background: #e94560;
    color: white;
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.2);
}

.review-tag i {
    font-size: 0.7rem;
}

/* Кнопки соцсетей */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e1e8ed;
    background: #ffffff;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-button.vk:hover {
    background: #4a76a8;
    border-color: #4a76a8;
    color: white;
}

.share-button.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
}

.share-button.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-button.copy:hover {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.share-button i {
    font-size: 1rem;
}

/* ========== БОКОВАЯ ПАНЕЛЬ ========== */

.review-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

/* Карточка автора */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px;
}

.author-bio {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 15px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-stat-value {
    font-weight: 700;
    color: #e94560;
    font-size: 1.1rem;
}

/* Связанные рецензии */
.related-review-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.related-review-link:last-child {
    margin-bottom: 0;
}

.related-review-link:hover {
    border-color: #e94560;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.1);
    transform: translateX(4px);
}

.related-review-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    flex-shrink: 0;
}

.related-review-info {
    flex: 1;
    min-width: 0;
}

.related-review-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.related-review-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-review-meta i {
    font-size: 0.7rem;
}

/* Ссылка "Все рецензии" */
.all-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
}

.all-reviews-link:hover {
    background: #e94560;
    color: white;
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.all-reviews-link i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.all-reviews-link:hover i {
    transform: translateX(4px);
}

/* Навигация */
.review-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    max-width: 48%;
}

.nav-button:hover {
    background: #e94560;
    color: white;
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.nav-button i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-button.prev:hover i {
    transform: translateX(-4px);
}

.nav-button.next:hover i {
    transform: translateX(4px);
}

.nav-button.next {
    margin-left: auto;
    text-align: right;
}

.nav-button-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.empty-state i {
    font-size: 4rem;
    color: #e1e8ed;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 10px;
}

.empty-state p {
    color: #7f8c8d;
    margin: 0 0 20px;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.empty-state .btn:hover {
    background: #c73e54;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
    .review-detail-container {
        grid-template-columns: 1fr;
    }
    
    .review-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .review-detail-section {
        margin: 20px auto;
    }
    
    .review-detail-content {
        padding: 20px;
    }
    
    .review-detail-title {
        font-size: 1.5rem;
    }
    
    .review-detail-item-info {
        flex-direction: column;
        text-align: center;
    }
    
    .review-detail-item-meta {
        justify-content: center;
    }
    
    .review-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-navigation {
        flex-direction: column;
    }
    
    .nav-button {
        max-width: 100%;
        justify-content: center;
    }
    
    .nav-button.next {
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .review-detail-item-poster {
        width: 100px;
        height: 150px;
    }
    
    .share-button {
        width: 36px;
        height: 36px;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}