/* Базовые настройки экрана */
body {
    background-color: #0000aa; /* Фирменный синий "экран смерти" */
    color: #ffffff;
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* Убираем прокрутку для эффекта монитора */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Белый квадрат администрации в углу */
.admin-square {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 100;
}

/* Верхнее меню */
.vhs-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.vhs-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.vhs-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.vhs-menu a:hover, .vhs-menu a.active {
    background: white;
    color: #0000aa; /* Синий текст на белом при наведении */
}

/* Стили заголовка (Синий на белом) */
h1 {
    background-color: white;
    color: #0000aa;
    font-size: 4rem;
    padding: 10px 40px;
    margin: 0;
    text-transform: uppercase;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.3);
}

/* Контейнер с текстом */
.alert-container {
    text-align: center;
    max-width: 900px;
}

.message-box {
    margin-top: 30px;
    font-size: 2rem;
    line-height: 1.2;
}

/* Мигающий текст */
.blink-text {
    color: #ffff00; /* Желтый для предупреждения */
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Кнопка в стиле VHS */
.vhs-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    border: 3px solid white;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    transition: 0.2s;
}

.vhs-button:hover {
    background: white;
    color: #0000aa;
    transform: scale(1.1);
}

/* Нижние титры */
.footer-info {
    position: fixed;
    bottom: 20px;
    width: 95%;
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    opacity: 0.7;
}

/* Наложение полос старого ТВ */
.vhs-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.3;
}
/* Контейнер для списка новостей */
.news-container {
    margin-top: 100px;
    width: 80%;
    max-width: 800px;
    height: 80vh;
    overflow-y: auto; /* Позволяет листать новости, если их много */
    padding-right: 20px;
}

.news-title {
    font-size: 3rem;
    margin-bottom: 40px;
    display: block;
    text-align: center;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Стили отдельной новости */
.news-item {
    border-left: 5px solid white;
    padding-left: 20px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.news-date {
    color: #ffff00; /* Желтый цвет для даты */
    font-size: 1.2rem;
}

.news-item h2 {
    margin: 10px 0;
    font-size: 2rem;
    color: white;
}

.news-item p {
    font-size: 1.4rem;
    line-height: 1.4;
    opacity: 0.9;
}

.read-more {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    background: white;
    color: #0000aa;
}

/* Стили для критических новостей */
.news-item.critical {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

/* Стилизация полосы прокрутки в стиле ретро */
.news-container::-webkit-scrollbar {
    width: 10px;
}
.news-container::-webkit-scrollbar-track {
    background: #000088;
}
.news-container::-webkit-scrollbar-thumb {
    background: white;
}
/* Контейнер страницы отчета */
.report-container {
    margin-top: 80px;
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid white;
}

.report-header h1 {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.status-stamp {
    color: #ff0000;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #ff0000;
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 20px;
    transform: rotate(-5deg); /* Печать под наклоном */
}

.timestamp {
    color: #ffff00;
    font-size: 1.2rem;
    margin: 5px 0;
}

.full-text {
    font-size: 1.6rem;
    line-height: 1.5;
    margin: 30px 0;
    text-align: justify;
}

.back-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.5rem;
    display: inline-block;
    margin-top: 20px;
}

.back-link:hover {
    text-decoration: underline;
    color: #fff;
}

hr {
    border: 0;
    border-top: 1px solid white;
    margin: 20px 0;
}
/* Экран блокировки */
.denied-overlay {
    display: none; /* Мы включим его позже через JS или вручную */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #aa0000; /* Красный экран вместо синего */
    color: white;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.denied-content {
    border: 5px solid white;
    padding: 50px;
    max-width: 80%;
}

.country-list {
    background: white;
    color: #aa0000;
    font-size: 3rem;
    padding: 10px;
    margin: 20px 0;
}

.stamp {
    font-size: 2rem;
    border: 3px dashed white;
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    transform: rotate(-10deg);
}

/* Если мы хотим активировать блокировку, добавим этот класс */
.show-denied {
    display: flex !important;
}
/* Эффект статического белого шума */
.noise-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.15;
    background-image: url('https://media.giphy.com/media/oEI9uWUicGu88/giphy.gif'); /* Ссылка на гифку шума */
}

/* Красный экран ошибки с помехами */
.denied-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #600000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    animation: screen-shake 0.2s infinite; /* Постоянная мелкая тряска экрана */
}

.denied-box {
    border: 4px solid white;
    padding: 40px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    box-shadow: 0 0 20px red;
}

.highlight {
    background: white;
    color: red;
    padding: 0 10px;
    font-weight: bold;
}

/* Эффект глитча для текста ERROR */
.glitch {
    font-size: 6rem;
    font-weight: bold;
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 #ff00ff, -0.05em -0.025em 0 #00ffff;
    animation: glitch 500ms infinite;
}

/* Горизонтальная полоса помех, которая бегает по экрану */
.static-line {
    position: absolute;
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    animation: move-line 3s linear infinite;
}

/* Анимации */
@keyframes glitch {
    0% { text-shadow: 2px 0 0 #ff00ff, -2px 0 0 #00ffff; }
    25% { text-shadow: -2px 0 0 #ff00ff, 2px 0 0 #00ffff; }
    50% { text-shadow: 2px -2px 0 #ff00ff, -2px 2px 0 #00ffff; }
    100% { text-shadow: -2px 0 0 #ff00ff, 2px 0 0 #00ffff; }
}

@keyframes screen-shake {
    0% { transform: translate(0,0); }
    50% { transform: translate(1px, 1px); }
    100% { transform: translate(-1px, -1px); }
}

@keyframes move-line {
    0% { top: -100px; }
    100% { top: 100%; }
}

.small {
    font-size: 1rem;
    margin-top: 20px;
    opacity: 0.6;
    letter-spacing: 5px;
}
/* Специальный фон для страницы ошибки */
.error-body {
    background-color: #880000 !important; /* Кроваво-красный */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Контейнер ошибки */
.error-wrapper {
    text-align: center;
    z-index: 100;
}

.error-box {
    background: rgba(0, 0, 0, 0.9);
    border: 4px double #ffffff;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.admin-title {
    background: white;
    color: #880000;
    padding: 5px 20px;
    font-size: 2rem;
    margin: 0;
}

/* Эффект глитча для цифр 403 */
.glitch-text {
    font-size: 8rem;
    color: white;
    position: relative;
    animation: shake 0.1s infinite;
    text-shadow: 3px 0px 0px #ff00ff, -3px 0px 0px #00ffff;
}

.country-tags {
    margin: 20px 0;
}

.tag {
    background: #ff0000;
    padding: 5px 15px;
    font-size: 1.5rem;
    margin: 0 10px;
    border: 1px solid white;
}

.warning-sub {
    color: #ffff00;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Ссылка на перезагрузку */
.reboot-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.5;
}

.reboot-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Анимация тряски всего контента */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    20% { transform: translate(-1px, -2px) rotate(1deg); }
    50% { transform: translate(-3px, 1px) rotate(0deg); }
    80% { transform: translate(2px, -1px) rotate(-1deg); }
    100% { transform: translate(1px, 1px) rotate(0deg); }
}

/* Белая полоса помех (сканирование) */
.scanline-error {
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    z-index: 1000;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Белый шум (через градиент и прозрачность) */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://media.giphy.com/media/oEI9uWUicGu88/giphy.gif');
    opacity: 0.1;
    z-index: 50;
    pointer-events: none;
}