/* ============ Tourism News Widget ============ */
#news-widget {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}

.news-card {
    background: var(--color-card, #141c29);
    border: 1px solid var(--color-border, #2a3547);
    border-radius: 14px;
    padding: 18px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #2a3547);
}

.news-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent, #41d8ff);
    margin: 0;
    letter-spacing: 0.4px;
}

.news-refresh {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #8fa1b8;
    transition: color 0.2s, transform 0.3s;
}

.news-refresh:hover:not(:disabled) {
    color: var(--color-accent, #41d8ff);
    transform: rotate(90deg);
}

.news-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #2a3547 transparent;
}

.news-list::-webkit-scrollbar { width: 6px; }
.news-list::-webkit-scrollbar-thumb { background: #2a3547; border-radius: 3px; }

.news-item {
    padding: 12px 14px;
    background: var(--color-background, #0d1420);
    border-radius: 10px;
    border-left: 3px solid var(--color-accent, #41d8ff);
    transition: background 0.2s;
}

.news-item:hover { background: #101a2a; }

.news-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text, #e8f2ff);
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 6px;
}

.news-title:hover {
    color: var(--color-accent, #41d8ff);
    text-decoration: underline;
}

.news-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #6b7a90;
    margin-bottom: 6px;
}

.news-source {
    color: var(--color-accent, #41d8ff);
    font-weight: 600;
}

.news-summary {
    font-size: 12px;
    color: #8fa1b8;
    line-height: 1.5;
    margin: 0;
}

.news-footer {
    margin-top: 12px;
    text-align: center;
}

.news-more {
    display: inline-block;
    font-size: 12px;
    color: var(--color-accent, #41d8ff);
    text-decoration: none;
    padding: 7px 18px;
    border: 1px solid var(--color-accent, #41d8ff);
    border-radius: 8px;
    transition: background 0.2s;
}

.news-more:hover { background: rgba(65, 216, 255, 0.12); }

.news-empty {
    text-align: center;
    padding: 30px 20px;
    color: #6b7a90;
    font-size: 13px;
}

/* Modal window containing all news */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal {
    background: #151b28;
    border: 1px solid #2a3547;
    border-radius: 14px;
    width: 92vw;
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #2a3547;
}

.news-modal-header h2 {
    font-size: 17px;
    color: var(--color-accent, #41d8ff);
    margin: 0;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #8fa1b8;
    cursor: pointer;
}

.news-modal-close:hover { color: #e8f2ff; }

.news-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.news-modal-body .news-list { max-height: none; }

/* ============ СЧЁТЧИК НОВОСТЕЙ В МЕНЮ ============ */
.news-badge {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 9px;
    background: var(--color-accent, #41d8ff);
    color: #0a0e1a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(65, 216, 255, 0.5);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(65, 216, 255, 0.4); }
    50% { box-shadow: 0 0 12px rgba(65, 216, 255, 0.8); }
}

.news-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.news-modal .news-refresh {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #8fa1b8;
    transition: color 0.2s, transform 0.3s;
}

.news-modal .news-refresh:hover:not(:disabled) {
    color: var(--color-accent, #41d8ff);
    transform: rotate(90deg);
}

.news-modal .news-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* скрытый бейдж реально скрыт */
.news-badge[hidden] {
    display: none !important;
}
