/* ================================================================
   RAM Suggestion — Results Page
   Namespace: .rs  (ram-suggestion)
   Design: matches CPU Cooler Finder (.ccr-v2) light blue-gray theme
   ================================================================ */

.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }

.rs.rs-results {
    --rs-bg:          #ffffff;
    --rs-muted-bg:    #f8fbff;
    --rs-card:        #ffffff;
    --rs-border:      #e8f0f8;
    --rs-border-strong: #e2ecf4;
    --rs-text:        #1d2d3f;
    --rs-heading:     #0e2a43;
    --rs-muted:       #5a7690;
    --rs-label:       #7b8fa3;
    --rs-accent:      #1a6bb5;
    --rs-accent-soft: #3b82c8;
    --rs-pros:        #15803d;
    --rs-cons:        #b45309;
    --rs-ddr5:        #6d28d9;
    --rs-ddr4:        #0e7490;

    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--rs-text);
    line-height: 1.6;
    background: var(--rs-bg);
}

/* ── Top bar (breadcrumb + tags) ── */
.rs-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e8eff6;
}

.rs-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rs-label);
}

.rs-crumb a { color: var(--rs-accent-soft); text-decoration: none; }
.rs-crumb a:hover { text-decoration: underline; }
.rs-crumb-sep { opacity: 0.45; color: var(--rs-label); }
.rs-crumb-here { color: var(--rs-heading); font-weight: 500; }

.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.rs-tag {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f6fc;
    border: 1px solid #e0ecf6;
    color: #364e66;
}

.rs-tag-cpu { color: var(--rs-heading); border-color: #d4e4f4; }
.rs-tag-ddr { background: linear-gradient(135deg, #f3e8ff, #ede9fe); color: var(--rs-ddr5); border-color: #ddd6fe; }

/* ── Hero ── */
.rs-hero { padding: 28px 0 8px; }

.rs-hero-frame {
    position: relative;
    padding: 32px 28px 36px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--rs-border);
    box-shadow: 0 4px 24px rgba(30, 100, 180, 0.06);
}

.rs-eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rs-label);
}

.rs-hero-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rs-heading);
}

.rs-dek {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.65;
    color: #4d6880;
    font-weight: 500;
}

.rs-compat-note {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #fffbf0;
    border: 1px solid #f5e6c4;
    border-left: 4px solid #f0a500;
    border-radius: 8px;
    font-size: 14px;
    color: #6b5020;
    line-height: 1.55;
    max-width: 60ch;
}

.rs-lead {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--rs-muted);
    max-width: 52ch;
}

.rs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Buttons ── */
.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: none;
    cursor: pointer;
}

.rs-btn:hover { transform: translateY(-1px); }

.rs-btn-primary {
    background: linear-gradient(135deg, #2b8ad6, #5db8ff);
    color: #fff;
    box-shadow: 0 6px 24px rgba(43, 138, 214, 0.22);
}

.rs-btn-line {
    background: #fff;
    color: var(--rs-accent-soft);
    border: 1px solid #d4e4f4;
}

.rs-btn-line:hover { background: #f5f9ff; color: var(--rs-accent-soft); }

.rs-btn-amazon {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.3);
    white-space: nowrap;
}

.rs-btn-amazon:hover {
    background: linear-gradient(135deg, #e68a00 0%, #cc7a00 100%);
    box-shadow: 0 6px 22px rgba(255, 153, 0, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

.rs-btn-amazon:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
}

/* ── Band (section card) ── */
.rs-band {
    margin-top: 36px;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--rs-muted-bg);
    border: 1px solid #e0ecf6;
}

.rs-h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--rs-heading);
}

.rs-band-head { text-align: center; margin-bottom: 24px; }

.rs-band-sub,
.rs-picks-sub {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--rs-muted);
    max-width: 60ch;
}

.rs-band-head .rs-band-sub {
    margin: 4px auto 0;
    text-align: center;
}

/* ── Scenarios ── */
.rs-scenarios-wrap {
    margin-top: 36px;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--rs-muted-bg);
    border: 1px solid #e0ecf6;
}

.rs-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rs-scenario {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--rs-border-strong);
}

.rs-scenario-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 10px;
}

.rs-scenario-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rs-accent);
}

.rs-scenario-txt {
    margin: 0;
    font-size: 13px;
    color: var(--rs-muted);
    line-height: 1.55;
}

/* ── Picks section ── */
.rs-picks-wrap {
    margin-top: 36px;
}

.rs-picks-head { margin-bottom: 24px; }

.rs-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Product card ── */
.rs-product {
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--rs-border-strong);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rs-product:hover {
    border-color: #bdd5f0;
    box-shadow: 0 8px 36px rgba(30, 100, 180, 0.09);
}

.rs-product-featured {
    border: 2px solid #2b8ad6;
    box-shadow: 0 8px 32px rgba(43, 138, 214, 0.12);
}

