/* /srv/homepage/style.css */

/* Universal reset */
* {
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #00ff00;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.terminal {
    border: 1px solid #333;
    padding: 30px;
    width: 550px;
    max-width: 100%;
    background: #111;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

h2 {
    margin-top: 0;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 10px;
    font-size: 1.2em;
    word-wrap: break-word;
}

p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.prompt {
    color: #888;
    font-weight: bold;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Links & Navigation */
a {
    color: #00ff00;
    text-decoration: none;
    border: 1px solid #00ff00;
    padding: 12px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

a:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.flavor-link {
    border-style: dashed;
    opacity: 0.7;
    font-size: 0.9em;
}

.flavor-link:hover {
    opacity: 1;
    border-style: solid;
}

/* Form Elements Styling */
input, select {
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    font-family: monospace;
    font-size: 1em;
    transition: box-shadow 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #00ff00 50%), linear-gradient(135deg, #00ff00 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

button {
    background: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
    width: 100%;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 1em;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px #00ff00;
}

button:disabled {
    border-color: #333;
    color: #555;
    cursor: not-allowed;
    background-image: none;
}

#log {
    margin-top: 20px;
    font-size: 0.9em;
    word-wrap: break-word;
    min-height: 1.2em;
}

/* System Nav Block (Modular Footer) */
.sys-nav {
    margin-top: 40px;
    border-top: 1px dashed #333;
    padding-top: 20px;
}

.sys-nav a {
    border-color: #555;
    color: #aaa;
}

.sys-nav a:hover {
    border-color: #00ff00;
    color: #00ff00;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #00ff00;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* Animations */
@keyframes blink {
    50% { opacity: 0; }
}

@keyframes textGlitch {
    0% { text-shadow: 2px 0 #00ff00, -2px 0 #ff00ea; transform: translate(1px, 1px); }
    20% { text-shadow: -2px 0 #00ff00, 2px 0 #ff00ea; transform: translate(-1px, -1px); }
    40% { text-shadow: 2px 0 #00ff00, -2px 0 #ff00ea; transform: translate(1px, -1px); }
    60% { text-shadow: -2px 0 #00ff00, 2px 0 #ff00ea; transform: translate(-1px, 1px); }
    80% { text-shadow: 2px 0 #00ff00, -2px 0 #ff00ea; transform: translate(2px, 0); }
    100% { text-shadow: none; transform: translate(0); }
}

/* Text Swapping Utilities */
.normie-text { display: block; }
.tech-text { display: none; }
.glitch-text { display: inline-block; }

a:hover .normie-text { display: none; }
a:hover .tech-text {
    display: block;
    animation: textGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}

button:hover:not(:disabled) .glitch-text {
    animation: textGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    body { padding: 10px; }
    .terminal { padding: 20px; width: 100%; }
    a { font-size: 0.9em; padding: 10px; }
    input, select, button { padding: 10px; font-size: 0.9em; }
}
