/* static/css/news-detail.css */

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

/* Карточка новости */
.news-detail-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

/* Заголовок */
.news-detail-title {
    font-size: 36px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Мета-информация */
.news-detail-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-date {
    font-size: 16px;
    color: #999;
    display: inline-block;
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Контент */
.news-detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Обертка для изображения */
.news-detail-image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-detail-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-detail-image:hover {
    transform: scale(1.02);
}

/* Текст новости */
.news-detail-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.news-detail-text p {
    margin-bottom: 20px;
}

.news-detail-text p:last-child {
    margin-bottom: 0;
}

/* Стили для форматированного текста */
.news-detail-text h1,
.news-detail-text h2,
.news-detail-text h3,
.news-detail-text h4,
.news-detail-text h5,
.news-detail-text h6 {
    color: #333;
    margin: 30px 0 15px 0;
}

.news-detail-text ul,
.news-detail-text ol {
    margin: 15px 0 20px 30px;
}

.news-detail-text li {
    margin-bottom: 8px;
}

.news-detail-text blockquote {
    margin: 20px 0;
    padding: 20px 30px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    font-style: italic;
    color: #555;
}

/* Футер с кнопкой назад */
.news-detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.btn-back:hover {
    background: transparent;
    color: #007bff;
    text-decoration: none;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .news-detail-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .news-detail-card {
        padding: 20px;
    }

    .news-detail-title {
        font-size: 28px;
    }

    .news-detail-meta {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .news-detail-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .news-detail-image {
        max-height: 400px;
    }

    .btn-back {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-date {
        font-size: 14px;
    }

    .news-detail-text {
        font-size: 15px;
    }

    .news-detail-image {
        max-height: 300px;
    }

    .btn-back {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-detail-card {
        padding: 30px;
    }

    .news-detail-title {
        font-size: 32px;
    }

    .news-detail-image {
        max-height: 500px;
    }
}

/* Опционально: если хотите добавить эффект параллакса для больших изображений */
@media (min-width: 1200px) {
    .news-detail-image-wrapper {
        max-height: 600px;
    }
}