/* Rank ribbon */
.rs-product-rank {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rs-rank-top   { background: linear-gradient(90deg, #dbeafe, #bfdbfe); color: #1e40af; }
.rs-rank-value { background: linear-gradient(90deg, #d1fae5, #a7f3d0); color: #065f46; }
.rs-rank-perf  { background: linear-gradient(90deg, #ede9fe, #ddd6fe); color: #5b21b6; }

/* Inner layout: info | cta */
.rs-product-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px 24px;
    padding: 20px 24px 18px;
}

.rs-product-info { flex: 1; min-width: 0; }

.rs-product-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rs-heading);
    line-height: 1.3;
}

.rs-product-intro {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--rs-muted);
    line-height: 1.6;
}

/* ── Pros / Cons ── */
.rs-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 0 0 12px;
}

.rs-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rs-label);
    margin: 0 0 6px;
}

.rs-pros-col .rs-col-title { color: var(--rs-pros); }
.rs-cons-col .rs-col-title { color: var(--rs-cons); }

.rs-bullet-list {
    margin: 0;
    padding: 0 0 0 1.1em;
    font-size: 12.5px;
    line-height: 1.5;
    color: #3d5a74;
}

.rs-bullet-list li { margin-bottom: 4px; list-style: disc; }
.rs-pros-col .rs-bullet-list { list-style: none; padding-left: 0; }
.rs-cons-col .rs-bullet-list { list-style: none; padding-left: 0; }

.rs-pros-col .rs-bullet-list li,
.rs-cons-col .rs-bullet-list li {
    padding-left: 16px;
    position: relative;
}

.rs-pros-col .rs-bullet-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rs-pros);
    font-weight: 700;
    font-size: 11px;
}

.rs-cons-col .rs-bullet-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--rs-cons);
    font-weight: 700;
}

/* ── Specs row ── */
.rs-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rs-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #f2f7fc;
    font-size: 12.5px;
    color: #2c4a66;
    white-space: nowrap;
}

.rs-spec em {
    font-style: normal;
    color: #8da4b8;
    font-weight: 500;
}

/* ── Product CTA ── */
.rs-product-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
}

/* ── Amazon note ── */
.rs-amazon-note {
    margin-top: 16px;
    padding: 10px 16px;
    background: #fef9e7;
    border: 1px solid #f5e6b8;
    border-radius: 8px;
    font-size: 12.5px;
    color: #6b5b3a;
    text-align: center;
    line-height: 1.5;
}

/* ── Tips section ── */
.rs-tips-wrap {
    margin-top: 8px;
    padding: 32px 0 28px;
    background: var(--rs-muted-bg);
    border-top: 1px solid #e0ecf6;
    border-left: 4px solid #4a9fd4;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.rs-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rs-tip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--rs-border);
}

.rs-tip-n {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eaf5ff;
    color: var(--rs-accent);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-tip p { margin: 0; font-size: 14px; color: var(--rs-muted); }

/* ── Installation note ── */
.rs-install-wrap {
    padding: 28px 0 40px;
    border-top: 2px dashed #c8dff0;
    background: var(--rs-bg);
    border-left: 4px solid #f0a500;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.rs-install {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rs-muted);
    max-width: 65ch;
}

/* ── FAQ ── */
.rs-faq-wrap {
    margin-top: 36px;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--rs-muted-bg);
    border: 1px solid #e0ecf6;
}

.rs-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-faq-item {
    background: #fff;
    border: 1px solid var(--rs-border-strong);
    border-radius: 12px;
    padding: 14px 16px;
}

.rs-faq-item h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rs-heading);
}

.rs-faq-item p {
    margin: 0;
    font-size: 13px;
    color: var(--rs-muted);
    line-height: 1.55;
}

/* ── Related pages ── */
.rs-related-wrap {
    margin-top: 40px;
    padding: 32px 0 10px;
    border-top: 2px solid #e8eff6;
}

.rs-related-sub {
    margin: 6px 0 14px;
    font-size: 13px;
    color: #6a8298;
}

.rs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rs-related-card {
    background: #ffffff;
    border: 1px solid #d8e6f4;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(12, 42, 74, 0.04);
}

.rs-related-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.rs-related-card a { color: #12395d; text-decoration: none; }
.rs-related-card a:hover { text-decoration: underline; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .rs-scenario-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rs.rs-results {
        padding: 16px 14px 40px;
    }

    .rs-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .rs-hero-frame {
        padding: 22px 18px 28px;
        border-radius: 16px;
    }

    .rs-hero-title { font-size: 22px; }

    .rs-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .rs-hero-actions .rs-btn { width: 100%; min-height: 44px; }

    .rs-scenarios-wrap,
    .rs-faq-wrap,
    .rs-band {
        padding: 22px 18px;
        border-radius: 16px;
        margin-top: 24px;
    }

    /* Product cards: stack vertically */
    .rs-product-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .rs-product-name { font-size: 16px; word-break: break-word; }

    .rs-product-cta {
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .rs-btn-amazon { width: 100%; text-align: center; }

    .rs-pros-cons { grid-template-columns: 1fr; }

    .rs-related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
