﻿/* Главная страница - стили */

/* Цвета берутся из colors.css */

/* Обеспечиваем одинаковые отступы между блоками */
#quotes,
#topics,
#books {
    margin-top: 0.5rem !important; /* Одинаковый отступ сверху для всех блоков */
    margin-bottom: 1rem !important; /* Одинаковый отступ снизу для всех блоков */
}

/* Стили для блока цитат */
.quotes-bg {
    height: 40vh;
    background-color: white;
}

/* Стиль авторов (взято из третьего варианта) */
#quotes .fst-italic {
    color: #6c757d;
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
}

/* Стиль авторов книг (взято из третьего варианта) */
#books .card-text:last-child {
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

/* Значки тем (взято из первого варианта) */
.topic-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Значки книг (взято из первого варианта) */
.book-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Контент книги */
.book-content {
    flex-grow: 1;
    min-width: 0; /* Позволяет тексту сжиматься */
}

.book-vote {
    flex-shrink: 0;
    align-self: flex-start;
}

/* Шрифты для заголовков (взято из первого варианта) */
#topics .card-title,
#books .card-title {
    color: var(--dark-viridian);
    font-weight: 600;
    line-height: 1.3;
}

/* Шрифты для описаний (взято из первого варианта) */
#topics .card-text,
#books .card-text {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Современный стиль для ссылок */
.modern-link {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--body-font-color) !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.modern-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.modern-link:hover::after {
    width: 100%;
}

.modern-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Эффекты при наведении для карточек тем и книг убраны */
#topics .card,
#books .card {
    border: 2px solid transparent;
}

/* Эффект при наведении для значков */
#topics .card:hover .topic-icon,
#books .card:hover .book-icon {
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

/* Анимация появления карточек убрана */

/* Специальные эффекты для плиток тем */
#topics .card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#topics .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164, 195, 178, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

#topics .card:hover::before {
    left: 100%;
}

#topics .card:hover {
    border-color: var(--viridian);
    box-shadow: 0 12px 35px rgba(107, 144, 128, 0.25);
}

#topics .card:hover .topic-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#topics .card:hover .card-title {
    color: var(--viridian);
    transition: color 0.3s ease;
}

/* Эффекты для плиток книг */
#books .card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#books .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(164, 195, 178, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

#books .card:hover::before {
    left: 100%;
}

#books .card:hover {
    border-color: var(--viridian);
    box-shadow: 0 12px 35px rgba(107, 144, 128, 0.25);
}

#books .card:hover .book-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#books .card:hover .card-title {
    color: var(--viridian);
    transition: color 0.3s ease;
}
