/* === ussyco.de webring hub === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 13px;
    background: #060610;
    color: #b0c0b0;
    min-height: 100vh;
    line-height: 1.6;
}

.starfield {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background:
        radial-gradient(1px 1px at 10% 20%, #ffffff33, transparent),
        radial-gradient(1px 1px at 30% 60%, #ffffff22, transparent),
        radial-gradient(1px 1px at 50% 10%, #ffffff11, transparent),
        radial-gradient(1px 1px at 70% 80%, #ffffff33, transparent),
        radial-gradient(1px 1px at 90% 40%, #ffffff22, transparent),
        radial-gradient(1px 1px at 15% 85%, #ffffff11, transparent),
        radial-gradient(1px 1px at 45% 35%, #ffffff33, transparent),
        radial-gradient(1px 1px at 80% 15%, #ffffff11, transparent),
        radial-gradient(2px 2px at 5% 45%, #0f03, transparent),
        radial-gradient(2px 2px at 95% 55%, #0f03, transparent);
    background-color: #060610;
}

.hub-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.hub-header {
    text-align: center;
    padding: 40px 20px 30px;
    border: 2px solid #1a3a1a;
    background: linear-gradient(180deg, #0a1a0a 0%, #060e06 100%);
    margin-bottom: 20px;
}

.hub-logo {
    font-size: 48px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0,255,0,0.3);
}

.hub-title {
    font-size: 32px;
    color: #0f0;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0,255,0,0.4);
    margin-bottom: 8px;
}

.hub-subtitle {
    color: #4a8a4a;
    font-size: 12px;
    letter-spacing: 3px;
}

.hub-desc {
    color: #6a9a6a;
    font-size: 12px;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hub-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-link {
    color: #0f0;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 14px;
    border: 1px solid #1a4a1a;
    background: #0a1a0a;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.hub-link:hover {
    background: #1a3a1a;
    border-color: #0f0;
    box-shadow: 0 0 8px rgba(0,255,0,0.2);
}

/* Stats bar */
.hub-stats {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    background: #0a1a0a;
    border: 1px solid #1a3a1a;
    padding: 12px;
    text-align: center;
}

.stat-val {
    color: #0f0;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,255,0,0.3);
}

.stat-lbl {
    color: #2a5a2a;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Ring grid */
.ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.site-card {
    border: 1px solid #1a3a1a;
    background: linear-gradient(180deg, #0a140a 0%, #080e08 100%);
    padding: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.site-card:hover {
    border-color: #0f0;
    box-shadow: 0 0 12px rgba(0,255,0,0.15);
    transform: translateY(-2px);
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0f0, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.site-card:hover::before { opacity: 1; }

.site-index {
    color: #1a3a1a;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.site-name {
    color: #0f0;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.site-name a {
    color: #0f0;
    text-decoration: none;
}

.site-name a:hover {
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0,255,0,0.4);
}

.site-desc {
    color: #6a8a6a;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.site-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.site-url {
    color: #2a5a2a;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-visit {
    color: #0f0;
    font-size: 9px;
    text-decoration: none;
    border: 1px solid #1a3a1a;
    padding: 3px 8px;
    white-space: nowrap;
    transition: all 0.2s;
}

.site-visit:hover {
    background: #1a3a1a;
    border-color: #0f0;
}

/* Ring map */
.ring-map {
    border: 1px solid #1a3a1a;
    background: #080e08;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.ring-map-title {
    color: #0f0;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.ring-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    align-items: center;
}

.ring-node {
    font-size: 9px;
    padding: 3px 6px;
    border: 1px solid #1a3a1a;
    color: #4a7a4a;
    background: rgba(0,255,0,0.02);
    text-decoration: none;
    transition: all 0.2s;
}

.ring-node:hover {
    border-color: #0f0;
    color: #0f0;
    background: rgba(0,255,0,0.08);
}

.ring-arrow {
    color: #1a3a1a;
    font-size: 11px;
}

/* Join section */
.join-section {
    border: 2px dashed #1a3a1a;
    background: #0a140a;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.join-title {
    color: #0f0;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.join-text {
    color: #6a8a6a;
    font-size: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
    line-height: 1.8;
}

.join-widget {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #1a3a1a;
}

.join-widget-title {
    color: #4a8a4a;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.join-code {
    display: block;
    background: #060610;
    border: 1px solid #1a3a1a;
    padding: 12px 16px;
    color: #4a8a4a;
    font-size: 11px;
    text-align: left;
    white-space: pre;
    overflow-x: auto;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    user-select: all;
}

/* Subdomain link on cards */
.site-subdomain {
    margin-bottom: 8px;
}

.site-subdomain a {
    color: #0f0;
    font-size: 11px;
    text-decoration: none;
    padding: 2px 8px;
    border: 1px dashed #1a4a1a;
    background: rgba(0,255,0,0.03);
    transition: all 0.2s;
}

.site-subdomain a:hover {
    border-color: #0f0;
    background: rgba(0,255,0,0.08);
    text-shadow: 0 0 6px rgba(0,255,0,0.4);
}

/* Footer */
.hub-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1a3a1a;
    color: #1a3a1a;
    font-size: 10px;
}

.hub-footer a {
    color: #2a5a2a;
    text-decoration: none;
}

.hub-footer a:hover { color: #0f0; }

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #2a5a2a;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Responsive */
@media (max-width: 640px) {
    .hub-stats { flex-direction: column; }
    .ring-grid { grid-template-columns: 1fr; }
    .hub-title { font-size: 24px; letter-spacing: 3px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060610; }
::-webkit-scrollbar-thumb { background: #1a3a1a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a5a2a; }

::selection { background: #0f0; color: #060610; }
