/* ============================================
   PC GUIDE - GAMER PAGE STYLES
   ============================================ */

/* BASE STYLES ---------------------------------- */

#pc-guide {
  background-color: #f8f9fa;
}

#pc-guide .row > * {
  background-color: transparent;
}

/* Mobile */
@media (max-width: 767px) {
  body {
    background-color: #f8f9fa; /* Overwrite full ALTERNATE background on mobile */
  }
}

/* BACK LINK ---------------------------------- */

#pc-guide .back-link-wrap {
  padding: 15px 30px 0;
}

#pc-guide .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

#pc-guide .back-link:hover {
  color: #e3000c;
}

#pc-guide .back-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .back-link-wrap {
    padding: 15px 0 0;
  }
}

/* HERO ---------------------------------- */

.hero-banner {
  height: 300px;
  background: linear-gradient(to right, #f00028, #c5001d);
  position: relative;
  margin: 15px 30px 0;
  border-radius: 5px;
  overflow: hidden;
}

.hero-overlay {
  display: none; /* Disabled: image has transparent parts, overlay would show through */
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 30px;
}

.hero-left {
  color: white;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-left h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-left .subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.feature img {
  margin-right: 10px;
}

.feature span {
  font-size: 24px;
  font-weight: 500;
}

.hero-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40%;
  max-width: 100%;
  padding-right: 30px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-right img {
  max-height: 200px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.deco {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(255, 151, 175, 0.3);
  z-index: 1;
}

.deco-1 {
  right: 130px;
  top: 67px;
}

.deco-2 {
  right: 375px;
  bottom: 36px;
}

.deco-3 {
  right: 300px;
  top: 43px;
}

.deco-4 {
  right: 115px;
  top: 27px;
}

@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    min-height: 200px;
    margin: 15px 0 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 24px;
  }

  .hero-left .subtitle,
  .feature span {
    font-size: 16px;
  }

  .hero-right,
  .deco {
    display: none;
  }
}

/* LINEUP ---------------------------------- */

#pc-guide .lineup {
  padding: 30px 30px 0;
}

#pc-guide .lineup-slider-wrap {
  position: relative;
}

/* Lineup navigation arrows (same look as product carousel) */
#pc-guide .lineup-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e2e2e2;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#pc-guide .lineup-nav-prev {
  left: 10px;
}

#pc-guide .lineup-nav-next {
  right: 10px;
}

#pc-guide .lineup-nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

#pc-guide .lineup-nav-btn:hover:not(:disabled) {
  background: var(--active-color, #5ac5b4);
  border-color: var(--active-color, #5ac5b4);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#pc-guide .lineup-nav-btn:disabled {
  display: none;
}

#pc-guide .lineup .row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  margin: 0 -15px;
  padding-top: 10px;
}

#pc-guide .lineup .row::-webkit-scrollbar {
  display: none;
}

#pc-guide .lineup .row.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Prevent image dragging in lineup */
#pc-guide .lineup .row img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#pc-guide .lineup .row * {
  user-select: none;
}

#pc-guide .lineup .row > div {
  flex: 0 0 25%; /* 4 cards on desktop */
  padding: 0 15px;
}

@media (max-width: 1199.98px) {
  #pc-guide .lineup .row > div {
    flex: 0 0 30.77%; /* 3.25 cards */
  }
}

@media (max-width: 991.98px) {
  #pc-guide .lineup .row > div {
    flex: 0 0 44.44%; /* Shows 2.25 cards: 2 full + 0.25 peek */
  }
}

@media (max-width: 575.98px) {
  #pc-guide .lineup .row > div {
    flex: 0 0 80%; /* Shows 1.25 cards: 1 full + 0.25 peek */
  }
}

/* Lineup Cards */

