/* style.css - Tema Horor */

/* Reset Dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
}

/* BODY */
body {
  background: #1a1a1a;
  color: #eee;
  line-height: 1.6;
  margin-top: 70px; /* Menghindari navbar tertutup */
  position: relative;
  min-height: 100vh;
}

/* Base navbar styles (mobile first) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f44336;
  text-transform: uppercase;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 24px;
  color: #eee;
}

/* Navigation menu container */
.nav-menu {
  display: none; /* Hidden by default on mobile */
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
}

/* Show menu when active class is added */
.nav-menu.active {
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.navbar ul li:last-child {
  border-bottom: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.navbar ul li a:hover {
  color: #f44336;
}

/* Desktop styles - IMPORTANT: This needs to override the mobile styles */
@media screen and (min-width: 768px) {
  body {
    margin-top: 60px;
  }
  
  .navbar {
    flex-wrap: nowrap;
    padding: 15px 30px;
  }
  
  .logo {
    font-size: 26px;
  }
  
  /* Hide menu toggle on desktop */
  .menu-toggle {
    display: none !important;
  }
  
  /* Always show nav menu on desktop */
  .nav-menu {
    display: block !important;
    position: static;
    width: auto;
    background: transparent;
  }
  
  .navbar ul {
    flex-direction: row;
    gap: 20px;
    margin: 0;
  }
  
  .navbar ul li {
    width: auto;
    border-bottom: none;
    padding: 0;
  }
  
  .navbar ul li a {
    font-size: 16px;
    padding: 0;
  }
}

/* HERO SECTION */
.hero {
  width: 100%;
  height: 40vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url("") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 32px;
  color: #f44336;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  color: #ddd;
  text-shadow: 1px 1px 2px #000;
  max-width: 800px;
}

/* STORE CONTAINER */
.store-container {
  max-width: 1200px;
  margin: 40px auto;
  background: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.store-container h2 {
  color: #f44336;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.store-item {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.store-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.store-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.store-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.store-info h3 {
  font-size: 18px;
  color: #f44336;
  margin-bottom: 10px;
  height: 2.4em; /* Approx 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.store-price {
  font-size: 16px;
  color: #ffdddd;
  margin-bottom: 10px;
  font-weight: bold;
}

.store-detail {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 15px;
  flex-grow: 1;
  max-height: 4.8em; /* Approx 3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.btn-buy {
  display: block;
  padding: 10px 15px;
  background: #f44336;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  font-weight: bold;
}

.btn-buy:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.no-item {
  color: #f44336;
  text-align: center;
  font-size: 18px;
  padding: 30px 0;
}

/* SECTION KONTAK */
.kontak {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}
  
.kontak h2 {
  font-size: 28px;
  color: #f44336;
  margin-bottom: 20px;
}
  


/* RESPONSIVE STYLES */
/* Mobile (default styles above are mobile-first) */
@media (max-width: 480px) {
  .store-container {
      margin: 30px 15px;
      padding: 15px;
  }
  
  .hero h1 {
      font-size: 28px;
  }
  
  .hero p {
      font-size: 16px;
  }
  
  .store-container h2 {
      font-size: 24px;
  }
}

/* Tablet */
@media (min-width: 768px) {
  body {
      margin-top: 60px;
  }
  
  
  .logo {
      font-size: 24px;
  }
  
  
  .hero {
      height: 50vh;
  }
  
  .hero h1 {
      font-size: 38px;
  }
  
  .hero p {
      font-size: 20px;
  }
  
  .logo-game {
      flex: 0 0 auto;
      order: 1;
      margin: 0;
  }
  
}

/* Desktop */
@media (min-width: 992px) {
  
  .logo {
      font-size: 26px;
  }
  
  
  .hero {
      height: 60vh;
  }
  
  .hero h1 {
      font-size: 48px;
  }
  
  .hero p {
      font-size: 22px;
  }
  
  .store-container {
      padding: 30px;
  }
  
  .store-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .store-grid {
      grid-template-columns: repeat(4, 1fr);
  }
}