/**
 * ============================================================================
 * V2 NEWS — Страница новостей
 * ============================================================================
 * 
 * @file        web/css/v2/news.css
 * @description Стили для страниц новостей: список и просмотр статьи
 * @version     1.0 (Декабрь 2025)
 * 
 * ============================================================================
 * СОДЕРЖИМОЕ:
 * ────────────────────────────────────────
 * 
 * 1. News Grid (.v2-news-grid, .v2-news-card)
 * 2. Pagination (.v2-pagination)
 * 3. Breadcrumbs (.v2-breadcrumbs)
 * 4. Article View (.v2-article, .v2-article-*)
 * 5. Related News (.v2-related-news)
 * 6. Sidebar CTA (.v2-sidebar-cta)
 * 
 * ============================================================================
 * ИСПОЛЬЗОВАНИЕ:
 * 
 * Список новостей:
 * <div class="v2-news-page">
 *     <div class="v2-page-header">...</div>
 *     <div class="v2-news-grid">
 *         <a class="v2-news-card">...</a>
 *     </div>
 *     <nav class="v2-pagination">...</nav>
 * </div>
 * 
 * Статья:
 * <div class="v2-news-view">
 *     <nav class="v2-breadcrumbs">...</nav>
 *     <article class="v2-article">...</article>
 * </div>
 * 
 * ============================================================================
 */

/* ==========================================================================
   1. NEWS GRID
   ========================================================================== */

.v2-news-page {
    padding: 20px 0;
}

.v2-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.v2-news-card {
    display: flex;
    flex-direction: column;
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all var(--v2-duration-normal) var(--v2-ease-smooth);
}

.v2-news-card:hover {
    transform: translateY(-4px);
    border-color: var(--v2-gold);
    box-shadow: var(--v2-shadow-hover);
    text-decoration: none;
}

.v2-news-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.v2-news-card-icon {
    font-size: 32px;
}

.v2-news-card-date {
    font-size: 13px;
    color: var(--v2-text-dim);
}

.v2-news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.v2-news-card-excerpt {
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.v2-news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-news-author {
    font-size: 12px;
    color: var(--v2-text-dim);
}

.v2-news-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-gold);
}

/* ==========================================================================
   2. PAGINATION
   ========================================================================== */

.v2-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.v2-pagination-btn {
    padding: 10px 20px;
    background: var(--v2-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-md);
    color: var(--v2-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--v2-duration-fast);
}

.v2-pagination-btn:hover {
    background: var(--v2-bg-elevated);
    border-color: var(--v2-gold);
    color: var(--v2-gold);
    text-decoration: none;
}

.v2-pagination-btn:disabled,
.v2-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.v2-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--v2-radius-sm);
    color: var(--v2-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--v2-duration-fast);
}

.v2-pagination-page:hover {
    background: var(--v2-bg-elevated);
    color: var(--v2-text);
    text-decoration: none;
}

.v2-pagination-page.active {
    background: var(--v2-gold);
    border-color: var(--v2-gold);
    color: #1a1a1a;
}

.v2-pagination-dots {
    color: var(--v2-text-dim);
    padding: 0 4px;
}

/* ==========================================================================
   3. BREADCRUMBS
   ========================================================================== */

.v2-news-view {
    padding: 20px 0;
}

.v2-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.v2-breadcrumb {
    color: var(--v2-text-muted);
    text-decoration: none;
    transition: color var(--v2-duration-fast);
}

.v2-breadcrumb:hover {
    color: var(--v2-gold);
}

.v2-breadcrumb-sep {
    color: var(--v2-text-dim);
}

