/* reviews.css */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap');

/* Общие стили */
body {
    font-family: 'Merriweather', serif;
    background-color: #0c0c0c;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Навигационное меню */
.navbar {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.nav-logo {
    color: #b8860b;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #daa520;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.nav-links a:hover {
    color: #b8860b;
}

/* Общие стили для секций */
.section-title {
    font-size: 2.2em;
    color: #b8860b;
    border-bottom: 2px solid #b8860b;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* Стили для сетки отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #b8860b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-rating {
    margin-bottom: 15px;
}

.review-rating ion-icon {
    color: #ffc107; /* Золотистый цвет звёзд */
    font-size: 1.5em;
}

.review-card blockquote {
    margin: 0;
    padding: 0;
    font-size: 1.1em;
    font-style: italic;
    flex-grow: 1;
}

.review-card cite {
    display: flex;
    align-items: center;
    margin-top: 15px;
    text-align: right;
    font-size: 0.9em;
    color: #aaa;
    justify-content: flex-end; /* Выравнивание по правому краю */
}

.reader-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #b8860b;
}

.review-card cite a {
    color: #b8860b;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 5px; /* Небольшой отступ от имени */
}

.review-card cite a:hover {
    color: #daa520;
    text-decoration: underline;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #121212;
    margin-top: 0;
    font-size: 0.9em;
    color: #666;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links a {
        margin: 0 10px;
    }
}