@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@1024&display=swap');

body {
  margin: 0;
  background: #121212;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

/* HLAVIČKA */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  color: white;
  padding: 10px 20px;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-section img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.logo-section span {
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
  font-family: Arial, sans-serif;
  line-height: 1.2;
}

.search-box {
  flex: 1;
  margin: 0 20px;
  text-align: center;
}

.search-box input {
  width: 300px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  background: #2a2a2a;
  color: white;
}

.icons {
  display: flex;
  gap: 15px;
  font-size: 24px;
  cursor: pointer;
}

.icons i:hover {
  opacity: 0.7;
}

/* SIDEBAR */
.sidebar {
  background: #1e1e1e;
  min-width: 100px;
  max-width: 240px;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  height: 100vh;
  position: sticky;
  top: 5rem;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #555 #1e1e1e;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #555;
}

.close-sidebar {
  display: none;
  font-size: 1.2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  align-self: flex-end;
  margin-right: 1rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  /*gap: 1rem;*/
  width: 100%;
  text-align: center;
  padding-bottom: 0rem;
}

.sidebar nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.2rem 1rem;
  border-left: 4px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  word-break: break-word;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: #2a2a2a;
  color: #fff;
  border-left: 4px solid #ff9800;
}

.main {
  position: sticky;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #181818;
  overflow-y: auto;
}
.hamburger, .close-sidebar {
  display: inline-block;
  font-size: 1.5rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  margin: 10px;
}


/* HLAVNÝ OBSAH */
.main {
  /*margin-left: 220px;*/
  padding: 20px;
  background: #181818;
  min-height: 100vh;
}

/* GRID HIER */
.game-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.game-card {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 0 10px #00000033;
  transition: transform 0.2s ease;
  padding-bottom: 0.1rem;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff980044;
}

.game-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.game-card div {
  padding: 0.5rem;
  font-size: 0.95rem;
}

.game-card a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.6rem;
  word-break: break-word;
}


/* FOOTER */
footer {
  background: linear-gradient(to right, #2c3e50, #000000);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* RESPONSÍVNE */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    margin: 10px 0;
    width: 100%;
  }

  .sidebar {
    display: none;
	  font-size: 1.2rem;
	  background: none;
	  color: white;
	  border: none;
	  cursor: pointer;
	  margin-bottom: 1rem;
	  align-self: flex-end;
	  margin-right: 1rem;
  }

  .main {
    margin-left: 0;
  }
  
  .hamburger {
    display: inline-block;
    display: none;
  }
  .sidebar.open + .hamburger {
    display: none;
  }

  .sidebar.open + .close-sidebar {
    display: inline-block;
  }
  
  .hamburger {
    align-self: flex-start;
    display: block;
  }
  .close-sidebar {
    display: none;
    position: absolute;
    right: 10px;
	
	  font-size: 1.5rem;
	  background: none;
	  color: white;
	  border: none;
	  top: 1rem;
	  left: 6rem;
	  z-index: 1100;
	  cursor: pointer;
	}
  .top-icons-fixed {
    display: block;
  }
  
  .sidebar.open + .header.close-sidebar {
    display: block;
  }

  .sidebar.open + .header.hamburger {
    display: none;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}