.v2-breadcrumb-current {
    color: var(--v2-text);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   4. ARTICLE VIEW
   ========================================================================== */

.v2-article {
    background: var(--v2-bg-card);
    border-radius: var(--v2-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.v2-article-header {
    padding: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.v2-article-date {
    font-size: 13px;
    color: var(--v2-text-dim);
}

.v2-article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--v2-text);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.v2-article-lead {
    font-size: 18px;
    color: var(--v2-text-muted);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.v2-article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--v2-text-dim);
}

.v2-article-author-icon {
    font-size: 16px;
}

/* Article Content */
.v2-article-content {
    padding: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--v2-text);
}

.v2-article-content p {
    margin: 0 0 20px 0;
    color: var(--v2-text);
}

.v2-article-content h2,
.v2-article-content h3,
.v2-article-content h4 {
    margin: 32px 0 16px 0;
    color: var(--v2-text);
}

.v2-article-content h2 {
    font-size: 24px;
}

.v2-article-content h3 {
    font-size: 20px;
}

.v2-article-content h4 {
    font-size: 18px;
}

.v2-article-content a {
    color: var(--v2-gold);
    text-decoration: underline;
    word-wrap: break-word;
}

.v2-article-content h1 {
    font-size: 1.5rem;;
}

.v2-article-content a:hover {
    color: var(--v2-gold-light);
}

.v2-article-content ul,
.v2-article-content ol {
    padding-left: 24px;
    margin: 0 0 20px 0;
}

.v2-article-content li {
    margin-bottom: 8px;
}

.v2-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--v2-radius-md);
    margin: 20px 0;
}

.v2-article-content blockquote {
    border-left: 4px solid var(--v2-gold);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--v2-text-muted);
}

/* Article Footer */
.v2-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-article-share-label {
    font-size: 14px;
    color: var(--v2-text-dim);
}

.v2-share-btn {
    padding: 8px 16px;
    border-radius: var(--v2-radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--v2-duration-fast);
}

.v2-share-vk {
    background: rgba(0, 119, 255, 0.2);
    color: #0077ff;
}

.v2-share-vk:hover {
    background: #0077ff;
    color: #fff;
}

.v2-share-tg {
    background: rgba(36, 161, 222, 0.2);
    color: #24a1de;
}

.v2-share-tg:hover {
    background: #24a1de;
    color: #fff;
}

/* ==========================================================================
   5. RELATED NEWS
   ========================================================================== */

.v2-related-news {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--v2-radius-sm);
    text-decoration: none;
    transition: all var(--v2-duration-fast);
}

.v2-related-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.v2-related-tag {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--v2-radius-sm);
    font-size: 14px;
    flex-shrink: 0;
}

.v2-related-content {
    flex: 1;
    min-width: 0;
}

.v2-related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-related-date {
    font-size: 12px;
    color: var(--v2-text-dim);
}

/* ==========================================================================
   6. SIDEBAR CTA
   ========================================================================== */

.v2-card-cta {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.v2-sidebar-cta {
    text-align: center;
}

.v2-sidebar-cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.v2-sidebar-cta-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 8px 0;
}

.v2-sidebar-cta-text {
    font-size: 14px;
    color: var(--v2-text-muted);
    margin: 0 0 20px 0;
}

.v2-dashboard .v2-news-list .v2-news-item {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .v2-news-grid {
        grid-template-columns: 1fr;
    }

    .v2-article-title {
        font-size: 24px;
    }

    .v2-article-header,
    .v2-article-content,
    .v2-article-footer {
        padding: 20px;
    }

    .v2-article-footer {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .v2-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .v2-pagination-pages {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .v2-pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   8. LIGHT THEME
   ========================================================================== */

.v2-theme-light .v2-news-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-news-card:hover {
    border-color: var(--v2-gold);
}

.v2-theme-light .v2-news-card-footer {
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-pagination-btn,
.v2-theme-light .v2-pagination-page {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.v2-theme-light .v2-pagination-page.active {
    background: var(--v2-gold);
    border-color: var(--v2-gold);
}

.v2-theme-light .v2-article {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.v2-theme-light .v2-article-header {
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-article-footer {
    border-color: rgba(0, 0, 0, 0.06);
}

.v2-theme-light .v2-related-item {
    background: rgba(0, 0, 0, 0.02);
}

.v2-theme-light .v2-related-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.v2-theme-light .v2-card-cta {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

