/* css/specs.css - „Merge pe PC-ul meu?". Follows the site theme (light + dark), pattern-matched to mancare.css. */

:root {
    --sp-accent: #7c3aed;
    --sp-accent-soft: #ede9fe;
    --sp-card-bg: #ffffff;
    --sp-card-border: #e5e7eb;
    --sp-page-bg: #f7f5ff;
    --sp-muted: #6b7280;
    --sp-good: #15803d;
    --sp-good-soft: #dcfce7;
    --sp-unknown: #b45309;
    --sp-unknown-soft: #fef3c7;
}

body.dark-theme {
    --sp-accent: #a78bfa;
    --sp-accent-soft: #2e1065;
    --sp-card-bg: #1f2937;
    --sp-card-border: #374151;
    --sp-page-bg: #111827;
    --sp-muted: #9ca3af;
    --sp-good: #4ade80;
    --sp-good-soft: #14532d;
    --sp-unknown: #fbbf24;
    --sp-unknown-soft: #451a03;
}

/* clip, not hidden: the site-wide `body { overflow-x: hidden }` makes <body> a scroll
   container that never scrolls, which silently kills any position: sticky inside. */
.sp-body, body.sp-body#page-top {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--sp-page-bg); color: var(--text-color); min-height: 100vh; overflow-x: clip;
}

.sp-main { flex: 1; padding-top: 96px; padding-bottom: 48px; }
.sp-muted { margin: 0; color: var(--sp-muted); font-size: .84rem; line-height: 1.5; }

.sp-hero { padding: 24px 0 6px; text-align: center; }
.sp-hero-icon { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.sp-hero h1 { margin: 0 0 12px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.sp-lead { max-width: 760px; margin: 0 auto; color: var(--sp-muted); font-size: 1rem; line-height: 1.6; }

.sp-work { padding: 18px 0 8px; }
.sp-layout { display: grid; gap: 18px; max-width: 980px; }

.sp-card { background: var(--sp-card-bg); border: 1px solid var(--sp-card-border); border-radius: 16px; padding: 20px; }
.sp-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; font-weight: 750; }
.sp-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sp-accent); color: #fff; font-size: .9rem; }

.sp-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--sp-card-border); border-radius: 10px; padding: 0 12px; background: var(--sp-page-bg); }
.sp-field:focus-within { border-color: var(--sp-accent); box-shadow: 0 0 0 3px var(--sp-accent-soft); }
.sp-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; padding: 12px 0; font: inherit; outline: none; }
.sp-field .svg-inline--fa, .sp-field i { color: var(--sp-muted); }

.sp-card > .sp-muted { margin: 14px 0 8px; }

/* „Nu știi ce placă video ai?" — detection from the browser + the dxdiag steps */
.sp-help { margin-top: 10px; border: 1px dashed var(--sp-card-border); border-radius: 10px; padding: 8px 12px; }
.sp-help summary { cursor: pointer; color: var(--sp-accent); font-weight: 650; font-size: .9rem; }
.sp-help-body { padding-top: 10px; display: grid; gap: 10px; }
.sp-detect { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-detect-btn { border: 0; border-radius: 999px; background: var(--sp-accent); color: #fff; padding: 8px 16px; font-weight: 650; font-size: .88rem; cursor: pointer; }
.sp-detect-out { margin: 0; font-size: .88rem; line-height: 1.5; }
.sp-detect-out:empty { display: none; }
.sp-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .88rem; line-height: 1.55; }
.sp-help kbd { border: 1px solid var(--sp-card-border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--sp-page-bg); color: inherit; font-size: .8rem; }
.sp-help code { color: var(--sp-accent); font-weight: 700; }
.sp-copy { border: 1px solid var(--sp-accent); border-radius: 999px; background: transparent; color: var(--sp-accent); padding: 0 8px; font-size: .74rem; cursor: pointer; }
.sp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sp-tier { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--sp-card-border); border-radius: 10px; background: var(--sp-card-bg); color: inherit; padding: 10px 12px; cursor: pointer; }
.sp-tier span { color: var(--sp-muted); font-size: .78rem; }
.sp-tier:hover { border-color: var(--sp-accent); }
.sp-tier[aria-checked="true"] { border-color: var(--sp-accent); background: var(--sp-accent-soft); box-shadow: inset 0 0 0 1px var(--sp-accent); }
.sp-you { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }

.sp-games-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-count { margin: 0 0 14px; color: var(--sp-muted); font-size: .88rem; }
.sp-toolbar { display: grid; gap: 10px; margin-bottom: 16px; }
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-filter { border: 1px solid var(--sp-card-border); border-radius: 999px; background: var(--sp-card-bg); color: inherit; padding: 6px 14px; font-size: .84rem; cursor: pointer; }
.sp-filter.is-on { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }

.sp-games { display: grid; gap: 12px; }
.sp-game { border: 1px solid var(--sp-card-border); border-radius: 14px; padding: 14px; background: var(--sp-card-bg); }
.sp-game.sp-da { border-left: 4px solid var(--sp-good); }
.sp-game.sp-nestiut { border-left: 4px solid var(--sp-unknown); }
.sp-game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sp-game-head h3 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.sp-verdict { border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 650; }
.sp-da .sp-verdict { background: var(--sp-good-soft); color: var(--sp-good); }
.sp-nestiut .sp-verdict { background: var(--sp-unknown-soft); color: var(--sp-unknown); }

