/* Ikona triggera */
.cyber-news-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid #adff00;
    color: #adff00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(173, 255, 0, 0.3);
    z-index: 9999;
    font-family: 'Chakra Petch', sans-serif;
}

.cyber-news-icon:hover {
    background: #adff00;
    color: #000;
    box-shadow: 0 0 20px #adff00;
}

/* Glitch Effect dla ikony */
.cyber-news-icon span {
    font-size: 30px;
}

/* Modal */
.cyber-terminal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(3px);
}

.cyber-modal-content {
    background-color: #050505;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #adff00;
    width: 80%;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    font-family: 'Chakra Petch', sans-serif;
    color: #adff00;
    box-shadow: 0 0 30px rgba(173, 255, 0, 0.2);
}

.cyber-modal-header {
    background: #adff00;
    color: #000;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cyber-modal {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

/* Lista Newsów */
.cyber-news-container {
    padding: 20px;
}

.news-item {
    margin-bottom: 20px;
}

.news-meta {
    font-size: 0.8em;
    opacity: 0.7;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-body {
    font-size: 0.95em;
    line-height: 1.4;
    color: #fff;
}

.news-divider {
    height: 1px;
    background: linear-gradient(90deg, #adff00 0%, transparent 100%);
    margin-top: 15px;
    opacity: 0.3;
}

/* Kolory typów newsów */
.type-entropy .news-title { color: #ff0055; text-shadow: 0 0 5px #ff0055; }
.type-social .news-title { color: #00ccff; }

/* Custom Scrollbar */
.cyber-modal-content::-webkit-scrollbar { width: 5px; }
.cyber-modal-content::-webkit-scrollbar-thumb { background: #adff00; }
.news-header {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.news-icon {
    color: #adff00;
}

.news-tags {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #adff00;
    filter: brightness(0.7);
    font-style: italic;
}

.no-data, .loading-text, .error {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    letter-spacing: 2px;
}

.error { color: #ff0055; }

/* Stylizacja dla konkretnych typów */
.type-social_media .news-title { color: #00ccff; }
.type-encrypted .news-body { filter: blur(2px); cursor: help; }
.type-encrypted:hover .news-body { filter: blur(0); transition: 0.3s; }
/* Miganie ikony gdy są nowe wiadomości */
.has-unread .dashicons-rss {
    animation: news-pulse 1.5s infinite;
    color: #fff; /* Jaśniejszy kolor dla nowych */
}

@keyframes news-pulse {
    0% { text-shadow: 0 0 2px #adff00; }
    50% { text-shadow: 0 0 15px #adff00, 0 0 20px #ff0055; opacity: 0.8; }
    100% { text-shadow: 0 0 2px #adff00; }
}

/* Formatowanie czasu gry wewnątrz newsa */
.news-game-time {
    font-family: 'Chakra Petch';
    font-size: 0.7rem;
    color: #adff00;
    border: 1px solid #adff00;
    padding: 2px 5px;
    margin-right: 10px;
    background: rgba(173, 255, 0, 0.1);
}

.news-item.is-new-item {
    border-left: 3px solid #ff0055; /* Czerwony pasek dla nieprzeczytanych */
    padding-left: 10px;
}
/* Licznik powiadomień nad ikoną */
#news-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0055;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 10px #ff0055;
    display: none; /* Pokazywane przez JS */
}
