/* ppuzzl.org - Neubrutalist HUD Dashboard */

:root {
    --hot-pink: #FF2D6B;
    --light-gray: #E8E8E8;
    --dark: #1A1A1A;
    --amber: #FFAA00;
    --mid-gray: #8A8A8A;
    --black: #0d0d0d;
    --matrix-green: #00FF41;
    --dopamine-yellow: #FFE600;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--dark);
    color: var(--light-gray);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Crosshair Overlay */
.crosshair-h,
.crosshair-v {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.12;
}

.crosshair-h {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--matrix-green);
}

.crosshair-v {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--matrix-green);
}

/* Masthead */
.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    border-bottom: 4px solid var(--dopamine-yellow);
}

.masthead-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wordmark {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--dopamine-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.wordmark-suffix {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.masthead-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mid-gray);
}

.status-indicator.active {
    background: var(--matrix-green);
    box-shadow: 0 0 8px var(--matrix-green);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 4px var(--matrix-green); }
    50% { box-shadow: 0 0 16px var(--matrix-green); }
}

.status-label {
    color: var(--matrix-green);
    font-weight: 700;
}

.timestamp {
    color: var(--mid-gray);
    font-size: 11px;
}

/* Dashboard Grid */
.dashboard {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--black);
}

/* Module Base */
.module {
    background: var(--dark);
    border: 2px solid var(--mid-gray);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: inset(0);
    display: flex;
    flex-direction: column;
}

.module::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    right: 0;
    background: var(--mid-gray);
    color: var(--black);
    font-family: 'Archivo Black', sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    text-transform: uppercase;
    z-index: 2;
}

.module:hover {
    border-color: var(--dopamine-yellow);
    z-index: 10;
}

.module.expanded {
    position: fixed;
    top: 84px;
    left: 4px;
    right: 4px;
    bottom: 40px;
    z-index: 50;
    border-color: var(--dopamine-yellow);
    border-width: 3px;
    clip-path: inset(0);
}

.module.expanded::before {
    background: var(--dopamine-yellow);
    font-size: 11px;
    padding: 4px 12px;
}

/* Module Header */
.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--mid-gray);
    flex-shrink: 0;
}

.module.expanded .module-header {
    border-bottom-color: var(--dopamine-yellow);
    padding: 20px 32px;
}

.module-icon {
    flex-shrink: 0;
    animation: icon-rotate 20s linear infinite;
}

@keyframes icon-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.module-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.module-id {
    font-size: 10px;
    color: var(--mid-gray);
    margin-left: auto;
    letter-spacing: 0.05em;
}

/* Module Content */
.module-content {
    padding: 16px 20px;
    overflow-y: auto;
    flex-grow: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.module.expanded .module-content {
    opacity: 1;
    transform: translateY(0);
    padding: 24px 32px;
}

.module-content p {
    margin-bottom: 12px;
    color: var(--light-gray);
    font-size: 13px;
    line-height: 1.7;
}

/* Project List */
.project-list {
    list-style: none;
    margin-top: 12px;
}

.project-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(138, 138, 138, 0.3);
    font-size: 13px;
    color: var(--light-gray);
}

.project-code {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--hot-pink);
    margin-right: 12px;
    font-size: 11px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 10px;
    color: var(--mid-gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 13px;
    color: var(--amber);
    font-weight: 700;
}

/* Status Grid */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(138, 138, 138, 0.2);
}

.status-key {
    font-size: 11px;
    color: var(--mid-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-val {
    font-size: 12px;
    color: var(--light-gray);
    font-weight: 700;
}

.status-val.online {
    color: var(--matrix-green);
}

/* Footer Strip */
.footer-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: var(--black);
    border-top: 2px solid var(--mid-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-stripe {
    display: inline-block;
    width: 40px;
    height: 12px;
    background: repeating-linear-gradient(
        -45deg,
        var(--dopamine-yellow),
        var(--dopamine-yellow) 3px,
        var(--black) 3px,
        var(--black) 6px
    );
}

.footer-text {
    font-size: 10px;
    color: var(--mid-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scan-line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    animation: scan-sweep 3s ease-in-out infinite;
}

@keyframes scan-sweep {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Scanline effect overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
}

/* Corner markers on modules */
.module::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-left: 2px solid var(--hot-pink);
    border-bottom: 2px solid var(--hot-pink);
    opacity: 0.6;
}

.module.expanded::after {
    width: 24px;
    height: 24px;
    opacity: 1;
}
