/* ==========================================================================
   🦆 GÖKÇEOS 3D MISCHIEVOUS CYBER-DUCK (HAYLAZ SEVİMLİ ÖRDEK) MASCOT STYLES
   ========================================================================== */

.gokce-duck-mascot-root {
  position: fixed;
  bottom: 95px;
  right: 36px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.duck-mascot-chassis {
  position: relative;
  cursor: grab;
  transform-origin: center bottom;
  animation: duckFloatingLevitation 4.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.duck-mascot-chassis:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 16px 36px rgba(250, 204, 21, 0.4));
}

.duck-mascot-chassis:active,
.duck-mascot-chassis.is-dragging {
  cursor: grabbing;
  transform: scale(0.96) rotate(-3deg);
}

/* 360 Joyful Backflip on Click */
.duck-mascot-chassis.is-rolling {
  animation: duckJoyRoll 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Waddling & Walking across the desktop */
.duck-mascot-chassis.is-walking {
  animation: duckWaddleWalk 0.5s ease-in-out infinite alternate !important;
}

.duck-mascot-chassis.is-facing-left .duck-body-wrapper {
  transform: scaleX(-1);
}

@keyframes duckFloatingLevitation {
  0% { transform: translateY(0px) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(-1.5deg); }
}

@keyframes duckWaddleWalk {
  0% { transform: translateY(-4px) rotate(-5deg) scaleX(1); }
  50% { transform: translateY(2px) rotate(0deg) scaleX(1); }
  100% { transform: translateY(-4px) rotate(5deg) scaleX(1); }
}

@keyframes duckJoyRoll {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.25) rotate(-25deg) translateY(-24px); }
  100% { transform: scale(1) rotate(360deg) translateY(0px); }
}

/* Duck SVG Body */
.duck-body-wrapper {
  position: relative;
  z-index: 3;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.duck-svg-character {
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(234, 179, 8, 0.45));
}

/* Feet Waddling Animation */
.duck-foot-left {
  transform-origin: 48px 125px;
}

.duck-foot-right {
  transform-origin: 74px 125px;
}

.duck-mascot-chassis.is-walking .duck-foot-left {
  animation: duckStepLeft 0.5s ease-in-out infinite alternate;
}

.duck-mascot-chassis.is-walking .duck-foot-right {
  animation: duckStepRight 0.5s ease-in-out infinite alternate;
}

@keyframes duckStepLeft {
  0% { transform: translateY(-7px) rotate(-14deg); }
  100% { transform: translateY(2px) rotate(8deg); }
}

@keyframes duckStepRight {
  0% { transform: translateY(2px) rotate(8deg); }
  100% { transform: translateY(-7px) rotate(-14deg); }
}

/* Dangling Feet when dragging */
.duck-mascot-chassis.is-dragging .duck-foot-left,
.duck-mascot-chassis.is-dragging .duck-foot-right {
  animation: duckFeetDangle 0.35s ease-in-out infinite alternate;
}

@keyframes duckFeetDangle {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(12deg); }
}

/* Wing Flapping */
.duck-wing-left {
  transform-origin: 32px 75px;
  animation: duckIdleWingWiggle 3.5s ease-in-out infinite alternate;
}

.duck-wing-right {
  transform-origin: 88px 75px;
  animation: duckIdleWingWiggle 3.5s ease-in-out infinite alternate;
}

.duck-mascot-chassis:hover .duck-wing-left,
.duck-mascot-chassis.is-walking .duck-wing-left {
  animation: duckWingFlapLeft 0.3s ease-in-out infinite alternate;
}

.duck-mascot-chassis:hover .duck-wing-right,
.duck-mascot-chassis.is-walking .duck-wing-right {
  animation: duckWingFlapRight 0.3s ease-in-out infinite alternate;
}

@keyframes duckIdleWingWiggle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes duckWingFlapLeft {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(-28deg); }
}

@keyframes duckWingFlapRight {
  0% { transform: rotate(5deg); }
  100% { transform: rotate(28deg); }
}

/* Tail Wagging */
.duck-tail {
  transform-origin: 22px 90px;
  animation: duckTailWag 1.6s ease-in-out infinite alternate;
}

@keyframes duckTailWag {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(10deg); }
}

/* Eye Blink Animation */
.duck-eyelid {
  transform-origin: 0px -11px;
  transform: scaleY(0);
  transition: transform 0.08s ease;
}

.duck-mascot-chassis.is-blinking .duck-eyelid {
  transform: scaleY(1);
}

/* Eyebrows wiggle */
.duck-eyebrow-left, .duck-eyebrow-right {
  transition: transform 0.2s ease;
  transform-origin: center;
}

.duck-mascot-chassis:hover .duck-eyebrow-left {
  transform: translateY(-3px) rotate(-6deg);
}

.duck-mascot-chassis:hover .duck-eyebrow-right {
  transform: translateY(-3px) rotate(6deg);
}

/* Pupils smooth tracking */
.duck-pupil {
  transition: transform 0.06s ease-out;
  transform-origin: center;
}

/* Mini Sparkle Antenna */
.duck-sparkle-dot {
  animation: duckSparklePulse 1.8s infinite;
}

@keyframes duckSparklePulse {
  0%, 100% { fill: #38bdf8; filter: drop-shadow(0 0 4px #38bdf8); }
  50% { fill: #facc15; filter: drop-shadow(0 0 8px #facc15); }
}

/* Close / Dismiss Trigger Button on Duck Mascot */
.duck-mascot-close-trigger {
  position: absolute;
  top: -6px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #facc15;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 25;
  padding: 0;
  line-height: 1;
}

.gokce-duck-mascot-root:hover .duck-mascot-close-trigger {
  opacity: 1;
  transform: scale(1);
}

.duck-mascot-close-trigger:hover {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
  transform: scale(1.15);
}

/* Status Badge Under Duck (Hidden per user request) */
.duck-mini-status-badge {
  display: none !important;
}

/* Speech Bubble Box */
.duck-speech-bubble {
  position: absolute;
  bottom: 140px;
  right: 10px;
  min-width: 240px;
  max-width: 320px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
  transform-origin: right bottom;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.duck-speech-bubble.is-hidden {
  opacity: 0;
  transform: scale(0.8) translateY(12px);
  pointer-events: none;
}

.duck-speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 48px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(250, 204, 21, 0.5);
}

.duck-speech-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 850;
  color: #facc15;
}

.duck-speech-bubble-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.2rem;
  line-height: 1;
}

.duck-speech-bubble-close:hover {
  color: #ffffff;
}

.duck-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.duck-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duck-action-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
}
