/* Terminal Gopher-style Man Page Viewer CSS */

body {
    font-family: monospace;
    background-color: #000;
    color: #00ff00;
    margin: 0;
    padding: 20px;
    line-height: 1.4;
}

/* Navigation styles */
.gopher-navigation {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.gopher-navigation h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
}

.nav-section {
    margin: 8px 0;
    color: #00aa00;
    font-size: 13px;
}

.nav-label {
    display: inline-block;
    width: 80px;
    color: #00ff00;
    font-weight: bold;
    vertical-align: middle;
}

.nav-separator {
    color: #00aa00;
    margin: 0 5px;
}

.separator {
    color: #00aa00;
    margin: 0 5px;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
}

.nav-link:hover {
    background-color: #003300;
    color: #ffffff;
}

/*.nav-link:visited {
    color: #00cc00;
}*/

.nav-current {
    color: #ffff00;
    font-weight: bold;
}

.nav-button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00aa00;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 12px;
    text-decoration: none;
    margin: 2px;
    display: inline-block;
}

.nav-button:hover {
    background-color: #00ff00;
    color: #000;
}

.nav-home { color: #ffff00; }
.nav-source { color: #00ffff; }
.nav-section { color: #ff00ff; }
.nav-architecture { color: #ffffff; }
.nav-command { color: #ffff00; }

/* Post-content navigation */
.post-content-nav {
    border-top: 1px dashed #004400;
    padding-top: 15px;
    margin-top: 20px;
}

.post-content-nav h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
}

.gopher-header {
    border: 1px solid #00ff00;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #001100;
}

.gopher-header h1 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    color: #00ff00;
}

.gopher-header .subtitle {
    text-align: center;
    margin: 5px 0 0 0;
    color: #00aa00;
    font-size: 14px;
}

.gopher-menu {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.gopher-menu h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
}

.menu-line {
    display: inline;
    padding: 12px;
    color: #00aa00;
    font-size: 13px;
}

.menu-item {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
}

.menu-item:hover {
    background-color: #003300;
    color: #ffffff;
}

/*.menu-item:visited {
    color: #00cc00;
}*/

.gopher-form {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.gopher-form h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
}

.form-line {
    margin: 8px 0;
    color: #00aa00;
    font-size: 13px;
}

.form-line label {
    display: inline-block;
    width: 120px;
    color: #00ff00;
    font-weight: bold;
}

input[type="text"], select {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00aa00;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 13px;
    width: 200px;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #00ff00;
    background-color: #002200;
}

button {
    background-color: #003300;
    color: #00ff00;
    border: 1px solid #00aa00;
    padding: 5px 15px;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #00ff00;
    color: #000;
}

.gopher-content {
    border: 1px solid #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #001100;
}

.gopher-content h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
}

.content-info {
    color: #00FF00;
    font-size: 12px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #004400;
    padding-bottom: 5px;
}

.manpage {
    background-color: #000;
    color: #00ff00;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.3;
    white-space: pre-wrap;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px dashed #004400;
    padding: 10px;
    margin-top: 10px;
}

.error {
    background-color: #220000;
    color: #ff4444;
    border: 1px solid #ff0000;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 13px;
}

/* Enhanced footer styles */
.gopher-footer {
    border: 1px solid #00ff00;
    padding: 6px;
    margin-top: 20px;
    background-color: #001100;
    color: #00FF00;
    font-size: 13px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    max-width: 33%;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    text-align: center;
}

.footer-app-info {
    color: #00ff00;
    font-weight: bold;
    vertical-align: middle;
}

.footer-server-info {
    color: #00aa00;
    font-size: 11px;
    line-height: 1.3;
}

.footer-server-info .server-item {
    display: inline;
    margin-bottom: 2px;
    white-space: nowrap;
    vertical-align: middle;
}

.footer-server-info .server-label {
    color: #00aa00;
    font-weight: bold;
}

.footer-server-info .server-value {
    color: #00ff00;
}

.footer-load-time {
    display: inline;
    font-size: 11px;
    margin-top: 3px;
    vertical-align: middle;
}

.footer-load-time .load-time-label {
    color: #00aa00;
    font-weight: bold;
}

.footer-load-time .load-time-value {
    color: #00ff00;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex: 1;
    max-width: 33%;
}

.footer-link {
    color: #00ff00;
    text-decoration: none;
    background-color: #003300;
    border: 1px solid #00aa00;
    padding: 2px 6px;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}

.footer-link:hover {
    background-color: #00ff00;
    color: #000000;
    text-decoration: none;
}

/*.footer-link:visited {
    color: #00cc00;
}

.footer-link:visited:hover {
    color: #000000;
}*/

/* Gopher-style type indicators */
.type-indicator {
    display: inline-block;
    width: 15px;
    font-weight: bold;
    color: #ffff00;
}

.type-0 { color: #ffffff; } /* Text file */
.type-1 { color: #00ffff; } /* Directory */
.type-7 { color: #ff00ff; } /* Search */
.type-i { color: #888888; } /* Info */

/* ASCII art style elements */
.ascii-border {
    font-family: monospace;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}

.breadcrumb {
    color: #00aa00;
    font-size: 13px;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #00ff00;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 12px;
    }
    
    input[type="text"], select {
        width: 150px;
    }
    
    .form-line label {
        width: 100px;
    }
    
    .nav-label {
        width: 60px;
    }
    
    .nav-button {
        margin: 1px;
        padding: 1px 5px;
        font-size: 11px;
    }
    
    .gopher-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-server-info .server-item {
        display: block;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .back-to-top {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
}
