/* === NEWS MODAL === */
.news-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: newsModalFadeIn 0.3s ease;
}

.news-modal-overlay.active {
    display: flex;
}

@keyframes newsModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes newsModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Модалка */
.news-modal {
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
    border: 1px solid rgba(152, 158, 161, 0.18);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: newsModalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Статичная шапка */
.news-modal-header {
    background: linear-gradient(135deg, #1a1c22 0%, #0f1115 100%);
    padding: 2rem;
    border-bottom: 1px solid rgba(152, 158, 161, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-shrink: 0;
}

.news-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #d6940d;
    line-height: 1.4;
}

.news-modal-close {
    background: transparent;
    border: none;
    color: #c1c9d2;
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.news-modal-close:hover {
    color: #d6940d;
    transform: rotate(90deg);
}

/* Скроллируемое тело */
.news-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Скроллбар 1 в 1 как на primer */
.news-modal-body::-webkit-scrollbar {
    width: 12px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0f1115, #1a1c22);
    border-left: 1px solid rgba(214, 148, 13, 0.1);
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d6940d, #faa608);
    border-radius: 6px;
    border: 2px solid #1a1c22;
    box-shadow: 0 0 10px rgba(214, 148, 13, 0.3);
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #faa608, #d6940d);
    box-shadow: 0 0 15px rgba(214, 148, 13, 0.6);
}

.news-modal-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #d6940d, #b67a00);
}

/* Firefox */
.news-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #d6940d #1a1c22;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #8b909a;
    font-size: 0.875rem;
}

.news-modal-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-modal-date svg {
    width: 16px;
    height: 16px;
}

.news-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #2a2c32;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-image iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.news-modal-content {
    color: #c1c9d2;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.news-modal-content p {
    margin-bottom: 1rem;
}

.news-modal-content p:last-child {
    margin-bottom: 0;
}

.news-modal-content strong {
    color: #d6940d;
    font-weight: 600;
}

.news-modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-modal-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(214, 148, 13, 0.1);
    border: 1px solid rgba(214, 148, 13, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #d6940d;
}

/* Responsive */
@media (max-width: 768px) {
    .news-modal {
        max-width: 95vw;
        max-height: 90vh;
    }

    .news-modal-header {
        padding: 1.5rem;
    }

    .news-modal-title {
        font-size: 1.5rem;
    }

    .news-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-modal-header {
        padding: 1.25rem;
    }

    .news-modal-title {
        font-size: 1.25rem;
    }

    .news-modal-body {
        padding: 1.25rem;
    }

    .news-modal-content {
        font-size: 0.95rem;
    }
}


