/* ============================================================
   LIQUID GLASS — My 0D1'$ Adapted from Abdughafur template
   Wrapper + Card + Responsive
   ============================================================ */

/* Wrapper — food background + tema integration */
.lg-wrapper {
  position: relative;
  min-height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 25px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(var(--rgb-primer, 245,158,11),0.55), rgba(var(--rgb-sekunder, 217,119,6),0.72)),
              url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  box-shadow: 0 14px 40px rgba(var(--rgb-sekunder, 217,119,6),0.25);
  isolation: isolate;
}

/* jika tema punya bg_image custom, JS akan override via inline style */
.lg-wrapper.custom-bg {
  background-blend-mode: overlay;
}

.lg-wrapper::after {
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(600px 300px at 70% 20%, rgba(255,255,255,0.18), transparent 70%);
  pointer-events:none;
  z-index:0;
}

/* Liquid glass card — core dari template */
.liquid-glass {
  --scale-factor: 1;
  width: 310px;
  min-height: 360px;
  padding: 30px 28px 22px;
  border-radius: 28px;
  isolation: isolate;
  position: relative;
  box-shadow: 0 24px 96px rgba(31, 38, 135, 0.21), inset 0 1px 0 rgba(255,255,255,0.5);
  cursor: grab;
  transition: all 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  will-change: transform, left, top;
  transform: scale(var(--scale-factor));
  z-index: 1;
  user-select: none;
}

.liquid-glass.dragging {
  cursor: grabbing;
  transition: none !important;
  transform: scale(calc(var(--scale-factor) + 0.03)) translateY(-4px);
  z-index: 1000;
  box-shadow: 0 32px 120px rgba(31, 38, 135, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  filter: url(#liquid-glass-distortion);
  -webkit-filter: url(#liquid-glass-distortion);
  isolation: isolate;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}

.liquid-glass:not(.dragging):hover {
  transform: scale(var(--scale-factor)) translateY(-4px);
}

@media (max-width: 768px) {
  .liquid-glass::after { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) { .liquid-glass { transition: none; } }

/* Content */
.profile-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.profile-avatar-border {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.25));
  box-sizing: border-box;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
}

.profile-avatar-border img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
  pointer-events: none;
  display: block;
  border: 2px solid white;
}

.avatar-fallback {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--gradient-tombol, linear-gradient(135deg, #f59e0b, #d97706));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
}

.profile-info h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 2px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  letter-spacing: -0.3px;
  color: white;
  pointer-events: none;
  line-height: 1.2;
}

.profile-info .role-badge-my0d1s {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  margin-bottom: 2px;
}

.profile-info p {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin: 4px 0 12px 0;
  font-family: 'Poppins', sans-serif;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Stats — ganti Repos/Followers jadi Pesanan/Ulasan */
.my0d1s-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  width: 92%;
  justify-content: center;
  pointer-events: none;
}

.my0d1s-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px 6px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.my0d1s-stats .stat-value {
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  color: white;
  line-height: 1;
}

.my0d1s-stats .stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.82);
  margin-top: 3px;
  font-weight: 600;
}

/* Buttons — adaptasi tombol GitHub */
.my0d1s-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  width: 100%;
}

.my0d1s-btn {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--warna-sekunder, #d97706);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Poppins', sans-serif;
}

.my0d1s-btn:hover {
  background: white;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.my0d1s-btn.secondary {
  background: rgba(36,41,47,0.55);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
}

.my0d1s-btn.secondary:hover { background: rgba(36,41,47,0.78); }

.my0d1s-btn .ic { font-size: 14px; line-height: 1; }

/* Zoom controls */
.zoom-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  padding: 0; line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.zoom-btn:hover { background: rgba(255,255,255,0.30); transform: scale(1.1); }
.zoom-btn:active { transform: scale(0.95); }

/* Hint text */
.lg-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.28);
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  z-index: 2;
}

/* Responsive wrapper */
@media (max-width: 700px) {
  .lg-wrapper { min-height: 460px; padding: 30px 15px 50px; border-radius: 18px; }
  .liquid-glass { width: 285px; min-height: 340px; padding: 26px 22px 18px; }
  .profile-avatar-border { width: 76px; height: 76px; }
  .profile-info h2 { font-size: 17px; }
  .my0d1s-stats .stat-value { font-size: 16px; }
  .my0d1s-btn { font-size: 12px; padding: 7px 14px; }
}

@media (max-width: 400px) {
  .liquid-glass { width: 260px; }
}
