/**
 * Linear theme UI — replaces glass / shine / holographic / 3D tilt patterns.
 * Game carousel structure kept; visuals flattened to match theme/ homepage.
 */

/* ---- Global: kill legacy shine lines ---- */
.card-shine,
.hero-card-shine,
.intro-card-shine,
.product-card-shine,
.features-card-shine,
.perk-card-shine,
.support-card-shine,
.faq-card-shine,
.cta-card-shine,
.static-page-card-shine,
.footer-card-shine,
.header-shine {
  display: none !important;
}

/* ---- Shared surface (Linear panel) ---- */
.ln-surface {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---- Section cards ---- */
.intro-card,
.features-card,
.support-card-wrap,
.faq-card,
.cta-card {
  padding: var(--space-2xl);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color var(--speed-regular) var(--ease-out-quad);
}
.intro-card:hover,
.features-card:hover,
.support-card-wrap:hover,
.faq-card:hover,
.cta-card:hover {
  transform: none;
  border-color: var(--color-border-highlight);
  box-shadow: none;
}

.section {
  padding: var(--space-4xl) var(--page-padding-x);
}
.section-title {
  font-size: var(--title-section-size);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.section-label {
  font-size: var(--text-mini-size);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
}
.section-desc,
.intro-text {
  font-size: var(--text-regular-size);
  color: var(--color-text-secondary);
  line-height: var(--text-regular-line);
}

/* ---- Product cards: flat, no tilt/glare ---- */
.product-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transform: none !important;
  will-change: auto;
  transition: border-color var(--speed-regular) var(--ease-out-quad),
    background var(--speed-regular) var(--ease-out-quad);
}
.product-card:hover {
  border-color: var(--color-border-highlight);
  background: var(--color-bg-tertiary);
  box-shadow: none;
  transform: none !important;
}
.product-card--featured {
  border-color: var(--brand-blue-a42);
  box-shadow: none;
}
.product-card--featured::before,
.product-card--featured .product-card-shine {
  display: none !important;
}
.product-card--featured:hover {
  border-color: var(--color-accent);
  box-shadow: none;
}
.glare-container,
.glare {
  display: none !important;
}
.product-card .card-content {
  transform: none;
}

/* ---- Feature pills ---- */
.feature-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-rounded);
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--speed-quick) var(--ease-out-quad),
    border-color var(--speed-quick) var(--ease-out-quad),
    background var(--speed-quick) var(--ease-out-quad);
}
.feature-item:hover {
  transform: none;
  color: var(--color-text-primary);
  border-color: var(--color-border-highlight);
  background: var(--color-bg-tertiary);
}

/* ---- Perk cards ---- */
.perk-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  transition: border-color var(--speed-regular) var(--ease-out-quad);
}
.perk-card:hover {
  transform: none;
  border-color: var(--color-border-highlight);
  box-shadow: none;
}
.perk-title {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}
.perk-text {
  color: var(--color-text-secondary);
}

/* ---- Support cards ---- */
.support-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
}
.support-card:hover {
  transform: none;
  border-color: var(--color-border-highlight);
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom-color: var(--color-border-translucent);
}
.faq-item:hover {
  padding-left: 0;
  opacity: 1;
}
.faq-q {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}
.faq-a {
  color: var(--color-text-secondary);
}

/* ---- Game carousel cards (keep 3D positions, Linear flat card look) ---- */
.game-card {
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color var(--speed-regular) var(--ease-out-quad),
    box-shadow var(--speed-regular) var(--ease-out-quad);
}
.game-card:hover {
  border-color: var(--color-border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.game-card-outer--center .game-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.game-card-glare-wrap,
.game-card-glare {
  display: none !important;
}

/* ---- Price options (Linear list rows) ---- */
.price-option {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-md);
  min-height: 2.75rem;
  transition: border-color var(--speed-regular) var(--ease-out-quad),
    background var(--speed-regular) var(--ease-out-quad);
}
.game-select-prices .price-option {
  min-height: 3.75rem;
}
.price-option:hover {
  border-color: var(--color-border-highlight);
  background: var(--color-bg-tertiary);
}
.price-option--featured {
  background: var(--color-bg-secondary);
  border: 1px solid var(--brand-blue);
  box-shadow: none;
  transform-origin: center center;
  transition: transform var(--speed-regular) var(--ease-out-quad),
    border-color var(--speed-regular) var(--ease-out-quad),
    background var(--speed-regular) var(--ease-out-quad);
}
.price-option--featured::before {
  display: none !important;
}
.price-option--featured:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--brand-blue);
  transform: scale(1.05);
}
.game-select-prices .price-option:not(.price-option--featured):hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-highlight);
}
.price-option-badge {
  position: absolute;
  top: -0.45rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.price-option-ram,
.price-option-storage {
  font-size: var(--text-small-size);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}
.price-option-label {
  color: var(--color-text-tertiary);
}
.price-option-value {
  color: var(--color-text-primary);
}
.price-option-price {
  font-size: var(--text-regular-size);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* ---- Game pills marquee ---- */
.game-pills-wrap {
  border: none;
  background: transparent;
}
.game-pills-img {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}
.game-pills-fade {
  background: linear-gradient(90deg, var(--brand-bg) 0%, transparent 100%);
}
.game-pills-fade--right {
  background: linear-gradient(270deg, var(--brand-bg) 0%, transparent 100%);
}

/* ---- Configure page (game.html) ---- */
body.page-configure .configure-panel,
body.page-configure .configure-card,
body.page-configure .configure-region-card,
body.page-configure .configure-option-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
}
body.page-configure .configure-region-card:hover,
body.page-configure .configure-option-card:hover {
  border-color: var(--color-border-highlight);
  transform: none;
  box-shadow: none;
}
body.page-configure .configure-split-game-slot .game-card-glare-wrap {
  display: none !important;
}

/* ---- Panel / static content blocks on game.html ---- */
.panel-card,
.game-detail-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
}

