/* === Tema Değişkenleri === */
body.theme-matrix {
    --bg: #000000;
    --fg: #33ff33;
    --accent: #00ffff;
    --prompt: #33ff33;
    --link: #00ffff;
    --link-hover: #ffff00;
    --border: #333;
    --output: #33ff33;
    --cursor: #33ff33;
}
body.theme-cyberpunk {
    --bg: #0a0a0a;
    --fg: #ff00ff;
    --accent: #00ffff;
    --prompt: #ff00ff;
    --link: #ff00ff;
    --link-hover: #00ffff;
    --border: #ff00ff;
    --output: #ff00ff;
    --cursor: #ff00ff;
}
body.theme-retro {
    --bg: #1a1a1a;
    --fg: #00ffff;
    --accent: #ffff00;
    --prompt: #00ffff;
    --link: #00ffff;
    --link-hover: #ffff00;
    --border: #00ffff;
    --output: #00ffff;
    --cursor: #00ffff;
}

/* Varsayılan tema (geri dönüş için) */
body {
    background-color: var(--bg, #0a0a0a);
    color: var(--fg, #33ff33);
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-window {
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    background-color: var(--bg, #000000);
    border: 2px solid var(--border, #333);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--fg, #33ff33, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(90deg, #2d2d2d, #1a1a1a);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border, #333);
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.btn.close {
    background-color: #ff5f56;
}

.btn.minimize {
    background-color: #ffbd2e;
}

.btn.maximize {
    background-color: #27ca3f;
}

.terminal-title {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--bg, #000000);
}

.terminal-content {
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.command-line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.prompt {
    color: var(--prompt, #33ff33);
    margin-right: 8px;
    font-weight: 600;
}

.command {
    color: var(--fg, #ffffff);
    margin-right: 5px;
}

.cursor {
    color: var(--cursor, #33ff33);
    font-weight: bold;
    animation: blink 1s infinite;
}

.cursor.blink {
    animation: blink 1s infinite;
}

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

.output {
    margin-bottom: 15px;
    margin-left: 20px;
}

.output-line {
    margin-bottom: 5px;
    color: var(--output, #33ff33);
}

.navigation-menu {
    margin-top: 10px;
}

.nav-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(51, 255, 51, 0.1);
    padding-left: 10px;
    border-left: 3px solid var(--fg, #33ff33);
}

.nav-command {
    color: var(--prompt, #33ff33);
    margin-right: 8px;
}

.nav-link {
    color: var(--link, #00ffff);
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--link-hover, #ffff00);
    text-shadow: 0 0 5px var(--link-hover, #ffff00);
}

.nav-description {
    color: #888888;
    font-style: italic;
}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--cursor, #33ff33);
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--cursor, #33ff33);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-window {
        width: 95vw;
        height: 90vh;
        border-radius: 4px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .terminal-content {
        font-size: 14px;
    }
    
    .nav-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-description {
        margin-left: 20px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        font-size: 12px;
    }
    
    .terminal-body {
        padding: 10px;
    }
}

/* Scrollbar Styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--fg, #33ff33);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent, #00ffff);
}

/* Additional Terminal Effects */
.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 98%,
        rgba(51, 255, 51, 0.03) 100%
    ),
    linear-gradient(
        180deg,
        transparent 98%,
        rgba(51, 255, 51, 0.03) 100%
    );
    pointer-events: none;
    z-index: 1;
}