/* ============================================
   NEWS PAGE STYLES — AZERION THEME
   Основан на главном CSS-файле
   ============================================ */

/* --- Базовые переменные (наследуются из root) --- */
:root {
    --gold: #d5ad4a;
    --gold2: #f5d878;
    --gold-dark: #72551c;
    --ink: #06080b;
    --panel: #0c1117;
    --panel2: #111821;
    --muted: #8e98a4;
    --blue: #2c72c9;
    --red: #a83434;
}

/* --- Общий контейнер --- */
.news-container {
    max-width: 1600px;
    margin: 30px auto 0;
    padding: 20px 20px 40px;
    background: linear-gradient(180deg, rgba(40, 45, 60), rgba(40, 45, 60));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(155 157 164);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
    border-radius: 4px;
}

.news-container::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgb(170 172 178 / 22%);
    pointer-events: none;
}

.news-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        linear-gradient(var(--gold), var(--gold)) left top / 16px 1px,
        linear-gradient(var(--gold), var(--gold)) left top / 1px 16px,
        linear-gradient(var(--gold), var(--gold)) right top / 16px 1px,
        linear-gradient(var(--gold), var(--gold)) right top / 1px 16px,
        linear-gradient(var(--gold), var(--gold)) left bottom / 16px 1px,
        linear-gradient(var(--gold), var(--gold)) left bottom / 1px 16px,
        linear-gradient(var(--gold), var(--gold)) right bottom / 16px 1px,
        linear-gradient(var(--gold), var(--gold)) right bottom / 1px 16px;
    background-repeat: no-repeat;
    opacity: 0.15;
}

@media(max-width: 700px) {
    .news-container {
        padding: 10px 10px 20px;
        margin: 5px 10px 0px;
    }
}

/* ============================================
   ЗАГОЛОВОК СТРАНИЦЫ СПИСКА
   ============================================ */
.news-title {
    margin: 0;
    font: 900 clamp(32px, 5vw, 56px)/1.1 'Inter', sans-serif;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    background: rgb(161 163 170);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 0 #282d3c) drop-shadow(0 10px 20px #000);
}

.news-subtitle {
    font: 400 15px/1.8 'Inter', sans-serif;
    color: #bfbfbf;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Рунный разделитель --- */
.divider-runes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 18px auto 12px;
    max-width: 500px;
}

.divider-runes .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #989aa1, transparent);
    opacity: 0.4;
}

.divider-runes .rune-symbol {
    font-size: 13px;
    letter-spacing: 6px;
    color: #ffffff;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   КАТЕГОРИИ (TABS)
   ============================================ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 28px 0 32px;
}

