/* /guides/pricing/consoles + /guides/pricing/consoles/<console>.
   Layered on top of search/main.css (the .browse-page shell, .browse-* cards,
   .pagination) and pricing/main.css (.rarity-box tiers, the neon price color
   variables) — this file adds only the guide hub teasers, the "most valuable"
   strip and the price table. */

/* ---- Toolbar row: back link left, sibling-page link right -------------- */
/* Spans the content width (1100px, same as the grids/table below), so the
   right-hand link aligns with the content edge rather than the viewport. */

.guide-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 20px auto 0;
    font-family: 'Electrolize', sans-serif;
}

.guide-toolbar a {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--console-cyan, #00d9ff);
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-toolbar a:hover {
    color: var(--neon-green, #00ff41);
}

/* ---- Hub: per-console teaser under each console card ------------------ */

/* The hub reuses .browse-card but the teaser list makes the cards taller, so
   left-align the metadata under the centered logo/name. */
.guide-card-meta {
    padding: 0 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-card-count {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: var(--console-muted, #7a8bb0);
}

.guide-card-top {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(0, 217, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guide-card-top li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 0.74rem;
    color: var(--console-text, #c6d4f0);
}

.guide-card-top .guide-top-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.3px;
}

.guide-card-top .guide-top-price {
    color: var(--neon-green, #00ff41);
    white-space: nowrap;
}

.guide-card-cta {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: var(--console-cyan, #00d9ff);
}

/* ---- Console guide: "most valuable" strip ------------------------------ */

.guide-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 8px;
}

.guide-top-card {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--console-border, rgba(0, 217, 255, 0.25));
    border-radius: 8px;
    background: var(--console-card, rgba(10, 14, 39, 0.75));
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-top-card:hover {
    border-color: var(--console-cyan, #00d9ff);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
}

.guide-top-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--console-cyan, #00d9ff);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: var(--console-cyan, #00d9ff);
}

.guide-top-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    background: #0a0e27;
}

.guide-top-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-top-noart {
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: #e8f6ff;
}

.guide-top-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}

.guide-top-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--console-text, #c6d4f0);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.guide-top-value {
    font-size: 0.82rem;
    color: var(--neon-green, #00ff41);
}

.guide-top-card:hover .guide-top-title {
    color: #fff;
}

/* ---- Console guide: section headings ----------------------------------- */

.guide-section-heading {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e8f6ff;
    max-width: 1100px;
    margin: 30px auto 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}

.guide-section-heading-center {
    text-align: center;
}

.guide-pricing-note {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--console-muted, #7a8bb0);
    max-width: 1100px;
    margin: 14px auto 0;
}

/* ---- Console guide: the price table ------------------------------------ */

.guide-table-wrap {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--console-border, rgba(0, 217, 255, 0.25));
    border-radius: 8px;
    background: var(--console-card, rgba(10, 14, 39, 0.75));
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.82rem;
}

.guide-table th {
    padding: 12px 14px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--console-muted, #7a8bb0);
    border-bottom: 1px solid rgba(0, 217, 255, 0.25);
    white-space: nowrap;
}

.guide-table th.guide-col-game {
    text-align: left;
}

.guide-table th a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-table th a:hover {
    color: var(--console-cyan, #00d9ff);
}

.guide-table th .guide-sort-active {
    color: var(--console-cyan, #00d9ff);
}

.guide-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
    color: var(--console-text, #c6d4f0);
    white-space: nowrap;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:hover td {
    background: rgba(0, 255, 255, 0.04);
}

.guide-table td.guide-col-game {
    text-align: left;
    white-space: normal;
}

.guide-table td.guide-col-game a {
    color: var(--console-text, #c6d4f0);
    text-decoration: none;
    transition: color 0.15s ease;
}

.guide-table td.guide-col-game a:hover {
    color: var(--console-cyan, #00d9ff);
}

.guide-price-loose,
.guide-price-cib,
.guide-price-new {
    color: var(--neon-green, #00ff41);
}

.guide-price-none {
    color: var(--console-muted, #7a8bb0);
}

/* The table cells reuse pricing/main.css's .rarity-box badges; only shrink
   them slightly so a 100-row table stays dense. */
.guide-table .rarity-box {
    font-size: 0.62rem;
    padding: 3px 8px;
}

/* ---- Console guide: pagination ----------------------------------------- */
/* Mirrors browse/main.css's .browse-pagination (this page doesn't load that
   file): search/main.css only defines the flex row, so without these the
   pager sits left-aligned, and its .page-btn is sized for a <button> while
   these are links and a disabled <span>. */

.browse-pagination {
    justify-content: center;
    margin: 32px 0 8px;
}

.browse-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.browse-pagination .page-btn.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ---- Landing pages (/guides, /guides/pricing): feature cards, console
        chips and explainer panels ---------------------------------------- */

.guide-feature-card {
    font-family: 'Electrolize', sans-serif;
    display: block;
    max-width: 720px;
    margin: 0 auto 10px;
    padding: 22px 26px;
    border: 1px solid var(--console-border, rgba(0, 217, 255, 0.25));
    border-radius: 8px;
    background: var(--console-card, rgba(10, 14, 39, 0.75));
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-feature-card:hover {
    border-color: var(--console-cyan, #00d9ff);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
}

.guide-feature-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e8f6ff;
    margin-bottom: 8px;
}

.guide-feature-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    color: var(--console-text, #c6d4f0);
    margin-bottom: 12px;
}

.guide-feature-cta {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--console-cyan, #00d9ff);
}

.guide-chip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.guide-chip {
    font-family: 'Electrolize', sans-serif;
    padding: 8px 14px;
    border: 1px solid var(--console-border, rgba(0, 217, 255, 0.25));
    border-radius: 6px;
    background: var(--console-card, rgba(10, 14, 39, 0.75));
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--console-text, #c6d4f0);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.guide-chip:hover {
    border-color: var(--console-cyan, #00d9ff);
    background: rgba(0, 255, 255, 0.05);
    color: #fff;
}

.guide-explainers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.guide-explainer {
    font-family: 'Electrolize', sans-serif;
    padding: 18px 20px;
    border: 1px solid var(--console-border, rgba(0, 217, 255, 0.25));
    border-radius: 8px;
    background: var(--console-card, rgba(10, 14, 39, 0.75));
}

.guide-explainer h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--console-cyan, #00d9ff);
    margin: 0 0 10px;
}

.guide-explainer p {
    font-size: 0.8rem;
    line-height: 1.65;
    letter-spacing: 0.3px;
    color: var(--console-text, #c6d4f0);
    margin: 0 0 8px;
}

.guide-explainer p:last-child {
    margin-bottom: 0;
}

/* The cross-console strip shows which console each game is on. */
.guide-top-console {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: var(--console-muted, #7a8bb0);
}

@media (max-width: 768px) {
    .guide-top-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .guide-top-art {
        height: 140px;
    }
    .guide-table th,
    .guide-table td {
        padding: 8px 10px;
    }
}
