/* Minion-Themed Popup Overlay Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Quicksand:wght@600;800;900&display=swap');

/* Namespace: minion- */
.minion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85); /* Dark slate semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  overflow: hidden;
}

.minion-overlay.minion-show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card Container */
.minion-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 5px solid #facc15; /* Bright Minion Yellow */
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(250, 204, 21, 0.25), 0 0 40px rgba(0, 0, 0, 0.2);
  padding: 70px 24px 24px 24px; /* Big top padding to make room for peeking Minion */
  text-align: center;
  transform: scale(0.7) translateY(100px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.6, 0.64, 1), opacity 0.6s ease;
  font-family: 'Quicksand', sans-serif;
}

.minion-overlay.minion-show .minion-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* --- CSS Minion Character Header (Peeking from Top) --- */
.minion-character {
  position: absolute;
  top: -85px; /* Halfway out of the card */
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 110px;
  z-index: 2;
  pointer-events: none; /* Make clicks pass through to close button or backdrop if clicked slightly off */
}

/* Hair strands */
.minion-hair {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
}

.minion-hair::before,
.minion-hair::after,
.minion-hair-center {
  content: '';
  position: absolute;
  background: #111827;
  border-radius: 50%;
}

.minion-hair::before {
  width: 3px;
  height: 18px;
  left: 15px;
  top: 5px;
  transform: rotate(-15deg);
}

.minion-hair::after {
  width: 3px;
  height: 18px;
  right: 15px;
  top: 5px;
  transform: rotate(15deg);
}

.minion-hair-center {
  width: 3px;
  height: 20px;
  left: calc(50% - 1.5px);
  top: 0;
}

/* Yellow Minion Body */
.minion-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: #facc15; /* Yellow */
  border: 5px solid #111827;
  border-bottom: none;
  border-radius: 70px 70px 0 0;
  overflow: hidden;
  box-shadow: inset -10px -5px 0 rgba(0, 0, 0, 0.05);
}

/* Black Goggle Strap */
.minion-strap {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 18px;
  background: #111827;
}

/* Chrome Goggles */
.minion-goggles {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 2px;
  z-index: 3;
}

.minion-goggle-ring {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #e2e8f0 0%, #9ca3af 50%, #4b5563 100%);
  border: 4px solid #111827;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.8);
  position: relative;
}

.minion-goggle-ring::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* White Eye Ball */
.minion-eye {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid #111827;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eye Pupil (will be moved by JS) */
.minion-pupil {
  width: 14px;
  height: 14px;
  background: #78350f; /* Cute Brown Iris */
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.05s ease-out;
}

.minion-pupil::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #111827; /* Black Pupil Center */
  border-radius: 50%;
  display: block;
}

/* White Specular Highlight on Eye */
.minion-pupil::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
}

/* Cute Mouth Smile */
.minion-mouth {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 18px;
  border-bottom: 5px solid #111827;
  border-radius: 0 0 25px 25px;
  background: transparent;
  transition: height 0.3s ease;
}

/* Laughing state on Hover */
.minion-modal-card:hover .minion-mouth {
  height: 22px;
  background: #ef4444; /* Tongue red color */
  border: 4px solid #111827;
  border-radius: 0 0 30px 30px;
  box-shadow: inset 0 4px 0 #111827;
}

/* Cute Close Button */
.minion-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: #facc15;
  border: 3px solid #111827;
  color: #111827;
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #111827;
  transition: all 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minion-close-btn:hover {
  background: #ff8008;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 2px 0 #111827;
}

.minion-close-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0px 0 #111827;
}

/* Modal Content Styles */
.minion-content {
  position: relative;
  z-index: 1;
}

/* Title */
.minion-title {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #111827;
  text-shadow: 2px 2px 0 #facc15;
  margin-top: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  animation: minionWiggle 2.5s ease-in-out infinite alternate;
}

.minion-subtitle {
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0 10px;
}

/* Banner Frame */
.minion-banner-frame {
  width: 100%;
  border: 4px solid #111827;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 6px 6px 0 rgba(17, 24, 39, 0.15);
  position: relative;
  background: #e2e8f0;
}

.minion-banner-frame img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.minion-banner-frame:hover img {
  transform: scale(1.04);
}

/* Banner Ribbon Indicator */
.minion-banner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1e40af;
  color: #ffffff;
  font-family: 'Fredoka One', cursive;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 2px solid #111827;
  box-shadow: 2px 2px 0 #111827;
}

/* Buttons Container */
.minion-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

/* Base button style */
.minion-btn {
  text-decoration: none;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 10px;
  text-align: center;
  border-radius: 16px;
  border: 3.5px solid #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}

/* LOGIN Button (Minion Denim Blue / Overalls style) */
.minion-btn-login {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  border-style: dashed; /* Cute overall stitch line */
  border-color: #111827;
  box-shadow: 0 6px 0 #111827, 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.minion-btn-login:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 10px 0 #111827, 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.minion-btn-login:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 #111827;
}

/* DAFTAR Button (Bright Minion Orange/Banana Yellow accent) */
.minion-btn-register {
  background: linear-gradient(135deg, #ff8008 0%, #ffc837 100%);
  color: #111827;
  box-shadow: 0 6px 0 #111827, 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.minion-btn-register:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ffa647 0%, #fde047 100%);
  box-shadow: 0 10px 0 #111827, 6px 6px 0 rgba(0, 0, 0, 0.15);
  animation: minionPulseBtn 1.2s infinite;
}

.minion-btn-register:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 #111827;
}

/* Footer Section */
.minion-footer {
  margin-top: 24px;
  border-top: 2px dashed #e5e7eb;
  padding-top: 14px;
}

.minion-copyright {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Floating Banana Particles in Overlay --- */
.minion-banana-particle {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  z-index: 0;
  animation: minionFall linear forwards;
}

/* Animations */
@keyframes minionWiggle {
  0% { transform: rotate(-2deg) scale(1); }
  100% { transform: rotate(2deg) scale(1.02); }
}

@keyframes minionFall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes minionPulseBtn {
  0%, 100% { transform: translateY(-4px) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

/* Mobile responsive screen sizes */
@media (max-width: 480px) {
  .minion-modal-card {
    padding: 64px 18px 18px 18px;
    margin: 10px;
    border-width: 4px;
  }

  .minion-character {
    top: -75px;
    width: 120px;
    height: 95px;
  }

  .minion-goggle-ring {
    width: 46px;
    height: 46px;
  }

  .minion-eye {
    width: 32px;
    height: 32px;
  }

  .minion-pupil {
    width: 12px;
    height: 12px;
  }

  .minion-title {
    font-size: 24px;
  }

  .minion-subtitle {
    font-size: 12px;
  }

  .minion-banner-frame img {
    height: 140px;
  }

  .minion-btn {
    font-size: 14px;
    padding: 10px 8px;
  }

  .minion-actions {
    gap: 10px;
  }
}