.tab-btn {
    padding: 8px 18px;
    font: 700 11px/1 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-btn i {
    margin-right: 6px;
    font-size: 11px;
}

.tab-btn:hover {
    color: #aeb1b7;
    background: rgb(90 97 116);
    border-color: rgb(174 176 183);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #ffffff;
    background: rgb(90 97 116);
    border-color: #a6a8af;
    box-shadow: 0 0 25px rgba(213, 173, 74, 0.08), inset 0 1px 0 rgba(213, 173, 74, 0.15);
}

/* Цветные табы для категорий */
.tab-update.active { border-color: #2ecc71; }
.tab-event.active { border-color: #3498db; }
.tab-maintenance.active { border-color: #e74c3c; }
.tab-other.active { border-color: #9b59b6; }

/* ============================================
   КАРТОЧКИ НОВОСТЕЙ (ГРИД)
   ============================================ */
.news-card {
    display: block;
    text-decoration: none;
    background: rgba(50, 55, 70, 0.95);
    border: 1px solid rgb(167 169 176);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgb(199 201 208);
    box-shadow: 0 20px 55px rgba(0,0,0,0.55), 0 0 30px rgba(213, 173, 74, 0.06);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #1a1e28;
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-body {
    padding: 18px 20px 20px;
}

/* Мета-информация карточки */
.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    font-size: 11px;
}

.news-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.news-card-date {
    color: #9d9fa6;
    font-size: 11px;
}

.news-card-date i {
    margin-right: 4px;
}

.news-card-important {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d24a3d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: auto;
}

.news-card-title {
    margin: 0 0 10px;
    font: 700 18px/1.3 'Inter', sans-serif;
    color: #9a9ca2;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: #ffffff;
}

.news-card-excerpt {
    margin: 0 0 16px;
    font: 400 14px/1.7 'Inter', sans-serif;
    color: #b0b5bd;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card-author {
    font-size: 12px;
    color: #8e98a4;
}

.news-card-readmore {
    font: 700 11px/1 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e9e9eb;
    transition: all 0.2s;
}

.news-card-readmore i {
    transition: transform 0.2s;
}

.news-card:hover .news-card-readmore i {
    transform: translateX(4px);
}

/* ============================================
   ПУСТОЕ СОСТОЯНИЕ
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px 80px;
}

.empty-state .icon {
    font-size: 54px;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 18px;
}

.empty-state h3 {
    font: 700 22px 'Inter', sans-serif;
    color: #ffffff;
    margin: 0 0 8px;
}

.empty-state p {
    font: 400 15px 'Inter', sans-serif;
    color: #9d9fa6;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 36px;
    padding: 16px 20px;
    background: rgba(50, 55, 70, 0.5);
    border: 1px solid rgb(167 169 176);
    border-radius: 4px;
}

.pagination a,
.pagination .page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font: 600 14px 'Inter', sans-serif;
    color: #aeb1b7;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pagination a:hover {
    color: #ffffff;
    background: rgb(90 97 116);
    border-color: rgb(174 176 183);
    transform: translateY(-2px);
}

.pagination .page-current {
    color: #ffffff;
    background: rgb(90 97 116);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(213, 173, 74, 0.06);
}

/* ============================================
   ЕДИНИЧНАЯ СТАТЬЯ (SINGLE)
   ============================================ */
.single-article {
    padding: 10px 0;
}

.single-article-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

/* Левая колонка — контент */
.article-content {
    min-width: 0;
}

.article-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 24px;
    border: 1px solid rgb(167 169 176);
    background: #1a1e28;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}

.single-title {
    font: 900 clamp(28px, 4vw, 48px)/1.15 'Inter', sans-serif;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.single-title .news-card-important {
    font-size: 0.5rem;
    padding: 4px 12px;
    background: rgba(213, 173, 74, 0.12);
    border: 1px solid rgba(213, 173, 74, 0.25);
    border-radius: 4px;
    color: var(--gold);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    font-size: 13px;
    color: #9d9fa6;
}

.single-meta .item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.single-meta .item i {
    font-size: 14px;
    color: var(--gold);
    opacity: 0.6;
}

.single-content {
    font: 400 16px/1.9 'Inter', sans-serif;
    color: #d5d9e0;
    padding: 6px 0 10px;
}

.single-content p {
    margin: 0 0 18px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font: 700 12px 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(#313645, #14161e);
    border: 1px solid #a6a8af;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 8px 22px rgba(0,0,0,0.45);
}

.back-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
    box-shadow: 0 12px 28px rgba(0,0,0,0.6), 0 0 18px rgba(213,173,74,0.12);
}

/* ============================================
   САЙДБАР (ПРАВАЯ КОЛОНКА)
   ============================================ */
.single-sidebar {
    position: relative;
}

.single-sidebar-inner {
    position: sticky;
    top: 90px;
}

.single-sidebar-card {
    background: rgba(50, 55, 70, 0.95);
    border: 1px solid rgb(167 169 176);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
    margin-bottom: 18px;
}

.single-sidebar-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgb(166 168 175);
    display: flex;
    align-items: center;
}

.single-sidebar-header h2 {
    margin: 0;
    font: 700 13px 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.single-sidebar-header h2 i {
    margin-right: 10px;
    color: var(--gold);
    opacity: 0.6;
}

.single-sidebar-body {
    padding: 14px 16px 16px;
}

/* Статус сервера в сайдбаре */
.single-realm-status {
    font-size: 13px;
    color: #c5c9d0;
    line-height: 1.7;
}

.single-realm-status .realm-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.single-realm-status .status-online {
    color: #2ecc71;
}
.single-realm-status .status-offline {
    color: #e74c3c;
}

/* Connect блок */
.single-connect {
    display: grid;
    gap: 8px;
}

.single-connect-row {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgb(154 156 163);
    border-radius: 4px;
}

.single-connect-row small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9d9fa6;
}

.single-connect-row b {
    display: block;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #fefefe;
    font-size: 13px;
}

/* Discord виджет */
.single-discord {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: 3px;
}

/* ============================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.10s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.20s; }
.fade-up-5 { animation-delay: 0.25s; }
.fade-up-6 { animation-delay: 0.30s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media(max-width: 1024px) {
    .single-article-wrapper {
        grid-template-columns: 1fr;
    }

    .single-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 18px;
    }

    .single-sidebar-card {
        margin-bottom: 0;
    }
}

@media(max-width: 700px) {
    .news-container {
        padding: 10px 10px 20px;
        margin: 5px 8px 0;
    }

    .news-title {
        font-size: clamp(26px, 8vw, 36px);
    }

    .category-tabs {
        gap: 4px;
        margin: 18px 0 22px;
    }

    .tab-btn {
        font-size: 10px;
        padding: 6px 12px;
    }

    .single-article-wrapper {
        gap: 20px;
    }

    .article-img {
        max-height: 260px;
    }

    .single-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .single-meta {
        gap: 10px 16px;
        font-size: 12px;
        padding: 12px 0 16px;
    }

    .single-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .single-sidebar {
        grid-template-columns: 1fr;
    }

    .single-discord {
        height: 320px;
    }

    .pagination {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 3px;
    }

    .pagination a,
    .pagination .page-current {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }

    .news-card-img {
        height: 160px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .divider-runes .rune-symbol {
        font-size: 11px;
        letter-spacing: 4px;
    }
}

@media(max-width: 480px) {
    .news-card-meta {
        gap: 4px 8px;
    }

    .news-card-important {
        font-size: 9px;
        margin-left: 0;
        width: 100%;
    }

    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
    }

    .single-meta .item {
        font-size: 11px;
    }
}