/*
Theme Name:  Host Honest
Theme URL:   https://www.hosthonest.de
Description: Theme for Host Honest
Author:      Philipp Hieber
Author URL:  https://www.hosthonest.de
Template:    gutenify-biz
Version:     0.1
*/

/* zoom in on mouse hover*/
.dt-zoom-in {
	.wp-block-uagb-image__figure {
		overflow: hidden;
		transition: all 500ms 0s ease;
	}
	transition: all 500ms 0s ease;
	overflow: hidden;
}
.dt-zoom-in:hover {
	.wp-block-uagb-image__figure {
		transform: scale(1.05);
	}
	transform: scale(1.05);
}


/* Custom Checkbox */
/* Customize the label (the mycheckbox) */
.mycheckbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 17px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.mycheckbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.mycheckbox:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.mycheckbox input:checked ~ .checkmark {
  background-color: #D64B00;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.mycheckbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.mycheckbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Game Card */
.game-card {
  width: 400px;
  height: 450px;
  overflow: hidden;
  background-color: #34495E;
  color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cover-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* zentriert exakt mittig */
  width: 70%; /* Größe nach Wunsch anpassbar */
  z-index: 1;
  pointer-events: none; /* verhindert ungewolltes Verhalten beim Hovern */
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px; /* deine gewünschte Höhe */
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 1;
  color: white;
  padding: 5px 10px;
}

.banner-icons {
  display: flex;
  gap: 8px; /* Abstand zwischen Icons */
}

.banner-icons i {
  font-size: 21px; /* Icon-Größe nach Wunsch */
}

.banner-text {
  color: white;
  font-weight: bold;
  font-size: 21px;
  font-family: ACME;
}

.discount-badge {
  font-size: 19px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #A4C639;
  color: black;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: lato;
  z-index: 2;
}

.price-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 19px;
  font-family: lato;
  z-index: 2;
}

.original-price {
  text-decoration: line-through;
  opacity: 0.7;
}

.sale-price {
  font-weight: bold;
  margin-left: 4px;
}

.game-info {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: top 0.4s ease-in-out;
  text-align: center;
  z-index: 1;
}

.game-info-title {
  font-family: ACME;
  font-weight: bold;
  font-size: 32px;
}

.media-container {
  width: 100%;
  height: 40%; /* identisch zu vorherigem Bild */
  position: relative;
  overflow: hidden;
  margin: 0 0 10px 0;
}

.additional-video,
.additional-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Verzögerung beim Ausblenden des Videos */
.additional-video {
  transition: opacity 0s ease 1s; /* Erst nach 1 Sekunde verschwinden lassen */
  z-index: 3;
}

.game-card:hover .additional-video {
  transition: opacity 0s ease 0s; /* Sofort sichtbar, wenn gehovert wird */
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px; /* Abstand zwischen den Tags */
  margin-top: 8px;
  margin-bottom: 10px;
}

.tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: lato;
}

.cart-button {
  text-decoration: none; /* entfernt Unterstreichung */
  text-align: center; /* Zentriert den Button-Text */
  display: block; /* Button verhält sich wie zuvor */
  font-family: lato;
  font-size: 19px;
  padding: 8px 12px;
  width: 100%;
  background-color: #d64b00;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: auto; /* schiebt Button ganz nach unten */
  margin-bottom: 60px; /* dein gewünschter fixer Abstand von unten */
}

.cart-button:hover {
  background-color: #d64b00;
  color: white;
}

/* Anpassung für publisher. */
body.publisher .cart-button {
  background-color: #0036D6;
}

body.publisher .cart-button:hover {
  background-color: #0036D6;
}

.game-card:hover .game-info {
  top: 0;
}
