/* Reset dan Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'IM Fell English', serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #e8e1d5;
  color: #3a2c1a;
  overflow: hidden;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #8a5a2f;
  padding: 10px 20px;
  height: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-bottom: 3px solid #6d4a2a;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  background-color: #a67c52;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid #8a5a2f;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background-color: #be8c5a;
}

.menu-toggle.active {
  background-color: #be8c5a;
  transform: rotate(90deg);
}

.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  background-color: #a67c52;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #8a5a2f;
  transition: all 0.3s ease;
}

.cart-btn img {
  width: 30px;
  transition: transform 0.2s ease;
}

.cart-btn:hover {
  background-color: #be8c5a;
  transform: scale(1.05);
}

.cart-btn:hover img {
  transform: scale(1.1);
}

/* Main Layout */
.container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
  background-color: #a67c52;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  border-right: 3px solid #8a5a2a;
  background-image: linear-gradient(to bottom, #a67c52, #be8c5a);
  flex-shrink: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 998;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  margin: 8px 15px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: rgba(0,0,0,0.1);
  border-left: 4px solid transparent;
}

.nav-item img {
  width: 24px;
  height: 24px;
  display: block;
  margin-right: 10px;
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateX(8px);
  border-left: 4px solid #fff;
}

.nav-item span {
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Content Area */
.content {
  flex: 1;
  padding: 20px;
  background-color: #f0e7db;
  background-image: url('../assets/paper-texture.jpg');
  background-size: cover;
  overflow-y: auto;
  transition: margin-left 0.3s ease;
}

/* Overlay for mobile menu */
.menu-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 769px) {
  .menu-toggle {
    display: flex;
  }
  
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .content {
    margin-left: 0;
  }
}

@media (max-width: 481px) {
  .logo img {
    width: 100px;
  }
  
  .cart-btn {
    width: 40px;
    height: 40px;
  }
  
  .cart-btn img {
    width: 24px;
  }
  
  .nav-item {
    padding: 12px 20px;
    margin: 5px 10px;
  }
  
  .nav-item span {
    font-size: 16px;
  }
}

/* Scrapbook Theme */
.scrapbook-container {
  padding: 30px;
}

.scrapbook-page {
  background: #f8f1e0;
  border: 12px solid #e5d5b8;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3),
              inset 0 0 30px rgba(139, 69, 19, 0.1);
  position: relative;
  padding: 40px;
  transform: rotate(0.5deg);
  max-width: 900px;
  margin: 0 auto;
  background-image: url('../assets/paper-texture-light.jpg');
  background-size: cover;
}

.scrapbook-tape {
  position: absolute;
  width: 120px;
  height: 35px;
  background: rgba(255,255,255,0.5);
  transform: rotate(-4deg);
  top: -15px;
  left: 50%;
  margin-left: -60px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.scrapbook-content h2 {
  font-family: 'Cinzel Decorative', cursive;
  color: #5a3921;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
  border-bottom: 2px dashed #a67c52;
  padding-bottom: 15px;
}

/* Vintage Postcard */
.vintage-postcard {
  display: flex;
  margin: 30px 0;
  background: #fff8e7;
  border: 1px dashed #d4b483;
  padding: 20px;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.1);
  position: relative;
  overflow: hidden;
}

.vintage-postcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

.vintage-postcard img {
  width: 180px;
  border: 8px solid #e5d5b8;
  margin-right: 25px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.vintage-postcard img:hover {
  transform: scale(1.03);
}

.postcard-text {
  font-family: 'IM Fell English', serif;
  color: #5a4a3a;
  font-size: 1.1rem;
  line-height: 1.6;
  flex: 1;
}

.postcard-text p:first-child {
  font-style: italic;
  color: #8a5a2f;
  margin-bottom: 15px;
}

/* Buttons */
.vintage-button {
  background: #8a5a2f;
  color: white;
  border: none;
  padding: 12px 25px;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
  border: 2px solid #6d4a2a;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vintage-button:hover {
  background: #a67c52;
  transform: translateY(-2px);
  box-shadow: 3px 3px 7px rgba(0,0,0,0.3);
}

/* Polaroid Gallery */
.scrapbook-photos {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.polaroid {
  background: white;
  padding: 15px 15px 30px;
  transform: rotate(-1deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  width: 220px;
  transition: all 0.3s ease;
  position: relative;
}

.polaroid:nth-child(even) {
  transform: rotate(2deg);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 1;
}

.polaroid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid #ddd;
  filter: sepia(0.3) contrast(1.1);
}

.polaroid p {
  text-align: center;
  font-family: 'IM Fell English', serif;
  margin-top: 15px;
  color: #333;
  font-size: 1.1rem;
}

/* Timeline Progress */
.timeline-progress {
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 5px;
  margin-top: 30px;
  border: 1px dashed #a67c52;
  text-align: center;
}

.timeline-progress h3 {
  font-family: 'Cinzel Decorative', cursive;
  color: #5a3921;
  margin-bottom: 15px;
}

/* Utility Classes */
.game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.no-image-placeholder {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

.error-image {
  border: 2px dashed #ff0000;
  opacity: 0.8;
}

/* Close button for mobile menu */
.close-sidebar {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 769px) {
  .close-sidebar {
    display: block;
  }
}