/* Terminal Classless CSS Framework */

:root {
    --primary: #00ff00;
    --primary-dim: #00aa00;
    --secondary: #00ffff;
    --accent: #ff00ff;
    --text: #00ff00;
    --text-secondary: #00aa00;
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --border: #00ff00;
    --max-width: 900px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.03) 0px,
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.selector-container {
    background-color: var(--bg-secondary);
    border: 2px solid var(--primary);
    color: var(--text);
    border-radius: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.05);
}

.selector-container h2 {
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.selector-container label {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 0.85rem;
}

.selector-container select {
    background-color: var(--bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0;
}

.selector-container select:focus {
    border-color: var(--secondary);
    outline: none;
    background-color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 5px rgba(0, 255, 0, 0.1);
}

.status {
    background-color: var(--bg);
    border-left: 3px solid var(--primary);
    color: var(--text);
    border-radius: 0;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.05);
}

.demo-content {
    background-color: var(--bg-secondary);
    border: 2px solid var(--primary);
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.05);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin: 1.5rem 0 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 1.8rem;
    margin-top: 0;
    border: 1px solid var(--primary);
    padding: 0.5rem;
}

h1::before { content: '> '; }

h2 { font-size: 1.4rem; }
h2::before { content: '$ '; }

h3 { font-size: 1.15rem; color: var(--primary); }
h3::before { content: '// '; }

h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

p::before { content: '>> '; color: var(--accent); }

a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

strong, b {
    font-weight: bold;
    color: var(--primary);
}

strong::before { content: '['; }
strong::after { content: ']'; }

em, i {
    font-style: italic;
    color: var(--secondary);
}

small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

ul li::marker {
    content: '> ';
    color: var(--primary);
}

li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

li::before { content: '[ ] '; color: var(--primary); }

/* Forms */
select, button {
    font-family: inherit;
    font-size: 1rem;
}

button {
    padding: 0.5rem 1rem;
    background-color: var(--bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    cursor: pointer;
    margin: 1rem 0.5rem 1rem 0;
    font-weight: bold;
    transition: all 0.2s ease;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: rgba(0, 255, 0, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

button:active {
    background-color: rgba(0, 255, 0, 0.2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text);
    font-size: 0.85rem;
}

label::before { content: '$ '; color: var(--accent); }

/* Utilities */
[hidden] {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
}
