﻿/* =========================================================
   RecommenderEngine — site.css
   Cleaned + organized (no functional changes intended)
   =========================================================

   Sections:
   01) Variables
   02) Base / Reset
   03) Layout wrappers
   04) Themes + haze overlay
   05) Header + nav
   06) Search + Tom Select (dropdown)
   07) Modals + Contact form
   08) Home (hero/cards/featured/seo)
   09) Recommendations (hero + cards + shared tags)
   10) Utilities
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --bg: #0a0a0a;
    --panel: #0f0f0f;
    --panel2: #0c0c0c;
    --border: #444;
    --border2: #333;
    --text: #e6e6e6;
    --muted: #9a9a9a;
    --link: #6aa9ff;
    --focus: #6aa9ff;
    --search-h: 40px;
    --radius: 6px;
    --font-main: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Arial, sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */
@media (max-width: 768px) {
    /* iOS/Android: fixed layers can jitter; use absolute + tall cover */
    body::before,
    body::after {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        height: 140vh; /* cover scroll bounce */
        transform: none !important;
        will-change: auto !important;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: transparent; /* allow fixed bg layers to show */
    color: var(--text);
    font-family: var(--font-main);
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Create an isolated stacking context so pseudo-elements can sit behind content safely */
    position: relative;
    isolation: isolate;
    background: transparent;
    color: #eaeaea;
}

main {
    flex: 1;
}

a {
    color: var(--link);
}

/* Optional performance hint (only if you actually have hover transforms) */
@media (hover: hover) and (pointer: fine) {
    .re-card,
    .re-entity-card,
    .re-home-card {
        will-change: transform;
    }
}

@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   CONTENT WRAPPER
   ========================================================= */
.re-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 22px 46px;
}

@media (max-width: 768px) {
    .re-content {
        padding: 16px 14px 34px;
    }

    .re-search-form {
        width: 100%;
    }
}

/* =========================================================
   THEMES + HAZE
   ========================================================= */

/* =========================================================
   FIXED BACKGROUND (IMAGE) + OVERLAY LAYERS
   - ::before = background image layer (fixed)
   - ::after  = haze/overlay layer (fixed)
   ========================================================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    transform: translateZ(0);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body.theme-default::before {
    background-image: radial-gradient(circle at top, #141414 0%, var(--bg) 60%);
}

body.theme-valorant::before {
    background-image: radial-gradient(circle at top, rgba(255,70,85,0.25), transparent 60%), url('/img/backgrounds/valo.jpg');
}

body.theme-dota2::before {
    background-image: radial-gradient(circle at top, rgba(190,0,0,0.25), transparent 60%), url('/img/backgrounds/dota.jpg');
}

/* Haze overlay */
body.theme-default::after,
body.theme-valorant::after,
body.theme-dota2::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: -1;
    background: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.35), rgba(0,0,0,0.75) 70%), linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.70));
}

body.theme-valorant::after {
    background: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.35), rgba(20,1,1,0.75) 70%), linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(51,9,9,0.65));
}

body.theme-dota2::after {
    background: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.3), rgb(12 16 20 / 50%) 70%), linear-gradient(to bottom, rgb(0 0 0 / 45%), rgb(28 22 60 / 55%));
}

/* Keep app content above haze */
.re-header, main, footer {
    position: relative;
    z-index: 1;
}

/* =========================================================
   HEADER
   ========================================================= */
.re-header {
    background: #0b0b0b;
    border-bottom: 1px solid #333;
    padding: 10px 14px;
}

.re-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.re-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.re-nav {
    display: flex;
    gap: 14px;
}

    .re-nav a {
        color: #ccc;
        text-decoration: none;
    }

        .re-nav a:hover {
            color: #fff;
        }

