/* Theme variables are now in themes-fast.css */

html {
    overflow-x: hidden;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    padding-bottom: 60px; /* Account for fixed footer */
    cursor: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.portrait {
    width: 300px;
    margin-right: 20px;
    font-size: 0.8em;
    line-height: 1.2;
    white-space: pre;
    font-family: monospace;
}

/* Cerberus text versions */
.cerberus-text-mobile {
    display: none;
}

/* Glitch effect for ASCII art */
.glitch {
    position: relative;
}

.glitch-active {
    animation: glitch 0.2s linear;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-1px, 1px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(1px, -1px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(-1px, -1px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(1px, 1px);
        filter: hue-rotate(360deg);
    }
}

.bio {
    flex-grow: 1;
}

h1, h2 {
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    transition: border-color 0.3s ease;
}

.section {
    margin-bottom: 30px;
}

.separator {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 5px;
    margin: 20px 0;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.quote {
    font-style: italic;
    margin: 20px 0;
}

.articles, .thoughts {
    min-height: 200px;
}

.custom-cursor {
    width: 10px;
    height: 20px;
    background-color: var(--accent-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.terminal-input {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    width: 100%;
    padding: 5px;
    margin-top: 10px;
}

.terminal-input:focus {
    outline: none;
}

.hidden {
    display: none;
}

#ascii-output {
    white-space: pre;
    font-size: 12px;
    line-height: 1.2;
}

.theme-switcher {
    margin-bottom: 20px;
}

.theme-switcher button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
}

/* Loading states */
.loading-state {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(0, 255, 0, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    background: #111;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 15px 40px 15px 15px;
    margin-bottom: 10px;
    position: relative;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s;
}

.notification button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 20px;
    cursor: pointer;
}

.notification-success {
    border-color: #0f0;
    color: #0f0;
}

.notification-error {
    border-color: #f00;
    color: #f00;
}

.notification-info {
    border-color: #0ff;
    color: #0ff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Terminal output area */
#terminal-output {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    color: var(--text-color);
}

/* Theme switcher active state */
.theme-switcher button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

/* Taskbar Footer */
#taskbar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.footer-left, .footer-right {
    display: flex;
    gap: 20px;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 0;
    opacity: 0.8;
}

.footer-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.footer-icon {
    font-size: 1.2em;
}


/* Make container account for footer */
.container {
    min-height: calc(100vh - 80px);
}

/* Responsive design for footer */
@media (max-width: 768px) {
    /* Fix theme switcher overflow on mobile */
    .theme-switcher {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .theme-switcher button {
        margin-right: 0;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Show mobile version of Cerberus text */
    .cerberus-text-desktop {
        display: none;
    }
    
    .cerberus-text-mobile {
        display: block;
    }
    
    
    
    #taskbar-footer {
        flex-direction: column;
        gap: 10px;
        padding: 5px 10px;
    }
    
    .footer-left, .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-item {
        font-size: 0.9em;
        padding: 3px 8px;
    }
    
    .footer-icon {
        font-size: 1em;
    }
    
    body {
        padding-bottom: 100px;
    }
    
}

/* Visitor Log Improvements */
.visitor-stats {
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background-color: transparent;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
}

.visitor-log-container {
    transition: max-height 0.3s ease, overflow-y 0.3s ease;
}

.visitor-log-container::-webkit-scrollbar {
    width: 8px;
}

.visitor-log-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
}

.visitor-log-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.toggle-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Hacking Game Enhancements */
.player-info {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.alias-setup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alias-setup input {
    padding: 8px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.small-btn {
    font-size: 0.8em;
    padding: 4px 12px;
    margin-left: 10px;
}

.leaderboard {
    margin-top: 20px;
}

.leaderboard ol {
    padding-left: 0;
    list-style: none;
}

.leaderboard li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
}

.leaderboard li.current-player {
    border-color: var(--primary-color);
    background-color: rgba(0, 255, 0, 0.1);
}

.leaderboard .rank {
    font-weight: bold;
    margin-right: 10px;
}

.leaderboard .alias {
    flex-grow: 1;
    text-align: left;
}

.leaderboard .score {
    font-weight: bold;
    color: var(--primary-color);
}

.leaderboard .games {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 10px;
}