/* links.css — Links page layout.
   Follows the same convention as privacy.css: only page-level layout lives
   here; base typography and overlay chrome come from pages.css / markdown.css.
   The .page-inner, .page-header, .page-title, .page-sub classes are inherited
   from pages.css — this file only adds what is unique to the Links page. */

/* ── Section grouping ──────────────────────────────────────── */

.links-section {
    margin-bottom: 2.4rem;
}

.links-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle, var(--surface-tertiary));
}

/* ── Card grid ─────────────────────────────────────────────── */

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Individual link card ──────────────────────────────────── */

.links-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, var(--surface-tertiary));
    background: var(--surface-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}

.links-card:hover {
    background: var(--surface-tertiary);
    border-color: var(--accent-color);
    transform: translateX(2px);
}

/* Muted state for "coming soon" links */
.links-card--muted {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

/* Icon container */
.links-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-tertiary);
    color: var(--accent-color);
}

.links-card-icon svg {
    width: 18px;
    height: 18px;
}

/* Body */
.links-card-body {
    flex: 1;
    min-width: 0;
}

.links-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.links-card-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.links-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge pill */
.links-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15em 0.5em;
    border-radius: 20px;
    background: var(--surface-tertiary);
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Arrow */
.links-card-arrow {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.links-card:hover .links-card-arrow {
    color: var(--accent-color);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 600px) {
    .links-card {
        padding: 0.75rem 0.85rem;
    }

    .links-card-desc {
        display: none; /* keep card compact on small screens */
    }
}
