/* ────────────────────────────────────────────────────────────────
   components.css — visual components (frontend)
   Ported from assets/style.css (2026-10-02). New since the split:
   .rank-list/.rank-row (ranked category pages) and .partner-strip
   (link-trade footer).
   ──────────────────────────────────────────────────────────────── */

/* ── Site card ───────────────────────────────────────────────── */

.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), background var(--transition);
}

.site-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.site-card__thumb {
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
}

.site-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.site-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.site-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.site-card__meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ── Ranked category rows (2026-10-02 — new in the rebuild) ────
   "Best X Sites" pages render as a numbered ranking, not a card
   wall: editorial position is the signal, thumbs get ~200px. */

.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    transition: border-color var(--transition), background var(--transition);
}

.rank-row:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.rank-row__num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    min-width: 2.6rem;
    text-align: center;
    flex-shrink: 0;
}

.rank-row__thumb {
    width: 200px;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.rank-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rank-row__thumb .site-card__thumb-placeholder {
    font-size: 1.2rem;
}

.rank-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rank-row__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rank-row__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rank-row__meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.rank-row__cta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .rank-row { flex-wrap: wrap; }
    .rank-row__thumb { width: 140px; }
    .rank-row__cta { flex-direction: row; width: 100%; }
}

/* ── Network card (larger) ───────────────────────────────────── */

.network-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color var(--transition), background var(--transition);
}

.network-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.network-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.network-card__desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.network-card__link {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: auto;
}

.network-card__link:hover { color: var(--accent-hover); }

/* ── Category card ───────────────────────────────────────────── */

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color var(--transition), background var(--transition);
    text-decoration: none;
    color: inherit;
}

.cat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: inherit;
}

.cat-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.cat-card__count {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Badges ──────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 0.15em 0.55em;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--network   { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.badge--featured  { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge--free      { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge--freemium  { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.badge--paid      { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

/* ── Pill badges for content types ──────────────────────────── */

.pill {
    display: inline-block;
    padding: 0.1em 0.45em;
    border-radius: 999px;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── Rating stars ────────────────────────────────────────────── */

.stars { color: #f59e0b; font-size: 0.78rem; letter-spacing: -0.05em; }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.45em 1.1em;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), color var(--transition);
    border: none;
    white-space: nowrap;
}

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--accent);
}

.btn--outline:hover { background: var(--accent-dim); color: var(--accent); }

.btn--danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.6);
    color: rgba(248, 113, 113, 1);
}

.btn--danger:hover {
    background: rgba(220, 38, 38, 0.25);
    color: rgba(252, 165, 165, 1);
}

/* ── Detail page review ──────────────────────────────────────── */

.review-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-block h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.review-block p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.review-block p:last-child { margin-bottom: 0; }

.site-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.site-meta-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.site-meta-item__label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.site-meta-item__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.cta-block {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-block .btn { font-size: 0.95rem; padding: 0.65em 1.6em; }

/* ── Partner strip (2026-10-02 — new, LinkTrade) ───────────────
   The dofollow trade anchors. Deliberately subdued — a link list,
   not an ad block — and labeled so visitors can tell it apart from
   the curated directory. */

.partner-strip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.partner-strip__label {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.partner-strip a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.partner-strip a:hover { color: var(--accent); }

/* ── Age Gate ───────────────────────────────────────────────── */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 600ms ease;
}

.age-gate--hidden {
    opacity: 0;
    pointer-events: none;
}

.age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.age-gate__card {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.age-gate__logo { margin-bottom: 1.5rem; }

.age-gate__logo-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.age-gate__logo-xxx { color: var(--accent); }

.age-gate__icon {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.age-gate__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
}

.age-gate__body {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.age-gate__body strong { color: var(--text); }

.age-gate__sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
    opacity: 0.75;
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-gate__btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition), transform 100ms ease;
}

.age-gate__btn:active { transform: scale(0.98); }

.age-gate__btn--enter {
    background: var(--accent);
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.age-gate__btn--enter:hover { background: var(--accent-hover); }

.age-gate__btn--leave {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-gate__btn--leave:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .age-gate__card { padding: 2rem 1.5rem; }

    /* 2026-10-02: rank rows were cramped at phone width — shrink the
       thumb, tighten the number, drop the desc (name + meta + CTA
       carry the row). */
    .rank-row__num { font-size: 1.3rem; min-width: 2rem; }
    .rank-row__thumb { width: 110px; }
    .rank-row__desc { display: none; }
    .rank-row__name { font-size: 0.95rem; }
}
