/* === Game Detail Layout === */
.game-detail {
  max-width: var(--width-max-content);
  margin: 0 auto;
  padding: var(--space-lg);
}

.row {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.row > section {
  flex: 1 1 50%;
  min-width: 300px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  height: 300px;
  box-shadow: var(--shadow-md);
}

h1, h2, h3 {
  margin-bottom: var(--space-lg);
}

.game-description {
  max-height: 350px;
  overflow-y: auto;
}

/* === Flip Panel === */
.flip-panel {
  perspective: 1200px;
  position: relative;
  overflow: hidden;
}

.switch-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}


.flip-panel:hover .switch-container {
  transform: rotateY(180deg);
}

.switch-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--color-panel-overlay);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-sizing: border-box;
  max-height: 350px;
  overflow-y: auto;
}

.original-face {
  transform: rotateY(180deg);
}

/* === Game Logo === */
 .game-logo {
  display: flex;
  justify-content: center;   
  align-items: flex-end;      
  width: 100%;
  height: auto;
  margin-bottom: var(--space-md);
}

.game-logo img {
  max-height: 100px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}


/* === Tags === */
.tag-list, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.tag {
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s;
}

/* .tag:hover {
  background-color: var(--color-accent);
  color: #000;
  cursor: default;
} */

/* === Media Content === */
.game-media {
  width: 100%;
  padding: var(--space-lg);
  background: var(--color-panel-overlay);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.media-box {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-sizing: border-box;
}
.row > .game-media {
  height: 320px;
}
.media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-black);
  border-radius: var(--radius-md);
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.media-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
}

.media-wrapper:hover .media-overlay {
  opacity: 1;
}

.media-button {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.media-button img {
  width: 32px;
  height: 32px;
  background-color: transparent;
}



/* === Subscription Hint === */
.subscription-hint {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.subscription-hint a {
  color: var(--color-accent);
  text-decoration: underline;
}



.btn.disabled {
  background: var(--color-bg-muted);
  color: var(--color-text-disabled);
  border-color: var(--color-border-muted);
}

select {
  background: var(--color-bg-menu);
  color: var(--color-text);
  border: 1px solid var(--color-border-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xs);
  font-size: var(--font-size-md);
  font-family: var(--font-body);
  min-width: 180px;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm-dark);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select:hover,
select:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.currency-select label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: bold;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}


.custom-select {
  position: relative;
  display: inline-block;
  cursor: pointer;
  background: var(--color-bg-menu);
  color: var(--color-text);
  border: var(--color-border-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xs);
  min-width: var(--button-min-size);
  font-size: var(--font-size-sm);
  margin: var(--space-sm);
  height: var(--button-min-height);
}

.custom-select .selected {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  width: 100%;
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
  z-index: var(--layer-modal);
}

.custom-select .options li {
  padding: var(--space-sm) var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.custom-select .options li:hover {
  background: var(--color-accent);
} 

.custom-select img {
  width: 20px;
  height: auto;
}
.custom-select:hover {
  background-color: var(--color-accent);
} 

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.4rem;
  margin-bottom: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
 .password-wrapper {
  position: relative;
  display: flex;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.5rem; /* Platz für das Icon */
  margin-bottom: 0;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-muted);
  user-select: none;
}

/* === Carousel === */
.carousel {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

.carousel-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-wrapper .swiper-slide,
.carousel-wrapper .game-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background-color: #222;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #0ff;
  text-align: center;
  min-width: 240px;
}
/* === Game Grid === */
/* .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.game-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.game-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #ccc;
} */

/* .game-card button {
  background-color: #0ff;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.game-card button:hover {
  transform: scale(1.05);
  background-color: #33ffff;
} */

/* button {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-weight: bold;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  background-color: var(--color-accent-dark);
} */

/* .game-link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background-color: transparent; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-link:hover {
  transform: translateY(-4px) scale(1.03);
}

.game-link img {
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.game-link:hover img {
  transform: scale(1.02);
} */

/* Die Wrapper-Slide selbst */
.front-swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-sm);
  height: 100%;
  box-sizing: border-box;
}




/* General form reset */
.form-control {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-control:hover,
textarea.form-control:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
textarea.form-control {
  resize: vertical;
  min-height: var(--textarea-min-height);
}
.select-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-md);
  /* background-image: url("data:image/svg+xml,%3Csvg fill='%23f0f0f0' ..."); */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f0f0f0' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 1em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: var(--space-md);
}


/* ✅ Neutralisiere Hover */
.select-control:hover,
.select-control:focus {
  background-color: var(--color-bg); /* kein System-Grau */
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.3);
}
/* Button */
.btn, .btn-unmasked {
  display: inline-block;
  font: inherit;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-accent);
  color: var(--color-button-text);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.btn:hover, .btn-unmasked:hover {
  background-color: var(--color-accent-dark);
}

.btn:disabled, .btn-unmasked:disabled {
  background-color: var(--color-muted);
  cursor: not-allowed;
}

.btn-unmasked {
  background-color: transparent;
}



/* Label */
.label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-fg);
  font-weight: 500;
}
/* Toggle (Switch style) */
.toggle {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.25rem;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: var(--color-muted);
  border-radius: 1rem;
  transition: 0.3s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 1rem;
  width: 1rem;
  left: 0.125rem;
  bottom: 0.125rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(1.25rem);
}

/* Links */
a.link {
  color: var(--color-accent);
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}
.unmasked-link {
  text-decoration: none;
}
.unmasked-link:hover {
  color: var(--color-link);
}
h1.flat,
h2.flat, 
h3.flat {
  font-family: var(--font-body);
  padding: var(--space-sm) var(--space-md);
  /* background-color: var(--color-bg); */
  color: var(--color-text);
}
.forgot-password, .register-shortcut {
  text-align: right;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-xs);
}

.forgot-password a, .register-shortcut a {
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
}