* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #fff;
  color: #111;
}

/* Header */
.header {
  height: 85px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  border-bottom: 4px solid #eee;
  background: #fff;
  z-index: 1100;
}

.logo {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}
.logo img {
  width: 90px;
  height: 71px;
}

.hamburger {
  position: absolute;
  left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 17px;
  cursor: pointer;
  z-index: 1110;
}

.hamburger div {
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search dugme desno */
.search-btn {
  position: absolute;
  right: 1rem;
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
}

.search-btn video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-btn span.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Nav meni */
nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: #fff;
  border-right: 2px solid #eee;
  transform: translateX(-100%) scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1110;
  border-radius: 15px;
  overflow: hidden;
}

nav.active {
  transform: translateX(0) scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

nav ul {
  list-style: none;
  padding: 1rem;
}

nav ul li {
  margin: 1rem 0;
}

nav ul li a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: color 0.3s, transform 0.2s, background 0.2s;
}

nav ul li a:hover {
  color: #000;
  transform: scale(1.2);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1050;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main layout */
main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1400px;
  margin: 0.3rem auto;
  padding: 0 1rem;
}

.ad-left,
.ad-right {
  width: 160px;
  flex-shrink: 0;
  text-align: center;
}

.game-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-bottom {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

/* Game gallery */
.game-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 2rem;
}

.game-gallery-all {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-content: center;
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
}

.game-card {
  background: #f9f9f9;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* dodati shadow */
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* pojačan hover shadow */
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.game-card h3 {
  padding: 0.7rem 0;
  font-size: 1rem;
}

.play-btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s;
}

.play-btn:hover {
  background: #000;
}

.quick-play-title {
  text-align: center;
  font-size: 22px;
  font-weight: 550;
  color: #111;
  margin: 25px 0 15px 0;
}

/* Banner */
.banner-container {
  width: 100%;
  max-height: 510px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SEARCH PANEL */
.search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background: #fff;
  border-left: 2px solid #eee;
  border-radius: 15px 0 15px 15px;
  transform: translateX(0) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s, visibility 0.3s;
  z-index: 1110;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 1rem;
}

.search-panel.active {
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.search-input-wrap {
  background: white;
  border-radius: 12px;
  box-shadow: inset 3px 3px 6px #d9d9d9, inset -3px -3px 6px #ffffff;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: #999;
}

.categories-title {
  font-weight: 450;
  color: #888;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.categories-list {
  list-style: none;
  padding: 0;
}

.categories-list li {
  margin: 0.7rem 0;
}

.categories-list li a {
  display: block;
  text-decoration: none;
  color: #111;
  text-align: center;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}

.categories-list li a:hover {
  transform: scale(1.2);
}

/* Footer */
footer {
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
  padding: 1.5rem 2rem;
  background: #fff;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.privacy-link {
  align-self: flex-start;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #000;
  text-decoration: underline;
}

.all-games-link-wrap {
  text-align: center;
  margin: 20px 0;
}

.all-games-link {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.all-games-link:hover {
  background: #000;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width:1200px) {
  .game-gallery { grid-template-columns: repeat(4,1fr); }
}
@media (max-width:992px) {
  .game-gallery, .game-gallery-all { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:768px) {
  .game-gallery, .game-gallery-all { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:480px) {
  .game-gallery, .game-gallery-all { grid-template-columns: 1fr; }
  .header { flex-direction: row; justify-content: space-between; }
  nav ul { flex-direction: column; gap: 1rem; }
  .ad-left, .ad-right { width: 100%; margin-bottom: 1rem; }
}
@media (max-width:600px) {
  .search-btn { width: 50px; height: 50px; }
  .logo { font-size: 20px; }
  .footer-container { align-items: center; text-align: center; }
  .privacy-link { align-self: center; }
}

.game-gallery-all {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.game-gallery-all .game-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); /* shadow na svim igrama */
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-gallery-all .game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); /* jači hover */
}

.game-gallery-all .game-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #333;
}

.game-gallery-all .game-card h3 {
  font-size: 14px;
  padding: 5px 0;
}

/* ===== CATEGORIES SECTION ===== */

.categories-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 1rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

/* Category card */
.category-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1; /* SAVRŠEN KVADRAT */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img {
  width: 80%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Hover */
.category-card:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Mobile polish */
@media (max-width: 480px) {
  .categories-grid {
    gap: 12px;
  }

  .category-card:hover {
    transform: scale(1.03);
  }
}
/* --- About Section ShortcutGames Modern Style --- */
.about-section {
  background: #f5f7fa; /* svetla neutralna pozadina */
  padding: 80px 0; /* vertikalni spacing */
}

.about-section .container {
  max-width: 900px; /* ograničena širina za “boxed look” */
  margin: 0 auto;
  padding: 0 30px; /* uvlačenje sa leve i desne strane */
  background: #fff; /* bela kartica */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 40px 30px; /* unutrašnji padding */
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #111;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.about-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #111;
}

.about-section ul {
  list-style: disc inside;
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 20px;
}

about-section ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

about-section ul li strong {
  color: #111;
}

about-section .tagline {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 40px;
  color: #000;
}

/* Responsive */
@media (max-width: 992px) {
  .about-section h2 {
    font-size: 1.8rem;
  }
  .about-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .about-section .container {
    padding: 30px 20px;
  }
  .about-section h2 {
    font-size: 1.6rem;
  }
  .about-section h3 {
    font-size: 1.1rem;
  }
  .about-section p, 
  .about-section ul li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-section .container {
    padding: 25px 15px;
  }
  .about-section h2 {
    font-size: 1.4rem;
  }
  .about-section h3 {
    font-size: 1rem;
  }
  .about-section p, 
  .about-section ul li {
    font-size: 0.9rem;
  }
}
/* ===== GAME AREA FIX (MOBILE FIRST) ===== */

.game-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-container {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 768px) {

  /* Sakrij reklame sa strane */
  .ad-left,
  .ad-right {
    display: none;
  }

  main {
    padding: 0.5rem;
    margin: 0;
  }

  /* Igra zauzima skoro ceo viewport */
  .game-container {
    width: 100%;
    aspect-ratio: 4 / 3; /* bolje za mobile igre */
  }

  /* Manje margine ispod */
  .game-links {
    font-size: 0.85rem;
    margin-top: 8px;
  }
}

.fullscreen-btn {
  align-self: flex-end;
  margin-bottom: 8px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.fullscreen-btn:hover {
  background: #000;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .fullscreen-btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 15px;
  }
}
:fullscreen header,
:fullscreen footer,
:fullscreen .ad-left,
:fullscreen .ad-right,
:fullscreen .ad-bottom {
  display: none !important;
}

:fullscreen .game-container {
  max-width: none;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}







