/* INDUSTRIAL CYBERPUNK DESIGN SYSTEM */
:root {
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-panel: #111111;
    --grid-color: rgba(224, 36, 27, 0.05);
    /* Faint red grid */

    --text-primary: #e0e0e0;
    --text-muted: #888888;
    --accent-primary: #e0241b;
    /* X Profile Red */
    --accent-secondary: #00ffcc;
    /* Cyan shifted to secondary */

    --border-dim: #222222;
    --border-glow: rgba(224, 36, 27, 0.2);

    --font-mono: 'Courier New', Courier, monospace, 'SF Mono', 'Roboto Mono';
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-mono);
    /* Emphasize engineering/terminal feel */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Blueprint Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Header */
.sys-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 2rem;
    position: relative;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.blinking-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-image {
    width: 100%;
    max-width: 200px;
    /* Restricting size for a profile picture look */
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
}

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

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* Sections / Terminal Blocks */
.terminal-block {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dim);
    margin-bottom: 3rem;
    position: relative;
    transition: border-color 0.3s ease;
}

.terminal-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--border-dim);
    transition: background-color 0.3s ease;
}

.terminal-block:hover {
    border-color: var(--border-glow);
}

.terminal-block:hover::before {
    background-color: var(--accent-primary);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.block-title {
    color: var(--accent-primary);
    font-weight: 700;
}

.block-meta {
    color: var(--text-muted);
}

.block-content {
    padding: 2rem 1.5rem;
}

.block-content p {
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    max-width: 75ch;
    font-size: 1.05rem;
}

.block-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
.post-list {
    list-style: none;
}

.post-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    border-left: 1px solid var(--border-dim);
    padding-left: 1rem;
}

.post-list li:last-child {
    margin-bottom: 0;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.post-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.post-link:hover {
    color: var(--accent-primary);
}

/* Specs List */
.spec-list {
    list-style: none;
    font-family: var(--font-sans);
    margin-top: 1rem;
}

.spec-list li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    gap: 0.75rem;
}

.spec-list li span {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-width: 60px;
}

/* Buttons & Links */
.cyber-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cyber-btn .btn-text {
    position: relative;
    z-index: 2;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 0;
}

.cyber-btn:hover {
    color: var(--bg-base);
}

.cyber-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nostr-box {
    background-color: var(--bg-panel);
    padding: 1rem;
    border: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    word-break: break-all;
}

.nostr-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nostr-key {
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Footer */
footer {
    width: 100%;
}

.sys-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-dim);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

@media (max-width: 600px) {
    .sys-header {
        text-align: left;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-logo {
        font-size: 3rem;
    }

    .sys-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}