@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: #000;
    color: #0f0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efekt skanowania CRT */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03),
        rgba(0, 255, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    border: 3px solid #0f0;
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.logo h1 {
    font-size: 48px;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 20px;
    color: #0a0;
    letter-spacing: 2px;
}

/* Search Box */
.search-box {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #0f0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.search-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px #0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #0f0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    background: #000;
    color: #0f0;
    border: 2px solid #0f0;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-color: #0ff;
}

.search-btn {
    width: 100%;
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 28px;
    background: #0f0;
    color: #000;
    border: none;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.3s;
    font-weight: bold;
}

.search-btn:hover {
    background: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Results */
.results {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #0f0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.results h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px #0f0;
}

.person-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0a0;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.person-card:hover {
    border-color: #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #0a0;
}

.person-name {
    font-size: 28px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

.person-status {
    font-size: 24px;
    padding: 5px 15px;
    border: 2px solid;
}

.status-alive {
    color: #0f0;
    border-color: #0f0;
    background: rgba(0, 255, 0, 0.1);
}

.status-dead {
    color: #f00;
    border-color: #f00;
    background: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 5px #f00;
}

.person-region {
    font-size: 22px;
    color: #ff0;
    margin-bottom: 15px;
}

.person-article {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.03);
    border-left: 3px solid #0a0;
    font-style: italic;
}

.person-comments {
    margin-top: 20px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

.comment {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid #0a0;
    padding: 12px;
    margin-bottom: 10px;
}

.comment-user {
    font-size: 20px;
    color: #ff0;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 18px;
    color: #0f0;
    line-height: 1.4;
}

/* No Results */
.no-results {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #f00;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.no-results p {
    font-size: 28px;
    color: #f00;
    text-shadow: 0 0 5px #f00;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid #0f0;
    margin-top: 40px;
}

footer p {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0a0;
}

.warning {
    color: #ff0 !important;
    text-shadow: 0 0 5px #ff0;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Utility */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .person-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .person-status {
        margin-top: 10px;
    }
}
