/* Základní reset a typografie */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: #807300;
  transition: color 0.3s ease;
}

a:hover {
  color: #807300;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1rem 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Header a navigace */
header {
  background-color: #1a1a1a;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'BRUSHSTRIKE', sans-serif;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f8a100;
}

nav ul li a.active {
  color: #f8a100;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.loading-wide {
  width: 200px;
  height: 100px;
  position: relative;
}

.color {
  background-color: #f8a100;
}

/* Animační efekty pro loader */
.animation-effect-light {
  animation: light 1.5s infinite;
}

.animation-effect-light-d {
  animation: light 1.5s infinite 0.5s;
}

.animation-effect-rot {
  animation: rotation 2s infinite;
}

.animation-effect-scale {
  animation: scale 1s infinite;
}

@keyframes light {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Detail hry - hlavní obsah */
.game-detail {
  padding-top: 100px;
  padding-bottom: 50px;
}

.game-detail-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.game-meta span {
  background-color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.difficulty {
  color: #e67e22;
}

.duration {
  color: #3498db;
}

.players {
  color: #2ecc71;
}

.game-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.game-detail-image {
  border-radius: 10px;
  height: fit-content;
  overflow: hidden;
}

.game-detail-image img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
}

.game-detail-image img:hover {
  transform: scale(1.03);
}

.game-detail-description {
  margin-top: 0;
}

.game-detail-description h2:first-child {
  margin-top: 0;
}

.game-detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.spec-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.spec-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.spec-content h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.spec-content p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

.game-detail-cta {
  justify-content: center;
  justify-items: center;
  box-shadow: 0px 10px 7px -3px rgba(0,0,0,0.2);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.game-detail-cta h2 {
  color: #aa9900;
  margin-top: 0;
}

.game-detail-cta p {
  color: #aa9900;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}



.game-detail-testimonials {
  margin-bottom: 3rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  box-shadow: 0px 10px 7px -3px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 1.5rem;
}

.stars {
  color: #f8a100;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  opacity: 0.8;
  text-align: right;
}

.game-detail-nav {
  margin-bottom: 2rem;
}

.game-nav-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-nav-button {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: block;
  color: #333;
}

.game-nav-button:hover {
  transform: translateY(-5px);
}

.game-nav-button img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.game-nav-button span {
  display: block;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 3rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f8a100;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f8a100;
}

.copyright {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.by {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

.by a {
  color: #f8a100;
}

/* Responsivní design */
@media (max-width: 992px) {
  .game-detail-content {
      grid-template-columns: 1fr;
  }
  
  .game-detail-image {
      margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
      display: block;
  }
  
  nav ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: #1a1a1a;
      flex-direction: column;
      text-align: center;
      padding: 1rem 0;
  }
  
  nav ul.show {
      display: flex;
  }
  
  nav ul li {
      margin: 0.5rem 0;
  }
  
  .game-meta {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
  }
  
  .spec-item {
      flex-direction: column;
      text-align: center;
  }
  
  .spec-icon {
      margin-right: 0;
      margin-bottom: 0.5rem;
  }
  
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
      width: 95%;
  }
  
  .game-detail {
      padding-top: 80px;
  }
  
  .testimonial-cards {
      grid-template-columns: 1fr;
  }
  
  .game-nav-buttons {
      grid-template-columns: 1fr;
  }
}