/* 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;
}

.news-single-text img,
.news-single-cover img,
.news-preview-image img,
.news-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border: 1px solid #d4af37;
    border-radius: 4px;
    background: #fff;
}

.news-single-cover {
    margin-bottom: 16px;
    text-align: center;
}

.news-preview-image {
    float: left;
    margin: 0 12px 8px 0;
    max-width: 180px;
}

.news-preview-image img {
    margin: 0;
    max-height: 120px;
    object-fit: cover;
}

.news-text::after {
    content: "";
    display: table;
    clear: both;
}

/* Кнопки */
.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;
    }
}

/* Иконки артикулов из редактора — слот как в сумке */
.news-single-text .b-macro-art,
.news-single-text .b-common-slot {
    display: inline-block;
    vertical-align: middle;
    margin: 2px;
    line-height: 0;
    cursor: help;
}
.news-single-text .b-macro-art img {
    display: block;
    width: 64px;
    height: 64px;
    border: 0;
}
/* Тултип артикула (как в игре: Tahoma 11px + цвета из main.css / artifact_info) */
#artifact_alt {
    pointer-events: none;
    z-index: 1001;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: normal;
    color: #000;
    width: auto !important; /* не оставлять пустую полосу от width:300px у контейнера */
    overflow: hidden;
}
#artifact_alt,
#artifact_alt table,
#artifact_alt td,
#artifact_alt div,
#artifact_alt span,
#artifact_alt b,
#artifact_alt nobr {
    font-family: Tahoma, Verdana, Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: normal;
}
#artifact_alt table {
    border-collapse: collapse;
    border-spacing: 0;
}
#artifact_alt .aa-table {
    border-radius: 0; /* радиус + тень давали «прозрачную» полоску под рамкой */
    box-shadow: none;
}
#artifact_alt .aa-table * {
    font-size: 11px !important;
}
#artifact_alt a,
#artifact_alt a:link,
#artifact_alt a:visited,
#artifact_alt a:active {
    color: #BA0000;
    text-decoration: none;
}
#artifact_alt a:hover {
    text-decoration: underline;
}
#artifact_alt .b {
    font-weight: bold;
}
#artifact_alt .red,
#artifact_alt .red * {
    color: #d00000;
}
#artifact_alt .tbl_red {
    font-size: 11px;
    color: #BA0000;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    text-decoration: none;
}
#artifact_alt .blue,
#artifact_alt .blue * {
    color: #0000d0;
}
#artifact_alt .redd,
#artifact_alt .redd * {
    color: #BA0000 !important;
}
#artifact_alt .redd2,
#artifact_alt .redd2 * {
    color: #8a0108 !important;
}
#artifact_alt .grnn,
#artifact_alt .grnn * {
    color: #114d01 !important;
}
#artifact_alt .brown,
#artifact_alt .brown * {
    color: #955C4A !important;
}
#artifact_alt .dark,
#artifact_alt .dark * {
    color: #49382D !important;
}
#artifact_alt .dim,
#artifact_alt .dim * {
    color: #c49485;
}
#artifact_alt .violet,
#artifact_alt .violet * {
    color: #3615ac !important;
}
#artifact_alt .ecol {
    color: #B70000 !important;
}
#artifact_alt .underline,
#artifact_alt .underline * {
    text-decoration: underline !important;
}
#artifact_alt .skill_list td {
    padding: 0 7px;
}
#artifact_alt .skill_list td td {
    padding: 0;
}
#artifact_alt .pctntr {
    background-position: center;
    background-repeat: no-repeat;
}
.bg_alt3 {
    background-color: #FBD4A4;
    background-image: url(/images/bgg2.gif);
}
.bg_alt3 .list_dark {
    background-color: rgba(0, 0, 0, 0.09);
}
.bg_alt3 .list_dark2 {
    background-color: rgba(0, 0, 0, 0.12);
}