.sp-test { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 10px; }
.sp-test + .sp-test { border-top: 1px dashed var(--sp-card-border); margin-top: 10px; }
.sp-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.sp-video img { width: 100%; height: 100%; object-fit: cover; }
/* Play glyph as an inline SVG: Font Awesome here is the JavaScript build, which brings no font for ::after. */
button.sp-video::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(220, 38, 38, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 22px no-repeat; }
button.sp-video:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.sp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-test-info p { margin: 0 0 6px; }
.sp-test-rig span { color: var(--sp-muted); font-size: .82rem; }
.sp-facts { margin: 0 0 6px; padding-left: 18px; font-size: .86rem; line-height: 1.5; }
.sp-yt { font-size: .84rem; color: var(--sp-accent); text-decoration: none; }
.sp-yt:hover { text-decoration: underline; }

/* Steam games we never filmed — official requirements vs the visitor's card */
.sp-steam { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--sp-card-border); display: grid; gap: 12px; }
.sp-steam-title { margin: 0; font-size: 1rem; font-weight: 750; }
.sp-steam-title span { color: var(--sp-muted); font-weight: 500; font-size: .82rem; margin-left: 6px; }
.sp-steam-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sp-steam-item { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--sp-card-border); border-radius: 10px; background: var(--sp-card-bg); color: inherit; padding: 6px 10px 6px 6px; cursor: pointer; font-size: .88rem; }
.sp-steam-item:hover { border-color: var(--sp-accent); }
.sp-steam-item img { width: 72px; height: 27px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.sp-steam-close { border: 0; background: transparent; color: var(--sp-muted); font-size: 1rem; cursor: pointer; }
.sp-steam-top { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 14px; align-items: start; }
.sp-steam-top img { width: 100%; border-radius: 10px; }
.sp-steam-verdict { margin: 0 0 6px; font-weight: 700; }
.sp-nu { border-left: 4px solid #dc2626; }
.sp-nu .sp-steam-verdict { color: #dc2626; }
.sp-da .sp-steam-verdict { color: var(--sp-good); }
.sp-nestiut .sp-steam-verdict { color: var(--sp-unknown); }
.sp-reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.sp-req h4 { margin: 0 0 6px; font-size: .9rem; font-weight: 750; }
.sp-req h4 span { font-weight: 500; color: var(--sp-muted); font-size: .8rem; }
.sp-req ul { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.5; }
@media (max-width: 575.98px) { .sp-steam-top { grid-template-columns: minmax(0, 1fr); } }

/* AI rating — visibly an estimate, set apart from the filmed tests above it */
.sp-ai-key { margin-bottom: 14px; }
.sp-ai { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--sp-card-border); }
.sp-ai-btn { border: 1px solid var(--sp-accent); border-radius: 999px; background: transparent; color: var(--sp-accent); padding: 6px 14px; font-size: .84rem; font-weight: 650; cursor: pointer; }
.sp-ai-btn:hover:not(:disabled) { background: var(--sp-accent); color: #fff; }
.sp-ai-btn:disabled { opacity: .6; cursor: progress; }
.sp-ai-status { margin: 8px 0 0; font-size: .86rem; color: var(--sp-muted); }
.sp-ai-status.is-error { color: #dc2626; }
.sp-ai-done { background: var(--sp-accent-soft); border-radius: 12px; padding: 12px 14px; border-top: 0; }
.sp-ai-done .sp-ai-btn { margin-top: 8px; }
.sp-ai-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.sp-ai-nota { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.sp-ai-nota small { font-size: .62rem; font-weight: 600; opacity: .85; }
.sp-ai-nota.sp-bun { background: #16a34a; }
.sp-ai-nota.sp-mediu { background: #d97706; }
.sp-ai-nota.sp-slab { background: #dc2626; }
.sp-ai-verdict { margin: 0; font-weight: 700; }
.sp-ai-label { margin: 2px 0 0; font-size: .76rem; color: var(--sp-muted); }
.sp-ai-motiv { margin: 6px 0; font-size: .88rem; line-height: 1.55; }
.sp-ai-surse { margin: 4px 0 0; font-size: .8rem; color: var(--sp-muted); }
.sp-ai-surse a { color: var(--sp-accent); }

.sp-rigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sp-rig { border: 1px solid var(--sp-card-border); border-radius: 12px; padding: 14px; }
.sp-rig h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 750; }
.sp-rig p { margin: 0 0 4px; font-size: .88rem; }

.sp-note { border-radius: 12px; padding: 14px 16px; background: var(--sp-accent-soft); font-size: .88rem; line-height: 1.6; }

.sp-powered { margin: 18px 0 0; text-align: center; color: var(--sp-muted); font-size: .82rem; }
.sp-powered a { color: var(--sp-accent); }

@media (max-width: 575.98px) {
    .sp-hero h1 { font-size: 1.7rem; }
    .sp-card { padding: 16px; }
    .sp-test { grid-template-columns: minmax(0, 1fr); }
}