/* ---- Animations: Linear easing only ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-card {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.header {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.05s forwards;
}

/* Select-game view: no bobbing float (Linear static panels) */
.carousel-wrap--select-mode .game-select-view .game-select-card-inner {
  animation: game-select-card-in 0.55s var(--ease-out-expo) 0.08s forwards !important;
}
.game-select-card .game-card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translate(var(--float-x), var(--float-y)) !important;
}
.game-select-actions .btn {
  flex: 1;
}

.nav-dropdown:not(.is-open) .nav-dropdown-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.nav-dropdown.is-open #dropdown-game {
  display: grid;
}

/* Nav dropdown: Linear menu panel */
.nav-dropdown-menu {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-translucent);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
}
.nav-dropdown-menu a {
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-small-size);
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
}

/* Game detail / configure typography */
.game-detail-title,
.configure-title {
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.game-detail-back,
.configure-back {
  color: var(--color-text-tertiary);
  font-size: var(--text-small-size);
}
.game-detail-back:hover,
.configure-back:hover {
  color: var(--color-text-primary);
}

/* ---- Header: floating dock pill (restore pre–full-width bar) ---- */
.header {
  padding: var(--space-xs) var(--page-padding-x) !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
}
.header.is-dock,
.header.is-scrolled {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}
.header.is-dock .nav,
.header.is-scrolled .nav {
  background: rgba(19, 19, 19, 0.88) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-2xl) !important;
  box-shadow: var(--shadow-medium) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

@media (max-width: 48rem) {
  .header {
    padding-inline: 0.5rem !important;
  }
}

@media (max-width: 30rem) {
  .header {
    padding-inline: 0.35rem !important;
  }
}

/* ============================================
   Games / configure page (game.html)
   ============================================ */
body.page-configure .configure-section {
  padding: calc(var(--header-height, 4rem) + var(--space-lg)) var(--page-padding-x) var(--space-2xl);
  overflow: visible;
}

body.page-configure .configure-section > .container {
  max-width: var(--container);
}

/* Games grid toolbar */
body.page-configure .configure-games-search-wrap,
body.page-configure .configure-games-platform-filter {
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-rounded) !important;
  box-shadow: none !important;
  min-height: 2.5rem;
}
body.page-configure .configure-games-search-wrap:focus-within,
body.page-configure .configure-games-platform-filter:focus-within {
  border-color: var(--color-border-highlight) !important;
  outline: none !important;
  box-shadow: none !important;
}
body.page-configure .configure-games-search-wrap input {
  color: var(--color-text-primary);
}
body.page-configure .configure-games-search-wrap input::placeholder {
  color: var(--color-text-quaternary);
}
body.page-configure .configure-plat-filter-slider {
  background: var(--color-bg-tertiary) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-xl) !important;
}
body.page-configure .configure-plat-filter-btn {
  color: var(--color-text-tertiary);
}
body.page-configure .configure-plat-filter-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--color-text-secondary);
  border-radius: var(--radius-xl) !important;
}
body.page-configure .configure-plat-filter-btn.is-active {
  color: var(--color-text-primary) !important;
}

/* Game tiles */
.configure-games-grid {
  gap: 1.25rem;
}
.configure-game-tile-inner {
  border-radius: var(--radius-lg);
  transition: transform var(--speed-regular) var(--ease-out-expo),
    opacity var(--speed-regular) var(--ease-out-quad);
}
.configure-game-tile:hover .configure-game-tile-inner {
  opacity: 1;
}
.configure-game-tile:hover .configure-game-img {
  transform: scale(1.01);
  border-color: var(--color-border-highlight);
}
.configure-game-img {
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-lg);
  transition: transform var(--speed-regular) var(--ease-out-expo),
    border-color var(--speed-regular) var(--ease-out-quad);
}
.configure-game-tile--active .configure-game-img,
.configure-game-tile:focus-visible .configure-game-img {
  border-color: var(--color-border-highlight);
  box-shadow: none;
}
.configure-games-empty {
  color: var(--color-text-tertiary);
}

