/* ===== Oracle Card Wrapper ===== */
.hd-oracle {
  text-align: center;
  margin: 30px auto;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  max-width: 800px;
}

/* ===== Tombol Tarik Kartu ===== */
.hd-oracle .js-hd-draw {
  display: inline-flex;                /* biar bisa di-center fleksibel */
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto !important; /* paksa center */
  float: none !important;              /* cegah gaya tema geser kiri */
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hd-oracle .js-hd-draw:hover {
  background: #0088cc;
}

/* ===== Deck / Kartu ===== */
.hd-deck {
  display: flex;
  justify-content: center !important;
  align-items: center;
  perspective: 1000px;
  margin: 0 auto 30px auto;
}

.hd-card {
  width: 260px;
  height: 400px;
  margin: 0 auto;
  perspective: inherit;
  cursor: grab; /* shuffle UX */
}

.hd-card.is-dragging { cursor: grabbing; }

.hd-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.hd-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.hd-card-front,
.hd-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

/* Belakang kartu (custom image) */
.hd-card-back {
  background: url("https://www.humandesignindonesia.com/wp-content/uploads/2025/09/Kartu-Matriks-Desain-Manusia.png")
              no-repeat center center;
  background-size: contain; /* supaya gambar full, tidak terpotong */
  background-color: #0a0a0a; /* fallback background */
}

/* Depan kartu */
.hd-card-front {
  transform: rotateY(180deg);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ===== Konten Kartu ===== */
.hd-card-view__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hd-card-view__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 16px;
}

.hd-blocks {
  margin-top: 20px;
  text-align: left;
}

.hd-block {
  margin-bottom: 18px;
}

.hd-block h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.hd-block p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Share Section ===== */
.hd-share {
  margin-top: 25px;
  text-align: center;
}

.hd-share button {
  background: #e6f3ff;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #005c99;
  transition: background 0.3s ease;
}

.hd-share button:hover {
  background: #cce9ff;
}

.hd-copy-buffer {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
}

/* ===== Limit Box ===== */
.hd-limit {
  margin-top: 15px;
  font-size: 14px;
  color: #c00;
  font-weight: 600;
}

/* ==== Shuffle UX (drag & shake) ==== */
.hd-corner-hint { transition: opacity .3s ease; }

.hd-card.is-wobble .hd-card-inner { animation: hd-wobble .5s ease; }
@keyframes hd-wobble {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  25%  { transform: translate3d(-6px,0,0) rotate(-2deg); }
  50%  { transform: translate3d(6px,0,0) rotate(2deg); }
  75%  { transform: translate3d(-3px,0,0) rotate(-1deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}