#pc-guide .lineup-card {
  position: relative;
  background: transparent;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  height: 100%;
  display: grid;
  grid-template-rows:
    auto /* PC image */
    auto /* Title */
    auto /* Subtitle */
    minmax(60px, auto) /* Description - min 60px */
    auto /* CPU icon */
    minmax(48px, auto) /* CPU text - min 48px */
    auto /* GPU icon */
    minmax(48px, auto) /* GPU text - min 48px */
    auto /* Storage icon */
    minmax(48px, auto) /* Storage text - min 48px */
    auto; /* Status */
  align-items: start;
  gap: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* White background + border + shadow only in bottom 75% (top 25% has nothing) */
#pc-guide .lineup-card::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border: 1px solid #e2e2e2;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 0;
  transition: box-shadow 0.3s ease;
}

#pc-guide .lineup-card:hover {
  transform: translateY(-4px);
}

#pc-guide .lineup-card:hover::before {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#pc-guide .lineup-card.selected:hover::before {
  box-shadow:
    inset 0 0 0 5px var(--theme-color),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

#pc-guide .lineup-card > * {
  margin: 0;
  position: relative;
  z-index: 1;
}

#pc-guide .lineup-card > img {
  justify-self: center;
}

#pc-guide .lineup-card-image img {
  max-width: 175px;
  width: 100%;
  height: auto;
}

#pc-guide .lineup-card > img:first-child {
  margin-bottom: 20px;
}

#pc-guide .lineup-card > img:not(:first-child) {
  margin-top: 20px;
  margin-bottom: 8px;
}

#pc-guide .lineup-card-title {
  margin-bottom: 0;
  align-self: end;
}

#pc-guide .lineup-card-subtitle {
  font-weight: 600;
  color: #7c7c7c;
  padding-bottom: 15px;
}

/* Selected State */

#pc-guide .lineup-card.selected::before {
  box-shadow:
    inset 0 0 0 5px var(--theme-color),
    0 2px 10px rgba(0, 0, 0, 0.06);
}

#pc-guide .lineup-card.selected {
  position: relative;
}

#pc-guide .lineup-card.selected::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 1px;
  border-left: 60px solid var(--theme-color);
  border-top: 60px solid transparent;
  border-bottom-left-radius: 5px;
}

#pc-guide .lineup-card.selected .lineup-card-title,
#pc-guide .lineup-card.selected .lineup-card-status {
  color: var(--theme-color);
  font-weight: 700;
}

/* Theme Colors */

#pc-guide .lineup-card.theme-1 {
  --theme-color: #5ac5b4;
}
#pc-guide .lineup-card.theme-2 {
  --theme-color: #7a74f6;
}
#pc-guide .lineup-card.theme-3 {
  --theme-color: #e3000c;
}
#pc-guide .lineup-card.theme-4 {
  --theme-color: #001424;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .lineup {
    padding: 15px 0 0;
  }
}

/* NOTICE ---------------------------------- */

#pc-guide .notice {
  padding: 30px 30px 0;
}

#pc-guide .notice-banner {
  background: var(--active-color, #5ac5b4);
  color: white;
  border-radius: 5px;
  padding: 20px 100px;
  text-align: center;
}

#pc-guide .notice-banner p {
  margin: 0;
}

#pc-guide .notice-banner-highlight {
  font-weight: 600;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .notice {
    padding: 15px 0 0;
  }

  #pc-guide .notice-banner {
    padding: 15px 20px;
  }
}

/* DETAILS ---------------------------------- */

#pc-guide .details {
  padding: 30px 30px 0;
}

#pc-guide .details-card {
  display: none;
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
}

#pc-guide .details-card.active {
  display: flex;
}

#pc-guide .details-content {
  padding: 60px;
  margin: auto;
}

#pc-guide .details-title {
  color: var(--active-color, #5ac5b4);
}

#pc-guide .details-subtitle {
  font-weight: 600;
}

#pc-guide .details-text {
  margin-bottom: 0;
}

#pc-guide .details-image {
  position: relative;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

#pc-guide .details-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--active-color, #5ac5b4);
  clip-path: polygon(20% 0, calc(20% + 5px) 0, 30px 100%, 0 100%);
  z-index: 1;
}

#pc-guide .details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pc-guide .details-content .basic-button {
  display: inline-block;
  background-color: var(--active-color, #5ac5b4);
  color: white;
}