/* Mobile header layout */
@media (max-width: 768px) {
    .re-header {
        text-align: center;
    }

    .re-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .re-logo {
        width: 100%;
        text-align: center;
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .re-nav {
        justify-content: center;
    }
}

/* =========================================================
   HEADER SEARCH
   ========================================================= */
.re-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.re-search-type {
    height: var(--search-h);
    padding: 0 10px;
    border-radius: var(--radius);
    background: var(--panel2);
    border: 1px solid #555;
    color: var(--text);
    font-family: var(--font-main);
}

.re-search-btn {
    height: var(--search-h);
    padding: 0 16px;
    border-radius: var(--radius);
    background: #2a2a2a;
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
}

    .re-search-btn:hover {
        background: #3a3a3a;
    }

@media (max-width: 768px) {
    .re-search-form {
        justify-content: center;
    }
}

/* =========================================================
   TOM SELECT (GLOBAL + HEADER)
   ========================================================= */
.ts-wrapper, .ts-control, .ts-dropdown {
    z-index: 999999 !important;
}

/* Header TomSelect sizing + look */
.re-header .ts-wrapper {
    flex: 1;
    min-width: 0;
}

.re-header .ts-control {
    height: var(--search-h) !important;
    min-height: var(--search-h) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}

    .re-header .ts-control input {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: #f2f2f2 !important;
        font-family: var(--font-main) !important;
    }

.re-header .ts-wrapper.focus .ts-control {
    border-color: var(--focus) !important;
    box-shadow: 0 0 0 2px rgba(106,169,255,0.18) !important;
}

/* Remove TomSelect caret */
.ts-wrapper.single .ts-control:after {
    display: none !important;
}

/* Dropdown base */
.ts-dropdown {
    background: var(--panel) !important;
    border: 1px solid var(--border2) !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.65) !important;
    overflow: hidden !important;
}

.ts-dropdown-content {
    background: var(--panel) !important;
}

/* Individual suggestion option */
.ts-dropdown .option {
    color: var(--text) !important;
    background: transparent !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    white-space: normal !important;
}

    /* Hover / active option */
    .ts-dropdown .option.active,
    .ts-dropdown .option:hover {
        background: rgba(106,169,255,0.15) !important;
        color: #fff !important;
    }

    /* Divider between results */
    .ts-dropdown .option + .option {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* Kind/type badge */
    .ts-dropdown .option .re-kind {
        color: var(--muted) !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        opacity: 0.85;
    }

/* No results */
.ts-dropdown .no-results {
    padding: 10px 12px !important;
    color: var(--muted) !important;
    font-style: italic !important;
}

/* Keep selected value bright after selection (avoid “gray selected” issue) */
.re-header .ts-control .item,
.re-home-search-wrap .ts-control .item {
    color: #f2f2f2 !important;
    opacity: 1 !important;
}

/* Placeholder color */
.re-header .ts-control input::placeholder,
.re-home-search-wrap .ts-control input::placeholder {
    color: var(--muted) !important;
}

/* =========================================================
   GAME ACCENTS – VALORANT
   ========================================================= */
body.theme-valorant .ts-dropdown .option:hover,
body.theme-valorant .ts-dropdown .option.active {
    background: rgba(255,70,85,0.18) !important;
    color: #fff !important;
}

body.theme-valorant .ts-control .item {
    color: #f2f2f2 !important;
    opacity: 1 !important;
}

/* =========================================================
   MODAL (CONTACT)
   ========================================================= */
.re-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .re-modal.show {
        display: flex;
    }

.re-modal-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    color: #eee;
    position: relative;
}

.re-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    cursor: pointer;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
#contact-form input,
#contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eee;
    border-radius: 6px;
    font-family: var(--font-main);
}

#contact-form button {
    width: 100%;
    padding: 9px;
    background: #444;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
}

    #contact-form button:hover {
        background: #555;
    }

/* Status box (hidden when empty) */
.re-contact-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.35);
    font-size: 0.9rem;
    line-height: 1.35;
    display: block;
}

    .re-contact-status:empty {
        display: none;
    }

    .re-contact-status.is-info {
        color: #bcd7ff;
        border-color: rgba(106,169,255,0.25);
    }

    .re-contact-status.is-success {
        color: #b6ffcf;
        border-color: rgba(125,255,154,0.22);
    }

    .re-contact-status.is-error {
        color: #ffb6b6;
        border-color: rgba(255,125,125,0.22);
    }

/* Invalid fields */
#contact-form .is-invalid {
    border-color: rgba(255,125,125,0.55) !important;
    box-shadow: 0 0 0 2px rgba(255,125,125,0.12) !important;
}

/* Counter */
.re-contact-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 2px 10px;
}

