/* news.css - стили для страницы новостей */

/* Общие стили наследуются от login.css, добавляем только специфичные для news.php */

/* Контейнер новостей */
.news-container {
    padding: 10px;
}

/* Список новостей */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка новости */
.news-item {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Заголовки новостей */
.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.news-title-link {
    color: #5c1306;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.news-title-link:hover {
    color: #bd2c16;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Текст новости */
.news-text {
    font-size: 14px;
    line-height: 1.5;
    color: #2b1a0a;
    margin-bottom: 12px;
}

/* Кнопка "Читать далее" */
.news-read-more {
    text-align: right;
}

.read-more-link {
    color: #801c0c;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: #bd2c16;
    text-decoration: underline;
}

/* Полная новость */
.news-single {
    padding: 10px;
}

.news-single-title {
    font-size: 24px;
    color: #5c1306;
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
}

.news-single-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2b1a0a;
    margin: 20px 0;
}

.news-single-text p {
    margin-bottom: 15px;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #d4af37;
    font-weight: bold;
    transition: filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #d4af37;
    flex-wrap: wrap;
}

.news-pagination-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f4e5c3;
    border: 1px solid #705431;
    border-radius: 4px;
    color: #3b240f;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
}

.news-pagination-link:hover {
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    border-color: #d4af37;
}

.news-pagination-current {
    background: linear-gradient(to bottom, #bd2c16 0%, #5c1306 100%);
    color: #fff2cc;
    border-color: #d4af37;
    cursor: default;
}

/* Бейджи типов новостей (переопределяем из login.css) */
.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.news-type-regular {
    background: #2e5c2e;
    color: #e8f5e8;
}

.news-type-fast {
    background: #2e5c2e;
    color: #e8f5e8;
}

.news-type-best {
    background: #d4af37;
    color: #1a0f0a;
}

.news-type-client {
    background: #5c1306;
    color: #ffccaa;
}

/* Заголовок страницы */
.news-container h1 {
    font-size: 22px;
    color: #5c1306;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed #8c6939;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .news-title-link {
        font-size: 16px;
    }
    
    .news-single-title {
        font-size: 20px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-item {
        padding: 15px;
    }
}