#pc-guide .details-content .basic-button:hover {
  background-color: var(--active-color, #5ac5b4);
  filter: brightness(0.9);
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .details {
    padding: 15px 0 0;
  }

  #pc-guide .details-content {
    padding: 20px; /* Reduce side padding on mobile */
    text-align: center; /* Center text on mobile */
  }

  #pc-guide .details-content .basic-button {
    width: 100%;
    text-align: center;
    padding: 12px 30px;
  }

  #pc-guide .details-image {
    clip-path: none;
    height: 100%;
  }

  #pc-guide .details-image::before {
    display: none;
  }

  #pc-guide .details-image img {
    object-fit: contain; /* Show full product image on mobile */
  }
}

/* PRODUCTS ---------------------------------- */

#pc-guide .products {
  padding: 30px 30px 0;
}

#pc-guide .products-container {
  display: none;
  position: relative;
}

#pc-guide .products-container.active {
  display: block;
}

/* Products Navigation Arrows */
#pc-guide .products-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e2e2e2;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#pc-guide .products-nav-prev {
  left: 10px;
}

#pc-guide .products-nav-next {
  right: 10px;
}

#pc-guide .products-nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

#pc-guide .products-nav-btn:hover:not(:disabled) {
  background: var(--active-color, #5ac5b4);
  border-color: var(--active-color, #5ac5b4);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#pc-guide .products-nav-btn:disabled {
  display: none;
}

#pc-guide .products-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  gap: 30px;
  padding-top: 10px;
}

#pc-guide .products-grid::-webkit-scrollbar {
  display: none;
}

#pc-guide .products-grid.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Prevent image dragging and text selection in products */
#pc-guide .products-grid img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#pc-guide .products-grid a {
  user-select: none;
  -webkit-user-drag: none;
}

#pc-guide .products-grid * {
  user-select: none;
}

#pc-guide .products-grid > * {
  flex: 0 0 calc(25% - 22.5px); /* Shows exactly 4 cards with 30px gaps */
  min-width: calc(25% - 22.5px);
  max-width: calc(25% - 22.5px);
  display: flex;
  flex-direction: column;
}

/* Product Cards */

#pc-guide .product-item {
  display: flex;
  height: 100%;
}

#pc-guide .product-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

#pc-guide .product-card {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  height: 100%;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: grid;
  grid-template-rows:
    auto /* Image */
    auto /* Brand */
    minmax(44px, auto) /* Title - min 2 lines */
    minmax(40px, auto) /* Addon */
    auto; /* Prices */
  align-items: start;
}

#pc-guide .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#pc-guide .product-image {
  padding: 30px 24px 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

#pc-guide .product-image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

#pc-guide .product-info {
  padding: 24px;
  display: contents;
}

#pc-guide .product-brand {
  font-size: 12px;
  font-weight: 600;
  color: #7c7c7c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0 24px;
}

#pc-guide .product-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding: 8px 24px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#pc-guide .product-addon {
  font-size: 14px;
  color: #7c7c7c;
  margin: 0;
  padding: 8px 24px 0;
}

#pc-guide .product-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: auto;
  padding: 12px 24px 24px;
  align-self: end;
}

#pc-guide .product-price-old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin: 0;
}

#pc-guide .product-price {
  font-size: 20px;
  font-weight: 700;
  color: #ad0109;
  margin: 0;
}

/* Tablet */
@media (max-width: 1199.98px) {
  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 60px) / 3.25); /* Shows 3.25 cards: 3 full + 0.25 peek */
    min-width: calc((100% - 60px) / 3.25);
    max-width: calc((100% - 60px) / 3.25);
  }
}

@media (max-width: 991.98px) {
  #pc-guide .products-grid {
    gap: 20px;
  }

  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 40px) / 2.25); /* Shows 2.25 cards: 2 full + 0.25 peek */
    min-width: calc((100% - 40px) / 2.25);
    max-width: calc((100% - 40px) / 2.25);
  }
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .products {
    padding: 15px 0 0;
  }
}

