/* ═══════════════════════════════════════════════════════════
   TRICAGONO — RETRO CSS
   Internet anos 2000 aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ── 3D BORDERS ── */
.border-raised {
    border: 2px solid;
    border-color: #3a4a3a #0a0f0a #0a0f0a #3a4a3a;
}
.border-sunken {
    border: 2px solid;
    border-color: #0a0f0a #3a4a3a #3a4a3a #0a0f0a;
}

/* ── RETRO TABLE ── */
.retro-table {
    width: 100%; border-collapse: collapse;
    font-family: var(--mono); font-size: 0.62rem;
    background: rgba(4, 6, 4, 0.7);
    border: 2px solid #2a3a2a;
}
.retro-table thead th {
    background: #111811;
    color: #fff;
    font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 10px; text-align: left;
    border: 2px solid;
    border-color: #3a4a3a #0a0f0a #0a0f0a #3a4a3a;
    font-size: 0.55rem;
}
.retro-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-dim);
    vertical-align: top;
    line-height: 1.5;
}
.retro-table tbody tr:nth-child(even) {
    background: rgba(74, 124, 89, 0.03);
}
.retro-table tbody tr:hover {
    background: rgba(74, 124, 89, 0.08);
}
.retro-table tbody td:first-child {
    color: #fff; font-weight: 500;
}
.retro-table .table-loading {
    text-align: center; padding: 20px;
    color: var(--text-faint); font-style: italic;
}
.retro-table .td-url {
    font-size: 0.55rem; color: var(--primary);
}
.retro-table .td-url a {
    color: var(--primary); text-decoration: none;
}
.retro-table .td-url a:hover { opacity: 0.7; }
.retro-table .td-status {
    text-align: center;
}
.retro-table .td-status .status-ind {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%;
}
.retro-table .td-status .status-ind.online {
    background: var(--primary); box-shadow: 0 0 5px var(--primary-glow);
}
.retro-table .td-status .status-ind.offline {
    background: var(--red); box-shadow: 0 0 5px var(--red-glow);
}
.retro-table .td-status .status-ind.internal {
    background: var(--text-faint);
}
.retro-table .td-stack {
    font-size: 0.55rem; color: var(--text-dim);
    max-width: 140px;
}

/* ── MARQUEE ── */
@keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

/* ── BLINK ── */
@keyframes blinkBorder {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.blink-slow {
    animation: blinkBorder 2s step-end infinite;
}
.blink-fast {
    animation: blinkBorder 0.5s step-end infinite;
}

/* ── RETRO BUTTON ── */
.btn-retro {
    font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #c0c0c0; color: #000;
    border: 2px solid;
    border-color: #fff #555 #555 #fff;
    padding: 6px 16px; cursor: pointer;
    transition: opacity 0.1s;
}
.btn-retro:hover { opacity: 0.85; }
.btn-retro:active {
    border-color: #555 #fff #fff #555;
}

/* ── RETRO BADGE ── */
.retro-badge {
    display: inline-block;
    font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.02);
}

/* ── HR STYLES ── */
.hr-double {
    border: none;
    border-top: 3px double var(--border);
    margin: 16px 0;
}
.hr-groove {
    border: none;
    border-top: 2px groove var(--border);
    margin: 16px 0;
}

/* ── "UNDER CONSTRUCTION" Banner ── */
.under-construction {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 8px;
    border: 2px dashed var(--amber);
    background: var(--amber-dim);
    font-family: var(--mono); font-size: 0.62rem;
    color: var(--amber); letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.construction-icon {
    font-size: 1rem;
    animation: blinkBorder 1s step-end infinite;
}

/* ── COUNTER DIGIT BOX ── */
.counter-digit {
    display: inline-block;
    width: 18px; height: 22px; line-height: 22px; text-align: center;
    font-family: var(--mono); font-size: 0.8rem;
    color: var(--primary);
    background: #000;
    border: 1px solid var(--border);
    margin: 0 1px;
}

/* ── VISITED LINK (guestbook style) ── */
a:visited.dir-card,
a:visited.sidebar-link {
    /* Keep consistent — no purple visited */
    color: inherit;
}

/* ── FOCUS RING RETRO ── */
input:focus-visible, textarea:focus-visible {
    outline: 1px dotted var(--primary);
    outline-offset: -2px;
}

/* ── SCROLLBAR RETRO ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0c0a; }
::-webkit-scrollbar-thumb {
    background: #1c241c;
    border: 1px solid #2a3a2a;
}
::-webkit-scrollbar-thumb:hover { background: #2a352a; }

/* Sidebar retro scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #1c241c; }
