/* ============================================================
   TeknikScout — gpu-page.css
   GPU detail page styles: hero layout + GPU graphic + market buttons
   Loaded alongside ts-styles.css on all rtx-XXXX.html pages
   ============================================================ */

/* ══════════════════════════════════════
   HERO — single column default
   Two-column only at 1280px+ where ts-main
   is wide enough to hold the 420px GPU column
══════════════════════════════════════ */

/* Default: single column — safe on all screen sizes */
.ts-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  overflow: hidden;
}

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

/* ts-hero-label is a <span> — needs display:block for margin-bottom to work */
.gpu-hero-text .ts-hero-label {
  display: block;
}

.gpu-hero-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 24px;
}

.gpu-hero-wrap > .gpu-wrap {
  transform: scale(0.80);
  transform-origin: center center;
}

/* Two-column layout — only when viewport is wide enough
   At 1280px: ts-main ≈ 780px → ts-hero inner ≈ 692px → text column ≈ 232px
   At 1366px: text column ≈ 318px — comfortable
   At 1440px: text column ≈ 392px — good */
@media (min-width: 1280px) {
  .ts-hero {
    grid-template-columns: 1fr 420px;
    gap: 40px;
  }
  .gpu-hero-wrap {
    margin-top: 0;
  }
  .gpu-hero-wrap > .gpu-wrap {
    transform: scale(0.95);
  }
}

/* Mobile — tighter scale on small screens */
@media (max-width: 600px) {
  .gpu-hero-wrap > .gpu-wrap {
    transform: scale(0.66);
  }
}

/* ══════════════════════════════════════
   GPU CARD — full size
══════════════════════════════════════ */
.gpu-wrap {
  position: relative;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.7)) drop-shadow(0 0 14px rgba(0,200,232,0.04));
}

.gpu {
  position: relative; width: 420px; height: 172px; border-radius: 8px;
  background: linear-gradient(180deg, #1c2a40 0%, #131d2e 12%, #0d1726 45%, #0a1320 80%, #07101b 100%);
  border-top: 1px solid rgba(255,255,255,0.09);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(0,0,0,0.45);
  border-bottom: 2px solid rgba(0,0,0,0.75);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 4px 12px rgba(0,0,0,0.45),
    inset 0 -4px 8px rgba(0,0,0,0.35);
  overflow: hidden;
}
.gpu::before {
  content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 10%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.05) 70%, transparent 100%);
}
.gpu::after {
  content: ''; position: absolute; bottom: 28px; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 10%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.03) 70%, transparent 100%);
}

.bevel-top {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 20%, rgba(0,200,232,0.1) 50%, rgba(255,255,255,0.04) 80%, transparent);
}

.bracket {
  position: absolute; left: -5px; top: 14px; bottom: 14px; width: 8px; z-index: 6;
  background: linear-gradient(180deg, #1c2e3e 0%, #0e1e2c 40%, #0a1620 60%, #1c2e3e 100%);
  border-radius: 4px 0 0 4px;
  border-top: 1px solid rgba(255,255,255,0.09);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: inset -1px 0 3px rgba(0,0,0,0.5);
}
.bracket::before { content: ''; position: absolute; left: 2px; right: 2px; top: 8px; height: 1px; background: rgba(0,200,232,0.18); border-radius: 1px; }
.bracket::after  { content: ''; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 1px; background: rgba(0,200,232,0.18); border-radius: 1px; }

.connectors {
  position: absolute; bottom: -6px; left: 28px; right: 90px; height: 6px; z-index: 6;
  background: repeating-linear-gradient(90deg, #162030 0, #162030 6px, #0a1520 6px, #0a1520 9px);
  border-radius: 0 0 2px 2px;
}

.power {
  position: absolute; top: -7px; right: 105px; z-index: 6; width: 36px; height: 10px;
  background: linear-gradient(180deg, #1c2e3e, #0e1e2c);
  border: 1px solid rgba(0,200,232,0.14); border-bottom: none;
  border-radius: 3px 3px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
}
.ppin { width: 4px; height: 6px; background: rgba(0,200,232,0.28); border-radius: 1px; }

/* ── FANS ── */
.fans-area {
  position: absolute; left: 10px; top: 8px; bottom: 8px; width: 300px;
  display: flex; align-items: center; justify-content: center; gap: 4px; z-index: 3;
}

.fan { position: relative; width: 110px; height: 110px; flex-shrink: 0; }

/* Soft cyan glow only — no rainbow */
.fan-glow {
  position: absolute; inset: -2px; border-radius: 50%; z-index: 0;
  filter: blur(12px);
  opacity: 0.35;
  animation: fan-ring-pulse 11s ease-in-out infinite;
}
.fan:nth-child(1) .fan-glow { animation-delay: 0s; }
.fan:nth-child(2) .fan-glow { animation-delay: -3.7s; }
.fan:nth-child(3) .fan-glow { animation-delay: -7.4s; }

@keyframes fan-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,200,232,0.6), 0 0 16px rgba(0,200,232,0.3); }
  50%       { box-shadow: 0 0 0 2px rgba(0,200,232,0.2), 0 0 8px rgba(0,200,232,0.1); }
}