.re-contact-counter {
    font-size: 0.78rem;
    color: #8a8a8a;
}

    .re-contact-counter.is-warn {
        color: #d8b26a;
    }

/* =========================================================
   HOME HERO / SEARCH / CARDS
   ========================================================= */
.re-home-hero {
    max-width: 980px;
    margin: 80px auto 0;
    padding: 0 18px;
    text-align: center;
}

.re-home-title {
    font-size: 2.4rem;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.re-home-subtitle {
    margin: 0 0 18px;
    color: #bdbdbd;
}

.re-home-search-wrap {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: left;
}

    /* Apply same TomSelect styling to homepage search */
    .re-home-search-wrap .ts-wrapper {
        flex: 1;
        min-width: 0;
    }

    .re-home-search-wrap .ts-control {
        height: var(--search-h) !important;
        min-height: var(--search-h) !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 10px !important;
        border-radius: var(--radius) !important;
        background: var(--panel) !important;
        border: 1px solid var(--border) !important;
        box-shadow: none !important;
    }

        .re-home-search-wrap .ts-control input {
            height: 100% !important;
            line-height: calc(var(--search-h) - 2px) !important;
            padding: 0 !important;
            margin: 0 !important;
            color: #f2f2f2 !important;
            font-size: 0.95rem !important;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            min-width: 2ch;
            font-family: var(--font-main) !important;
        }

    .re-home-search-wrap .ts-wrapper.focus .ts-control {
        border-color: var(--focus) !important;
        box-shadow: 0 0 0 2px rgba(106,169,255,0.18) !important;
    }

.re-home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
}

.re-home-card {
    display: block;
    text-decoration: none;
    background: rgba(10,10,10,0.72);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 18px 18px;
    color: #eee;
    text-align: left;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

    .re-home-card:hover {
        border-color: rgba(255,255,255,0.18);
        background: rgba(10,10,10,0.82);
        transform: translateY(-1px);
    }

.re-home-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.re-home-card-text {
    color: #bdbdbd;
    font-size: 0.95rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .re-home-hero {
        margin-top: 46px;
    }

    .re-home-cards {
        grid-template-columns: 1fr;
    }

    .re-home-search-wrap {
        text-align: center;
    }
}

/* =========================================================
   HOME SEO — footer-style block (your “bottom area”)
   ========================================================= */
.re-home-seo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 0 !important;
    margin: 18px auto 0 !important;
    max-width: 900px;
    text-align: center;
    color: rgba(255,255,255,0.72);
}

    .re-home-seo::before {
        content: "";
        display: block;
        width: min(720px, 100%);
        height: 1px;
        margin: 0 auto 14px;
        background: rgba(255,255,255,0.10);
    }

    .re-home-seo h2,
    .re-home-seo h3 {
        margin: 0 0 6px !important;
        font-size: 1.05rem !important;
        font-weight: 700;
        color: rgba(255,255,255,0.88);
        letter-spacing: 0.2px;
    }

    .re-home-seo p {
        margin: 0 auto !important;
        max-width: 70ch;
        font-size: 0.95rem;
        line-height: 1.55;
        color: rgba(255,255,255,0.68);
    }

@media (max-width: 768px) {
    .re-home-seo {
        margin-top: 14px !important;
        padding-top: 8px !important;
    }

        .re-home-seo h2,
        .re-home-seo h3 {
            font-size: 1.0rem !important;
        }

        .re-home-seo p {
            font-size: 0.92rem;
            padding: 0 6px;
        }
}

/* =========================================================
   GENERIC EMPTY STATE (used on several pages)
   ========================================================= */
.re-empty {
    padding: 14px 0;
    color: #aaa;
}

/* =========================================================
   MOBILE SCROLL JITTER SAFETY PATCH
   (helps with fixed overlay + transforms on mobile)
   ========================================================= */
@media (max-width: 768px) {
    body.theme-default::before,
    body.theme-valorant::before,
    body.theme-dota2::after {
        transform: translateZ(0);
        will-change: transform;
    }

    /* reduce GPU thrash for lists/cards */
    .re-card, .re-entity-card, .re-home-card {
        will-change: auto;
    }
}

/* =========================================================
   HOME: FEATURED TAGS (COMPACT CHIPS)
   ========================================================= */
