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

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

body {
    background: #000;
    color: #00ff00;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* CRT Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

/* Terminal Container */
.terminal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
}

/* Mac System 7 Window */
.mac-window {
    width: 90%;
    max-width: 1200px;
    background: #000;
    border: 2px solid #00ff00;
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.5),
        inset 0 0 50px rgba(0, 255, 0, 0.1);
    position: relative;
}

.mac-titlebar {
    background: linear-gradient(to bottom, #333 0%, #222 100%);
    height: 30px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #000;
}

.mac-button.close {
    background: #ff5f57;
}

.mac-button.minimize {
    background: #ffbd2e;
}

.mac-button.maximize {
    background: #28ca42;
}

.mac-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    font-size: 14px;
    letter-spacing: 2px;
}

/* Terminal Screen */
.terminal-screen {
    padding: 20px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: #000;
    position: relative;
}

.terminal-screen::-webkit-scrollbar {
    width: 12px;
}

.terminal-screen::-webkit-scrollbar-track {
    background: #111;
    border: 1px solid #00ff00;
}

.terminal-screen::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000;
}

/* ASCII Logo */
.ascii-logo {
    color: #00ff00;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: flicker 2s infinite;
}

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

/* System Info */
.system-info {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.02);
}

.info-line {
    margin: 5px 0;
    color: #00ff00;
}

.prompt {
    color: #ffff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.status-ok {
    color: #00ff00;
    font-weight: bold;
}

.status-active {
    color: #00ffff;
    animation: pulse 2s infinite;
}

.status-pending {
    color: #ffff00;
}

.status-error {
    color: #ff0000;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.highlight {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

/* Menu */
.menu-container {
    margin: 30px 0;
}

.menu-header {
    text-align: center;
    color: #ffff00;
    margin-bottom: 15px;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: block;
    padding: 10px 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.menu-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.4), transparent);
    transition: left 0.5s;
}

.menu-item:hover {
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 0, 1);
    transform: translateX(5px);
}

.menu-item:hover:before {
    left: 100%;
}

.menu-number {
    color: #ffff00;
    margin-right: 10px;
}

/* Content Area */
.content-area {
    min-height: 200px;
    padding: 20px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.02);
    margin: 20px 0;
}

.typing-indicator {
    color: #00ff00;
}

.content-section h2 {
    color: #ffff00;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.content-text {
    line-height: 1.6;
    color: #00ff00;
}

.content-text p {
    margin-bottom: 5px;
}

.service-item {
    color: #00ffff;
    font-weight: bold;
}

.service-desc {
    color: #00ff00;
    margin-left: 20px;
}

.classified {
    background: #ff0000;
    color: #000;
    padding: 2px 5px;
    display: inline-block;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: none; }
    20% { transform: skewX(2deg); }
    40% { transform: skewX(-2deg); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(-1px, -1px); }
}

.warning {
    color: #ff0000;
    animation: warning-flash 1s infinite;
}

@keyframes warning-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ascii-divider {
    color: #666;
    margin: 10px 0;
}

.ascii-box {
    color: #00ffff;
    font-size: 14px;
    line-height: 1.2;
}

.bulletin-header {
    color: #ffff00;
    text-align: center;
}

.bulletin-entry {
    border-left: 3px solid #00ff00;
    padding-left: 10px;
    margin: 10px 0;
}

.bulletin-date {
    color: #ffff00;
}

.bulletin-user {
    color: #00ffff;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
}

.footer-line {
    color: #00ff00;
    text-align: center;
    margin-bottom: 10px;
}

.footer-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #00ff00;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor::after {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    background: #00ff00;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Glitch Effect */
.glitch {
    animation: glitch-animation 0.2s;
}

@keyframes glitch-animation {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* Typing Effect */
.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.5s steps(10, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mac-window {
        width: 100%;
        height: 100vh;
        border: none;
    }
    
    .terminal-screen {
        padding: 10px;
        font-size: 14px;
    }
    
    .ascii-logo {
        font-size: 8px;
    }
    
    .cursor {
        display: none;
    }
    
    * {
        cursor: auto;
    }
}