/* ========================================
   Floating Quick Menu (PC Only)
   ======================================== */

.floating-quick-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  
  /* Animation */
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate(100px, -50%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* Quick Menu Item (Kakao, Blog, Store) */
.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(0, 52, 234, 0.1);
  backdrop-filter: blur(10px);
}

.quick-menu-item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 52, 234, 0.2);
  background: rgba(255, 255, 255, 1);
}

.quick-menu-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0034EA;
  transition: transform 0.3s ease;
}

.quick-menu-item:hover .quick-menu-icon {
  transform: scale(1.15);
}

/* Naver Icon (Green) */
.naver-icon {
  color: #03C75A;
}

.quick-menu-label {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  margin-top: 4px;
  text-align: center;
  line-height: 1;
}

/* Phone Number Box */
.quick-menu-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  min-height: 95px;
  padding: 14px 10px;
  background: linear-gradient(135deg, #0034EA 0%, #0052EA 100%);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 52, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.quick-menu-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 52, 234, 0.4);
  background: linear-gradient(135deg, #0052EA 0%, #0070EA 100%);
}

.phone-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
  animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.phone-number {
  font-size: 13px;
  font-weight: 800;
  color: white;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  word-break: keep-all;
}

.phone-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll to Top Button */
.quick-menu-scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 52, 234, 0.1);
  backdrop-filter: blur(10px);
  margin-top: 8px;
  color: #0034EA;
}

.quick-menu-scroll-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 52, 234, 0.2);
  background: rgba(255, 255, 255, 1);
}

.quick-menu-scroll-top svg {
  transition: transform 0.3s ease;
}

.quick-menu-scroll-top:hover svg {
  transform: translateY(-2px);
}

/* Mobile: Hide floating menu */
@media (max-width: 768px) {
  .floating-quick-menu {
    display: none;
  }
}

/* Tablet: Adjust position */
@media (min-width: 769px) and (max-width: 1024px) {
  .floating-quick-menu {
    right: 10px;
  }
  
  .quick-menu-item,
  .quick-menu-phone,
  .quick-menu-scroll-top {
    width: 50px;
    height: 50px;
  }
  
  .quick-menu-icon {
    width: 24px;
    height: 24px;
  }
  
  .phone-number {
    font-size: 10px;
  }
}

/* Large screens: Better positioning */
@media (min-width: 1440px) {
  .floating-quick-menu {
    right: calc((100vw - 1280px) / 2 - 100px);
  }
}

/* Extra large screens */
@media (min-width: 1920px) {
  .floating-quick-menu {
    right: calc((100vw - 1280px) / 2 - 120px);
  }
}

/* Print: Hide */
@media print {
  .floating-quick-menu {
    display: none !important;
  }
}