.fan-body {
  position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #18253a, #05101a);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.85);
}
.fan-body::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03); z-index: 1; pointer-events: none;
}
.fan-body::after {
  content: ''; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,   rgba(130,185,255,0.08) 45deg,  transparent 90deg,
    transparent 90deg,  rgba(130,185,255,0.08) 135deg, transparent 180deg,
    transparent 180deg, rgba(130,185,255,0.08) 225deg, transparent 270deg,
    transparent 270deg, rgba(130,185,255,0.08) 315deg, transparent 360deg
  );
  animation: spin 9s linear infinite;
}
.fan:nth-child(2) .fan-body::after { animation: spin-rev 11s linear infinite; }
.fan:nth-child(3) .fan-body::after { animation: spin 8s linear infinite; }

@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

.fan-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #1e2e42, #040c18);
  border: 1.5px solid rgba(255,255,255,0.09);
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.fan-hub::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,200,232,0.28);
}

/* ── END CAP ── */
.end-cap {
  position: absolute; right: 0; top: 0; bottom: 0; width: 108px; z-index: 2;
  background: linear-gradient(180deg, #141d2c 0%, #0d1724 30%, #0a1220 70%, #07101b 100%);
  border-left: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 1px 0 4px rgba(0,0,0,0.4);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.end-cap::before {
  content: ''; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent);
}
.end-cap::after {
  content: ''; position: absolute; left: 26px; top: 0; bottom: 0; width: 1px;
  background: rgba(0,0,0,0.28);
}
.end-fins {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 8px, rgba(255,255,255,0.01) 8px, rgba(255,255,255,0.01) 9px);
}
.end-label { position: relative; z-index: 2; text-align: center; padding: 0 12px; }
.end-label .brand { font-size: 9px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: rgba(0,200,232,0.35); display: block; margin-bottom: 4px; }
.end-label .model { font-size: 32px; font-weight: 900; line-height: 0.86; letter-spacing: -1px; text-transform: uppercase; color: #dde4f0; text-shadow: none; display: block; }
.end-label .vram  { display: inline-block; margin-top: 6px; background: rgba(0,200,232,0.06); border: 1px solid rgba(0,200,232,0.16); border-radius: 4px; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: 2px; color: rgba(0,200,232,0.7); }

/* ── BOTTOM ACCENT — soft cyan, no rainbow ── */
.rgb-strip {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 5;
  opacity: 0.35;
  background: linear-gradient(90deg, #00BFFF, #00c8e8, #00BFFF);
}

.glow-under {
  position: absolute; bottom: -18px; left: 15%; right: 15%; height: 18px;
  background: radial-gradient(ellipse, rgba(0,200,232,0.06) 0%, transparent 70%);
  filter: blur(6px); pointer-events: none;
}

/* ══════════════════════════════════════
   MINI GPU — retained for future use
══════════════════════════════════════ */
.card-gpu-wrap { display: flex; justify-content: center; background: #0a0e17; border-radius: 10px; overflow: hidden; padding: 6px 0; margin-bottom: 14px; }
.card-gpu-wrap > .mini-wrap { transform: scale(0.65); transform-origin: center center; }
.mini-wrap { position: relative; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.8)); }
.gpu-mini { position: relative; width: 290px; height: 110px; border-radius: 6px; background: linear-gradient(180deg, #1c2a40 0%, #0d1726 45%, #07101b 100%); border-top: 1px solid rgba(255,255,255,0.08); border-left: 1px solid rgba(255,255,255,0.04); border-bottom: 2px solid rgba(0,0,0,0.65); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 3px 8px rgba(0,0,0,0.4); overflow: hidden; }
.gpu-mini::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.05) 70%, transparent); }
.mini-fans-area { position: absolute; left: 6px; top: 5px; bottom: 5px; width: 196px; display: flex; align-items: center; justify-content: center; gap: 3px; z-index: 3; }
.mfan { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.mfan-glow { position: absolute; inset: -2px; border-radius: 50%; z-index: 0; filter: blur(8px); opacity: 0.3; animation: fan-ring-pulse 11s ease-in-out infinite; }
.mfan:nth-child(1) .mfan-glow { animation-delay: 0s; }
.mfan:nth-child(2) .mfan-glow { animation-delay: -3.7s; }
.mfan:nth-child(3) .mfan-glow { animation-delay: -7.4s; }
.mfan-body { position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #18253a, #05101a); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 14px rgba(0,0,0,0.85); }
.mfan-body::after { content: ''; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(from 0deg, transparent 0deg, rgba(130,185,255,0.08) 45deg, transparent 90deg, transparent 90deg, rgba(130,185,255,0.08) 135deg, transparent 180deg, transparent 180deg, rgba(130,185,255,0.08) 225deg, transparent 270deg, transparent 270deg, rgba(130,185,255,0.08) 315deg, transparent 360deg); animation: spin 9s linear infinite; }
.mfan:nth-child(2) .mfan-body::after { animation: spin-rev 11s linear infinite; }
.mfan:nth-child(3) .mfan-body::after { animation: spin 8s linear infinite; }
.mhub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 50%; z-index: 4; background: radial-gradient(circle at 35% 30%, #1e2e42, #040c18); border: 1px solid rgba(255,255,255,0.08); }
.mhub::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 4px; height: 4px; border-radius: 50%; background: rgba(0,200,232,0.28); }
.mini-end { position: absolute; right: 0; top: 0; bottom: 0; width: 88px; z-index: 2; background: linear-gradient(180deg, #141d2c, #07101b); border-left: 1px solid rgba(255,255,255,0.04); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mini-end::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0, transparent 6px, rgba(255,255,255,0.01) 6px, rgba(255,255,255,0.01) 7px); }
.mini-end-label { position: relative; z-index: 2; text-align: center; padding: 0 8px; }
.mini-end-label .brand { font-size: 8px; font-weight: 700; letter-spacing: 3px; color: rgba(0,200,232,0.35); display: block; margin-bottom: 2px; }
.mini-end-label .model { font-size: 20px; font-weight: 900; line-height: 0.88; color: #dde4f0; display: block; }
.mini-end-label .vram  { font-size: 8px; font-weight: 700; letter-spacing: 2px; color: rgba(0,200,232,0.7); display: block; margin-top: 3px; }
.mini-rgb { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 5; opacity: 0.3; background: linear-gradient(90deg, #00BFFF, #00c8e8, #00BFFF); }
.mini-connectors { position: absolute; bottom: -5px; left: 20px; right: 90px; height: 5px; z-index: 6; background: repeating-linear-gradient(90deg, #162030 0, #162030 5px, #0a1520 5px, #0a1520 8px); border-radius: 0 0 2px 2px; }
.mini-bracket { position: absolute; left: -4px; top: 12px; bottom: 12px; width: 5px; z-index: 6; background: linear-gradient(180deg, #1c2e3e, #0a1620); border-radius: 3px 0 0 3px; border: 1px solid rgba(255,255,255,0.06); border-right: none; }

/* ══════════════════════════════════════
   MARKET BUTTONS
══════════════════════════════════════ */
.mkt-btns { display: flex; gap: 8px; margin-top: 16px; }
.mkt-btn {
  flex: 1; padding: 12px 8px; border-radius: 9px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; text-align: center; text-decoration: none;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 4px; white-space: nowrap; transition: opacity 0.15s, transform 0.15s;
}
.mkt-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.mkt-btn:active { transform: scale(0.97); }
.mkt-blocket { background: #e8002d; color: #fff; }
.mkt-tradera { background: #ffb700; color: #000; }
.mkt-swec    { background: #1a6fbf; color: #fff; }
.mkt-arr     { font-size: 12px; opacity: 0.8; }
@media (max-width: 600px) { .mkt-btn { font-size: 12px; padding: 11px 6px; } }

/* ══════════════════════════════════════
   New retail marketplace buttons
══════════════════════════════════════ */
.mkt-inet      { background: #0077cc; color: #fff; }
.mkt-webhallen { background: #e07000; color: #fff; }
.mkt-komplett  { background: #003087; color: #fff; }
.mkt-shark     { background: #cc0000; color: #fff; }

/* New retail price card - more prominent */
.ts-price-card.ts-price-new {
  border-color: rgba(0,200,232,0.35);
  background: rgba(0,200,232,0.06);
}
.ts-price-card.ts-price-new .amount { color: var(--cyan); }

/* Buy CTA strip */
.ts-buy-strip {
  background: rgba(0,200,232,0.05);
  border: 1px solid rgba(0,200,232,0.15);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.ts-buy-strip-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.ts-buy-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-buy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.ts-buy-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ts-buy-btn-price {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 400;
}

/* Premium buy button enhancements */
.ts-buy-btn {
  position: relative;
  overflow: hidden;
}
.ts-buy-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.4s;
}
.ts-buy-btn:hover::after {
  left: 100%;
}
.ts-buy-btn.mkt-inet {
  background: linear-gradient(135deg, #0077cc, #0099ff);
  box-shadow: 0 2px 8px rgba(0,119,204,0.25);
}
.ts-buy-btn.mkt-webhallen {
  background: linear-gradient(135deg, #e07000, #ff8c00);
  box-shadow: 0 2px 8px rgba(224,112,0,0.25);
}
.ts-buy-btn.mkt-komplett {
  background: linear-gradient(135deg, #003087, #004db3);
  box-shadow: 0 2px 8px rgba(0,48,135,0.25);
}

/* ══════════════════════════════════════
   RETAILER COMPARISON ROWS (v2)
══════════════════════════════════════ */
.retailer-list { display:flex; flex-direction:column; }
.retailer-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.04);
  transition:background 0.15s; text-decoration:none; color:inherit; gap:12px;
}
.retailer-row:last-child { border-bottom:none; }
.retailer-row:hover { background:rgba(255,255,255,0.03); }
.retailer-left { display:flex; align-items:center; gap:12px; flex:1; }
.retailer-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.retailer-name { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:15px; }
.retailer-tag {
  font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding:2px 7px; border-radius:4px; flex-shrink:0;
  background:rgba(0,200,232,0.1); color:var(--cyan); border:1px solid rgba(0,200,232,0.2);
}
.retailer-tag-low {
  font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding:2px 7px; border-radius:4px; flex-shrink:0;
  background:rgba(52,211,153,0.1); color:#34d399; border:1px solid rgba(52,211,153,0.2);
}
.retailer-price {
  font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:15px;
  color:var(--white); text-align:right; white-space:nowrap; min-width:90px;
}
.retailer-price .from { font-size:11px; font-weight:400; color:var(--grey); }
.retailer-cta {
  font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:12px;
  letter-spacing:0.5px; text-transform:uppercase; color:var(--cyan); white-space:nowrap;
}
.retailer-row.begagnat { opacity:0.6; }
.retailer-row.begagnat:hover { opacity:0.85; }
.retailer-row.begagnat .retailer-cta { color:var(--grey); }
.retailer-row.is-lowest { background:rgba(0,200,232,0.04); border-left:3px solid var(--cyan); }
.retailer-row.is-lowest .retailer-price { color:var(--cyan); }
@media(max-width:480px) {
  .retailer-row { padding:12px 10px; gap:8px; }
  .retailer-price { min-width:auto; font-size:13px; }
  .retailer-tag, .retailer-tag-low { display:none; }
}

/* === MOBILE FIXES — May 7 2026 === */
/* Price panel: keep price and kr on one line */
.ts-price-card .amount {
  white-space: nowrap;
}
/* Sidebar price */
.ts-side-price {
  white-space: nowrap;
}
/* Comparison table scroll wrapper */
@media (max-width: 768px) {
  .ts-spec-table, .ts-comp-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
