/* кастомные донастройки для атмосферы новелл */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fefaf5;  /* тёплый бумажный оттенок */
    color: #2c241a;
}
/* акцентный цвет — глубокий бордово-коричневый, приятный для чтения */
.accent-color {
    color: #a33c2c;
}
.bg-accent {
    background-color: #a33c2c;
}
.btn-accent {
    background-color: #a33c2c;
    border-color: #a33c2c;
    color: white;
}
.btn-accent:hover {
    background-color: #822b1e;
    border-color: #822b1e;
    color: #fff;
}
.btn-outline-accent {
    border-color: #a33c2c;
    color: #a33c2c;
}
.btn-outline-accent:hover {
    background-color: #a33c2c;
    color: white;
}
.hero-section {
    background: linear-gradient(135deg, #f9efea 0%, #f3e5db 100%);
    border-bottom: 1px solid rgba(163,60,44,0.15);
}
.card-novel {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
}
.card-novel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
}
.placeholder-img {
    aspect-ratio: 3 / 4;  /* Соотношение сторон 3:4, как у книг */
    width: 100%;
    background: linear-gradient(145deg, #e2dcd5, #cdc2b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f6b5a;
    font-size: 2.8rem;
    font-weight: 500;
    text-align: center;
    min-height: 200px;
    transition: all 0.2s;
}
.badge-category {
    background-color: #f0e7e0;
    color: #6b4e3a;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
}
footer a {
    text-decoration: none;
    color: #c6a88b;
    transition: color 0.2s;
}
footer a:hover {
    color: #a33c2c;
}
.feature-icon {
    font-size: 2.2rem;
    color: #a33c2c;
}
hr {
    opacity: 0.3;
    background-color: #a33c2c;
}
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    .placeholder-img {
        min-height: 160px;
        font-size: 2rem;
    }
}


/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ОШИБКИ ========== */
/* центрирование страницы ошибки */
.error-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

/* карточка ошибки в стиле проекта */
.error-card {
    background: #ffffff;
    border: none;
    border-radius: 1.75rem;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* декоративная полоска вверху карточки */
.card-accent-top {
    height: 6px;
    background: linear-gradient(90deg, #a33c2c, #d97a5c, #a33c2c);
}

/* круглая иллюстрация для 404 */
.error-illustration {
    background: linear-gradient(145deg, #f8ede5, #f3e2d6);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 12px 20px -8px rgba(163,60,44,0.15);
}

/* стилизация цифры 404 */
.error-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a33c2c, #c96b4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
}

/* кастомный alert в стиле проекта */
.alert-custom {
    background-color: #fef2e8;
    border-left: 4px solid #a33c2c;
    border-radius: 1rem;
    color: #4a2c1f;
    font-size: 0.9rem;
}

/* анимация для кнопок */
.btn-icon {
    transition: all 0.2s ease;
}
.btn-icon:hover i {
    transform: translateX(-3px);
}
.btn-icon-right:hover i {
    transform: translateX(3px);
}

/* ссылки-заглушки */
.suggest-link {
    color: #a33c2c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.suggest-link:hover {
    color: #822b1e;
    text-decoration: underline;
}

/* адаптация для мобильных */
@media (max-width: 576px) {
    .error-illustration {
        width: 100px;
        height: 100px;
    }
    .error-number {
        font-size: 3rem;
    }
    .error-card .card-body {
        padding: 1.75rem !important;
    }
}