.re-home-featured {
    margin: 18px auto 0;
    max-width: 980px;
    padding: 0 18px;
}

.re-home-featured-head {
    margin-bottom: 8px;
    text-align: left;
}

.re-home-featured-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
}

.re-home-featured-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.re-home-featured-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px; /* chip */
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    user-select: none;
    cursor: pointer;
}

    .re-home-featured-pill:hover {
        transform: translateY(-1px);
        background: rgba(0,0,0,0.62);
        border-color: rgba(255,255,255,0.20);
    }

/* Mobile: slightly larger tap target */
@media (max-width: 768px) {
    .re-home-featured-pill {
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}

body.theme-valorant .re-home-featured-pill:hover {
    border-color: rgba(255,70,85,0.35);
    box-shadow: 0 0 0 2px rgba(255,70,85,0.10);
}

.re-home-featured-sub {
    margin-top: 4px;
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
}
/* =========================================================
   HOME – FEATURED GRID (ENTITIES LEFT, TAGS RIGHT)
   ========================================================= */

.re-home-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
    /* =========================================================
   VARIABLES
   ========================================================= */
    :root {
        --bg: #0a0a0a;
        --panel: #0f0f0f;
        --panel2: #0c0c0c;
        --border: #444;
        --border2: #333;
        --text: #e6e6e6;
        --muted: #9a9a9a;
        --link: #6aa9ff;
        --focus: #6aa9ff;
        --search-h: 40px;
        --radius: 6px;
        --font-main: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Arial, sans-serif;
    }

    .re-home-featured-head {
        margin-bottom: 8px;
        text-align: center;
    }

    .re-home-featured-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .re-home-featured-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        margin-top: 28px;
        max-width: 980px;
        margin: 28px auto 0;
        padding: 0 18px;
    }
    /* Mobile: stack vertically */
    @media (max-width: 768px) {
        .re-home-featured-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }
    }
}

.re-home-featured {
    margin-top: 0;
}

.re-home-featured-head {
    margin-bottom: 10px;
}

.re-home-featured-sub {
    margin-top: 2px;
}

.re-home-featured-grid {
    align-items: start;
}

.re-home-featured-sub {
    letter-spacing: 0.2px;
}
/* =========================================================
   HOME – FEATURED ENTITY PILLS (with icons)
   ========================================================= */

.re-home-entity-pill {
    gap: 8px;
    padding-left: 8px; /* room for icon */
}

/* Small circular icon */
.re-home-entity-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Entity name */
.re-home-entity-name {
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile: slightly bigger tap target */
@media (max-width: 768px) {
    .re-home-entity-icon {
        width: 26px;
        height: 26px;
    }
}

/* =========================================================
   SEARCH SUGGESTIONS – ENTITY ICONS
   ========================================================= */

.re-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Small circular entity icon */
.re-option-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Text stays readable */
.re-option .re-text {
    flex: 1;
    min-width: 0;
}

/* Badge stays right-aligned */
.re-option .re-kind {
    margin-left: auto;
}

/*recommendations ===========================================================*/
.re-hero-role {
    font-style: italic;
    color: #aaa;
}

.re-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start; /* keep source beside title, not pushed right */
    gap: 14px;
    margin: 10px 0 16px;
    flex-wrap: wrap;
}

.re-page-head {
    min-width: 240px;
}

.re-title {
    margin: 0;
    font-size: 1.6rem;
}

.re-subtitle {
    margin: 6px 0 0;
    color: #aaa;
}

/* source pill/card */
.re-source-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.45);
    text-decoration: none;
    color: #e6e6e6;
    max-width: 320px;
}

    .re-source-card:hover {
        background: rgba(0,0,0,0.60);
        border-color: rgba(255,255,255,0.22);
    }

.re-source-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 5px;
    flex: 0 0 auto;
}

.re-source-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.re-source-topline {
    font-size: 0.78rem;
    color: rgba(230,230,230,0.72);
    letter-spacing: 0.02em;
}

.re-source-meta {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
/* =========================
       Recommendation Hero Header
       ========================= */

.re-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 12px 0 18px;
}

.re-hero-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 8px;
    flex: 0 0 auto;
}

.re-hero-text {
    min-width: 0;
}

