:root {
  --bg-color: #0b0c10;
  --text-color: #e0e0e0;
  --accent-orange: #ff7b00;
  --accent-orange-glow: rgba(255, 123, 0, 0.4);
  --panel-bg: #1f2833;
  --border-color: #2b333a;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Base utility classes for layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.main-content {
  flex: 1;
}

/* Header & Nav */
.header {
  background-color: rgba(11, 12, 16, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

.nav-logo span {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  color: #ccc;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-orange);
  text-shadow: 0 0 10px var(--accent-orange-glow);
}

/* Footer */
.footer {
  background-color: var(--panel-bg);
  padding: 50px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
  text-align: left;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icon {
  color: #ccc;
  transition: all 0.3s ease;
  display: flex;
}

.social-icon:hover {
  color: var(--accent-orange);
  transform: translateY(-3px);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: #e66e00;
  box-shadow: 0 0 12px var(--accent-orange-glow);
  transform: translateY(-2px);
}

/* Game Grid (3 columns max) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px var(--accent-orange-glow);
  border-color: var(--accent-orange);
}

.game-card-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  position: relative;
}

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

.game-card-content {
  padding: 20px;
  text-align: center;
}

.game-card-title {
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
}

.section-title {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--accent-orange);
  display: inline-block;
  padding-bottom: 8px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ccc;
}

.form-input {
  width: 100%;
  padding: 12px;
  background-color: #0b0c10;
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 4px;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange-glow);
}

/* GAME DETAILS PAGE RE-DESIGN */
.game-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
}

.game-header-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.game-icon-box {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--accent-orange-glow);
  border: 2px solid var(--border-color);
  background: var(--panel-bg);
}

.game-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-main-title {
  color: var(--accent-orange);
  font-size: 3.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(255, 123, 0, 0.2);
}

.game-description {
  color: #ddd;
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.game-download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* HORIZONTAL GALLERY SCROLL */
.game-gallery-section {
  background: var(--panel-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.horizontal-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) var(--bg-color);
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 12px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-orange);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

.gallery-img {
  height: 350px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gallery-img:hover {
  transform: scale(1.02);
  border-color: var(--accent-orange);
}

@media (max-width: 900px) {
  .game-header-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .game-download-buttons {
    justify-content: center;
  }
  
  .game-page-wrapper {
    padding: 30px 20px;
  }

  .game-main-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 500px) {
  .gallery-img {
    height: 250px;
  }
  .game-icon-box {
    width: 200px;
    height: 200px;
  }
}


/* HAMBURGER MENU & MOBILE RESPONSIVE FIXES */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu-wrapper {
    position: absolute;
    top: 80px; 
    left: 0;
    width: 100%;
    background-color: rgba(11, 12, 16, 0.98);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    gap: 0;
    align-items: center;
  }
  
  .nav-links.nav-active {
    max-height: 400px;
    padding: 20px 0;
  }
  
  .nav-links li {
    padding: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

/* EXTREME MOBILE (Oyun sayfasindaki yamulmaları önleme) */
@media (max-width: 500px) {
  .nav-logo {
    font-size: 1.1rem;
    gap: 8px;
  }
  .nav-logo-img {
    width: 35px;
    height: 35px;
  }
  .game-icon-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .game-main-title {
    font-size: 1.8rem;
    word-break: break-word; /* Uzun kelimeleri kirarak tasmayi engeller */
    line-height: 1.3;
  }
  .game-info-box {
    width: 100%;
  }
  .game-description {
    font-size: 1rem;
    padding: 0 10px;
  }
}
