/* ═══════════════════════════════════════════════════════════
   jnet.us — links.css  (favorite links + channels)
   ═══════════════════════════════════════════════════════════ */

/* ── NAV override (sticky for scrollable page) ── */
.nav { position: sticky; }

/* ── LINK GRID ── */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.link-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
}
.link-card::after {
    content: '↗';
    position: absolute; top: 14px; right: 16px;
    font-size: 0.65rem; color: rgba(0,255,0,0.25);
    transition: color 0.18s;
}
.link-card:hover {
    border-color: rgba(0,255,0,0.25);
    background: rgba(0,255,0,0.035);
}
.link-card:hover::after { color: rgba(0,255,0,0.7); }

.link-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: bold;
    color: #fff; letter-spacing: 0.04em;
    margin-bottom: 4px; padding-right: 20px;
}
.link-favicon {
    width: 16px; height: 16px; flex-shrink: 0;
    border-radius: 2px; opacity: 0.9;
}
/* .link-host → .text-green (common.css) */
.link-host { margin-bottom: 8px; }
/* .link-desc → now uses .page-sub from common.css */

/* ── CHANNEL GRID ── */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.channel-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 20px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, background 0.18s;
}
.channel-card:hover {
    border-color: rgba(0,255,0,0.25);
    background: rgba(0,255,0,0.035);
}
.channel-platform {
    font-size: 0.55rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(0,255,0,0.9); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.channel-name-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.channel-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}
.channel-name {
    font-size: 1rem; font-weight: bold;
    color: #fff; letter-spacing: 0.02em;
}
/* .channel-desc → now uses .page-sub from common.css */
.channel-card .page-sub { margin-bottom: 14px; }
.channel-subs {
    display: flex; flex-direction: column; gap: 3px;
}
.channel-subs-row {
    display: flex; align-items: baseline; gap: 6px;
}
.channel-subs-num {
    font-size: 1.3rem; font-weight: bold;
    color: var(--green); text-shadow: 0 0 10px var(--green-glow);
    line-height: 1;
}
.channel-subs-lbl {
    font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255,255,255,0.88);
}
/* .channel-subs-stale → now uses .text-meta from common.css */
.channel-subs-row .text-meta { margin-left: 4px; margin-top: 0; }

/* ── FOOTER override (with border-top) ── */
.footer {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid var(--border);
    position: relative;
    background: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .link-grid, .channel-grid { grid-template-columns: 1fr; }
}