@media (max-width: 575.98px) {
  #pc-guide .products-grid {
    gap: 20px;
    padding: 10px 0;
  }

  #pc-guide .products-grid > * {
    flex: 0 0 calc((100% - 20px) / 1.25); /* Shows 1.25 cards: 1 full + 0.25 peek */
    min-width: calc((100% - 20px) / 1.25);
    max-width: calc((100% - 20px) / 1.25);
  }

  #pc-guide .product-image {
    padding: 24px 20px 16px;
    min-height: 180px;
  }

  #pc-guide .product-image img {
    max-height: 160px;
  }

  #pc-guide .product-info {
    padding: 20px;
  }

  #pc-guide .product-title {
    font-size: 15px;
    min-height: 40px;
  }
}

/* INFO PANEL ---------------------------------- */

#pc-guide .info-panel {
  padding: 30px 30px 0;
}

#pc-guide .info-panel-container {
  display: none;
}

#pc-guide .info-panel-container.active {
  display: block;
}

#pc-guide .info-panel-image {
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
}

#pc-guide .info-panel-image img {
  width: 100%;
  max-height: 400px;
  min-height: 100%;
  object-fit: cover;
}

#pc-guide .info-panel-content {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 30px;
  height: 100%;
}

#pc-guide .info-panel-item {
  position: relative;
}

#pc-guide .info-panel-item:not(:last-child) {
  margin-bottom: 15px;
}

#pc-guide .info-panel-question {
  background: transparent;
  border: 1px solid #e2e2e2;
  border-left: 3px solid var(--active-color, #5ac5b4);
  border-radius: 0 5px 5px 0;
  padding: 15px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

#pc-guide .info-panel-question:hover {
  color: var(--active-color, #5ac5b4);

  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#pc-guide .info-panel-item.active .info-panel-question {
  color: var(--active-color, #5ac5b4);
}

#pc-guide .info-panel-question::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../download/b2c_be_nl/pic/pcguide/shared/arrow.svg") center /
    contain no-repeat;
  transition: transform 0.3s ease;
  padding-right: 10px;
}

#pc-guide .info-panel-item.active .info-panel-question::after {
  transform: rotate(180deg);
}

#pc-guide .info-panel-answer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 8px;
  background: white;
  border-radius: 0 5px 5px 0;
  padding: 20px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

#pc-guide .info-panel-item.active .info-panel-answer {
  display: block;
  animation: fadeInAnswer 0.3s ease;
}

@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pc-guide .info-panel p {
  margin: 0;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .info-panel {
    padding: 15px 0 0;
  }

  #pc-guide .info-panel-content {
    padding: 20px;
    color: #000 !important;
  }

  #pc-guide .info-panel-question {
    padding: 12px;
    font-size: 15px;
    color: #000 !important;
  }

  #pc-guide .info-panel-answer {
    padding: 12px;
    font-size: 14px;
    color: #000 !important;
  }

  #pc-guide .info-panel p {
    color: #000 !important;
  }
}

/* PCB BANNER ---------------------------------- */

#pc-guide .pcb-banner {
  padding: 15px 30px 15px; /* TEMP bottom: remove when adding MEEST POPULAIRE SYSTEMEN */
}

#pc-guide .pcb-banner .pcb-desktop {
  display: block;
}

#pc-guide .pcb-banner .pcb-mobile {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  #pc-guide .pcb-banner {
    padding: 15px 0 15px;
  }

  #pc-guide .pcb-banner .pcb-desktop {
    display: none;
  }

  #pc-guide .pcb-banner .pcb-mobile {
    display: block;
  }
}

/* GENERAL ---------------------------------- */

#pc-guide .basic-button {
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  padding: 5px 30px;
  background-color: #e3000c;
  color: white;
}

#pc-guide .basic-button:hover {
  transition: 0.25s ease;
  transform: translateY(-2px);
  background-color: #b90009;
}

/* Text sizes */

#pc-guide h3 {
  font-size: 16px;
  font-weight: 600;
}
