/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px; /* Jaga jarak aman di layar HP */
  background-image: url(img/confetti-doodles.svg);
}

/* --- MOBILE FIRST STYLES (Default) --- */
.wrapper {
  position: relative;
  width: 100%; /* Default lebar penuh di mobile */
  max-width: 100%;
  border-radius: 15px;
  padding: 20px 20px 15px; /* Padding lebih ramping */
  background-color: #f1ff26;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.wrapper::before {
  content: "";
  background-image: url(img/1.png);
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.17;
  z-index: -1;
  border-radius: 15px;
}

.wrapper header {
  font-size: 28px; /* Ukuran font lebih proporsional di HP */
  font-weight: 600;
  text-align: center;
}

.wrapper .content {
  margin: 25px 0;
}

.quote-area {
  display: flex;
  justify-content: center;
  font-size: 14px;
}

.quote-area .quote {
  font-size: 18px; /* Font kutipan tidak terlalu besar di HP */
  text-align: center;
  word-break: break-word; /* Lebih aman daripada break-all */
}

/* Ikon kutipan */
.quote-area i:first-child {
  margin: 3px 8px 0 0;
}
.quote-area i:last-child {
  display: flex;
  align-items: flex-end;
  margin: 0 0 3px 8px;
}

.content .author {
  display: flex;
  font-size: 16px;
  font-style: italic;
  margin-top: 15px;
  justify-content: flex-end;
}

.content .author span:first-child {
  margin: -7px 5px 0 0;
  font-family: monospace;
}

/* Area Tombol & Fitur */
.wrapper .buttons {
  border-top: 1px solid #303030;
  margin-top: 20px;
  padding-top: 10px;
}

.buttons .features {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features ul {
  display: flex;
  margin: 15px 0;
  list-style: none;
}

.features ul li {
  margin: 0 5px;
  height: 42px; /* Sedikit lebih kecil untuk mobile */
  width: 42px;
  display: flex;
  cursor: pointer;
  color: #c48342;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #c48342;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.features ul li:hover {
  color: #f1ff26;
  background: #c48342;
}

.features button {
  width: 100%; /* Tombol lebar penuh di mobile agar mudah ditekan */
  max-width: 250px;
  border: none;
  outline: none;
  color: #f1ff26;
  cursor: pointer;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 30px;
  background: #c48342;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.features button:hover {
  transform: translateY(-2px);
}

button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --- DESKTOP STYLES (Tablet & Desktop) --- */
@media (min-width: 768px) {
  .wrapper {
    width: 650px; /* Ukuran asli Anda untuk layar besar */
    padding: 30px 30px 25px;
  }

  .wrapper header {
    font-size: 35px;
  }

  .quote-area .quote {
    font-size: 22px;
  }

  .features ul li {
    height: 47px;
    width: 47px;
  }

  .features button {
    width: auto; /* Ukuran normal di desktop */
  }

  /* Hover effect */
  .features ul li:hover {
    color: #f1ff26;
    background: #c48342;
  }

  .features button:hover {
    transform: translateY(-2px);
  }

  button.loading {
    opacity: 0.7;
    pointer-events: none;
  }
}