/* Wizard copy */
.wizard-pane-title {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}
.wizard-pane-lead,
.wizard-text-link {
  color: var(--color-text-tertiary);
}
.wizard-text-link:hover {
  color: var(--color-accent);
}
.configure-step-heading,
.configure-selected-title {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}
.configure-selected-label {
  color: var(--color-text-tertiary);
}

/* Location / option cards */
body.page-configure .configure-location-card {
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-lg) !important;
}
body.page-configure .configure-location:hover .configure-location-card,
body.page-configure .configure-location input:checked + .configure-location-card {
  background: var(--color-bg-tertiary) !important;
  border-color: var(--color-border-highlight) !important;
}
body.page-configure .configure-location input:checked + .configure-location-card {
  border-color: var(--brand-blue-a42) !important;
  box-shadow: 0 0 0 1px var(--brand-blue-faded) !important;
}
.configure-location-name {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}
.configure-location-sub {
  color: var(--color-text-tertiary);
}

/* Split layout game preview card */
body.page-configure .configure-split-game-slot .game-card {
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  transform: none !important;
  animation: none !important;
}
body.page-configure .configure-split-game-wrap:hover .configure-split-game-slot .game-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}
#pane-setup .configure-split-game-slot .game-card {
  animation: none !important;
}

/* RAM / storage / price blocks */
.configure-ram-value,
.configure-price-amount {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.configure-price-indicator {
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--radius-lg) !important;
}
.configure-price-label {
  color: var(--color-text-tertiary);
}
.configure-info-tip::after {
  background: var(--color-bg-secondary) !important;
  border-color: var(--color-border-translucent) !important;
  border-radius: var(--radius-md) !important;
}

/* Buttons on configure flow */
body.page-configure .btn.game-select-back {
  background: var(--color-bg-primary) !important;
  border: 1px solid var(--color-border-translucent) !important;
  border-radius: var(--button-radius) !important;
  color: var(--color-text-primary) !important;
  box-shadow: none !important;
}
body.page-configure .btn.game-select-back:hover {
  background: var(--color-bg-quaternary) !important;
  border-color: var(--color-border-highlight) !important;
  box-shadow: none !important;
}
body.page-configure .configure-cta,
body.page-configure .configure-region-back.btn-primary {
  border-radius: var(--button-radius);
}

/* Platform pills under tiles */
.configure-plat-pill--yes {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-translucent);
  color: var(--color-text-secondary);
}
.configure-plat-pill--no {
  background: transparent;
  border: 1px solid var(--color-border-translucent);
  color: var(--color-text-quaternary);
}

/* ---- Homepage sections: align with Linear typography ---- */
.home-sections .section-label,
#home-features .section-label,
#home-reasons .section-label,
#home-stats .section-label,
#home-discord .section-label {
  margin-bottom: var(--space-xs);
}

.home-section-title.section-title {
  margin: 0 0 var(--space-sm);
  font-size: var(--title-section-size);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.home-section-head--center .section-label {
  text-align: center;
}

/* Hero update banner — split dark / light pill (loads after components.css) */
.update-banner--hero {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
  padding: 0.3rem 0.3rem 0.3rem 0.7rem;
  background: var(--brand-gray-dark);
  border: 1px solid var(--color-border-translucent);
  border-radius: var(--radius-rounded);
  overflow: visible;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-quad);
  transform-origin: center center;
}
.update-banner--hero:hover {
  transform: scale(1.04);
  background: var(--brand-gray-dark);
  border-color: var(--color-border-translucent);
}
.update-banner--hero .update-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.25rem 0.15rem 0.35rem;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: var(--text-mini-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}
.update-banner--hero .update-banner-body {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--brand-gray-light);
  border: none;
  border-radius: var(--radius-rounded);
}
.update-banner--hero .update-text {
  font-size: var(--text-small-size);
  color: var(--color-text-secondary);
}
.update-banner--hero .update-link {
  font-size: var(--text-small-size);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.update-banner--hero:hover .update-link {
  color: var(--color-accent);
}
@media (prefers-reduced-motion: reduce) {
  .update-banner--hero,
  .update-banner--hero:hover {
    transform: none;
  }
}

@media (max-width: 48rem) {
  .page-home .btn-hero-cta {
    transform: translateY(0.35rem);
    margin-top: var(--space-sm);
  }

  .page-home .btn-hero-cta:hover:not(:disabled) {
    transform: translateY(0.35rem) scale(0.98);
  }

  .page-home .btn-hero-cta:active:not(:disabled) {
    transform: translateY(0.35rem) scale(0.96);
  }
}

@media (max-width: 48rem) and (prefers-reduced-motion: reduce) {
  .page-home .btn-hero-cta:hover:not(:disabled),
  .page-home .btn-hero-cta:active:not(:disabled) {
    transform: translateY(0.35rem);
  }
}
