/* about.css - Tema Horor untuk halaman About */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
}

/* BODY */
body {
  background: #1a1a1a;
  color: #eee;
  line-height: 1.6;
}

/* NAVBAR - Mobile first approach */
.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;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f44336;
  text-transform: uppercase;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

.navbar ul li {
  width: 100%;
  text-align: center;
  padding: 5px 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;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 24px;
  color: #eee;
}

/* Hidden by default on mobile */
.nav-menu {
  display: none;
  width: 100%;
}

.nav-menu.active {
  display: flex;
}

/* SECTION 1: Logo Game (dari DB) di kiri, deskripsi di kanan */
.section-1 {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  align-items: center;
  gap: 30px;
  background: #222;
}

.section-1 .left {
  width: 100%;
  text-align: center;
}

.section-1 .right {
  width: 100%;
}

.logo-game {
  max-width: 80%;
  width: 300px;
  border-radius: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.section-1 h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 10px;
  text-align: center;
}

.section-1 p {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

/* SECTION 2: Foto pembuat di kanan, deskripsi di kiri */
.section-2 {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: center;
  gap: 30px;
  background: #111;
}

.section-2 .left {
  width: 100%;
  margin-left: 0;
  order: 2;
}

.section-2 .right {
  width: 100%;
  text-align: center;
  margin-right: 0;
  order: 1;
}

.creator-photo {
  max-width: 80%;
  width: 300px;
  border-radius: 8px;
}

.section-2 h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 10px;
  text-align: center;
}

.section-2 p {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

/* SECTION 3: Trailer Video */
.section-3 {
  text-align: center;
  margin: 0 auto;
  padding: 40px 20px;
  background: #222;
}

.section-3 h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 20px;
}

.video-container {
  display: flex;
  justify-content: center;
}

.video-container video {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
}

/* SECTION 3 - Screenshot Slider */
.section-4 {
  text-align: center;
  padding: 50px 15px;
  background: #111;
  overflow: hidden;

}

.section-4 h2 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 25px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; /* Tampilkan satu item pada mobile */
  margin: 0 auto;
  overflow: hidden;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 67, 54, 0.8);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  font-size: 16px;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: #b71c1c;
}

.prev-btn {
  left: 5px;
}

.next-btn {
  right: 5px;
}

.slide-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide-item {
  width: 100%;
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
  margin: 0 10px;
  border-radius: 5px;
  transition: transform 0.3s;
  cursor: pointer;
}

.slide-item:hover {
  transform: scale(1.03);
}

/* Screenshot tooltip styles */
.screenshot-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}

/* Improved modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

#caption {
  margin: 15px auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 16px;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f44336;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* Improve slider button styles */
.slider-btn:disabled,
.news-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Improve clickable area for screenshot items */
.slide-item {
  cursor: pointer;
}


/* MEDIA QUERIES FOR TABLET */
@media (min-width: 576px) {
  .slider-wrapper {
    max-width: 340px;
  }
}

/* MEDIA QUERIES FOR TABLET AND DESKTOP */
@media (min-width: 768px) {
  /* NAVBAR */
  .navbar {
    padding: 15px 30px;
  }
  
  .logo {
    font-size: 26px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    width: auto;
  }
  
  .navbar ul {
    flex-direction: row;
    width: auto;
    margin-top: 0;
    gap: 20px;
  }
  
  .navbar ul li {
    width: auto;
    border-bottom: none;
    padding: 0;
  }
  
  .navbar ul li a {
    font-size: 16px;
    padding: 0;
  }
  
  /* Section layouts for tablet */
  .section-1 {
    flex-direction: row;
  }
  
  .section-1 .left, .section-1 .right {
    flex: 1;
    width: 50%;
  }
  
  .section-1 h2 {
    text-align: left;
  }
  
  .slider-wrapper {
    max-width: 700px;
  }
  
}

/* MEDIA QUERIES FOR DESKTOP */
@media (min-width: 992px) {
  .section-2 {
    flex-direction: row;
  }
  
  .section-2 .left {
    flex: 2;
    order: 1;
    width: 50%;
    margin-left: 0;
    padding: 0 40px;
  }
  
  .section-2 .right {
    flex: 1;
    order: 2;
    width: 50%;
    margin-right: 0;
  }
  
  .section-2 h2 {
    text-align: left;
  }
  
  .slider-wrapper {
    max-width: 960px;
  }
  
  .creator-photo {
    max-width: 300px;
  }
  
}

/* MEDIA QUERIES FOR LARGE DESKTOP */
@media (min-width: 1200px) {
  .section-1, .section-2, .section-3, .section-4 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-2 .left {
    padding: 0 60px;
  }
}