.re-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.re-subtitle {
    margin: 6px 0 0;
    color: rgba(230,230,230,0.75);
    font-size: 0.95rem;
}
/* SOURCE ENTITY TAGS (context above recommendations) */
.re-source-tags {
    margin: 6px 0 14px;
}

.re-source-tags-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.re-source-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.re-source-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
}

    .re-source-tag:hover {
        background: rgba(0,0,0,0.55);
        border-color: rgba(255,255,255,0.20);
    }

.re-empty {
    padding: 14px 0;
    color: #aaa;
}

/* GRID */
.re-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

/* CARD */
.re-card {
    background: rgba(10,10,10,0.55);
    border: 1px solid #333;
    border-radius: 10px;
}

.re-card-link {
    display: block;
    padding: 12px;
    color: #e6e6e6;
    text-decoration: none;
    height: 100%;
}

    .re-card-link:hover {
        background: rgba(255,255,255,0.03);
    }

/* TOP */
.re-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.re-card-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid #2a2a2a;
    padding: 6px;
    flex: 0 0 auto;
}

.re-card-text {
    min-width: 0;
    width: 100%;
}

.re-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
}

.re-card-meta {
    color: #aaa;
    font-size: 0.9rem;
}

/* MATCH */
.re-card-match {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.re-match-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ccc;
}

.re-match-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.re-match-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 220ms ease-out;
}

/* MATCH COLORS */
.re-card-match[data-match^="9"] .re-match-fill,
.re-card-match[data-match^="8"] .re-match-fill {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.re-card-match[data-match^="7"] .re-match-fill,
.re-card-match[data-match^="6"] .re-match-fill {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.re-card-match[data-match^="5"] .re-match-fill,
.re-card-match[data-match^="4"] .re-match-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.re-card-match[data-match^="3"] .re-match-fill,
.re-card-match[data-match^="2"] .re-match-fill,
.re-card-match[data-match^="1"] .re-match-fill {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

/* SHARED TAGS */
.re-rec-tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.re-rec-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
}

    /* =========================================================
   UNIVERSAL PILL SYSTEM
   ========================================================= */

    .re-pill,
    .re-home-featured-pill,
    .re-pill:hover,
    .re-home-featured-pill:hover,
    .re-rec-tag:hover {
        background: rgba(0,0,0,0.55);
        border-color: rgba(255,255,255,0.18);
    }

/* =========================================================
   RECOMMENDATIONS – SHARED TAGS
   ========================================================= */

/* Make shared tags visually quieter */

/* =========================================================
   RECOMMENDATION CARD HIERARCHY
   ========================================================= */

.re-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Entity name stronger */
.re-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Role quieter */
.re-card-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

/* Match block visually grouped */
.re-card-match {
    margin-top: 6px;
}

/* =========================================================
   ENTITY ICON POLISH
   ========================================================= */

.re-card-icon,
.re-home-entity-icon,
.re-option-icon {
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.re-rec-tags-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-right: 4px;
}

.re-rec-tags {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.re-rec-tags-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.re-rec-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.re-section-divider {
    margin: 18px 0 22px;
    border: none;
    height: 1px;
    background: linear-gradient( to right, transparent, rgba(255,255,255,0.18), transparent );
}

.re-rec-tags-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}

.re-rec-tags-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}

.re-card-text {
    gap: 5px;
}

.re-card-match {
    margin-top: 6px;
}

.re-rec-tags {
    margin-top: 6px;
}

.re-rec-tags {
    opacity: 0.9;
}
/* =========================================
   VALORANT ACCENT: RECOMMENDATION PILLS
   ========================================= */

/* Source traits (top pills under the hero) */
body.theme-valorant .re-source-tag:hover {
    border-color: rgba(255,70,85,0.35);
    box-shadow: 0 0 0 2px rgba(255,70,85,0.10);
}

/* Shared trait pills inside recommendation cards */
body.theme-valorant .re-rec-tag:hover {
    border-color: rgba(255,70,85,0.35);
    box-shadow: 0 0 0 2px rgba(255,70,85,0.10);
}

/* If you want the whole shared-traits block to feel “Valorant-y” on hover */
body.theme-valorant .re-card:hover .re-rec-tag {
    border-color: rgba(255,70,85,0.18);
}
