/**
 * Elementor Popup Menu Widget Styles
 * Scoped under .elementor-popup-menu-wrapper
 */

.elementor-popup-menu-wrapper {
  display: inline-block;
  font-family: inherit;
  box-sizing: border-box;
}

.elementor-popup-menu-wrapper.epm-font-sans {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.elementor-popup-menu-wrapper.epm-font-editorial {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

.elementor-popup-menu-wrapper.epm-font-geometric {
  font-family: "Futura", "Trebuchet MS", "Century Gothic", sans-serif;
  letter-spacing: 0.04em;
}

.elementor-popup-menu-wrapper.epm-font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.elementor-popup-menu-wrapper *,
.elementor-popup-menu-wrapper *::before,
.elementor-popup-menu-wrapper *::after {
  box-sizing: border-box;
}

/* ==========================================================
   TRIGGER BUTTONS
   ========================================================== */
.epm-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.epm-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.epm-trigger-btn:active {
  transform: translateY(0);
}

/* Floating positions */
.epm-trigger-btn.epm-floating {
  position: fixed;
  z-index: 9998;
}

.epm-trigger-btn.epm-floating-top-right {
  top: 24px;
  right: 24px;
}

.epm-trigger-btn.epm-floating-top-left {
  top: 24px;
  left: 24px;
}

.epm-trigger-btn.epm-floating-bottom-right {
  bottom: 28px;
  right: 28px;
  border-radius: 9999px;
  padding: 14px 24px;
}

/* Hamburger Icon */
.epm-hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}

.epm-hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================
   OVERLAY & BACKDROP
   ========================================================== */
.epm-popup-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
  display: flex;
}

.epm-popup-overlay.epm-active {
  visibility: visible;
  opacity: 1;
}

.epm-overlay-backdrop {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.epm-popup-overlay.epm-has-blur .epm-overlay-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================
   PANEL CONTAINER & ANIMATIONS
   ========================================================== */
.epm-panel-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Drawer Right */
.elementor-popup-menu-wrapper[data-layout="drawer-right"] .epm-popup-overlay {
  justify-content: flex-end;
}
.elementor-popup-menu-wrapper[data-layout="drawer-right"] .epm-panel-container {
  width: 100%;
  max-width: 440px;
  height: 100%;
  transform: translateX(100%);
}
.elementor-popup-menu-wrapper[data-layout="drawer-right"] .epm-popup-overlay.epm-active .epm-panel-container {
  transform: translateX(0);
}

/* Drawer Left */
.elementor-popup-menu-wrapper[data-layout="drawer-left"] .epm-popup-overlay {
  justify-content: flex-start;
}
.elementor-popup-menu-wrapper[data-layout="drawer-left"] .epm-panel-container {
  width: 100%;
  max-width: 440px;
  height: 100%;
  transform: translateX(-100%);
}
.elementor-popup-menu-wrapper[data-layout="drawer-left"] .epm-popup-overlay.epm-active .epm-panel-container {
  transform: translateX(0);
}

/* Fullscreen Overlay */
.elementor-popup-menu-wrapper[data-layout="fullscreen"] .epm-popup-overlay {
  justify-content: center;
  align-items: center;
}
.elementor-popup-menu-wrapper[data-layout="fullscreen"] .epm-panel-container {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  transform: scale(0.96);
  opacity: 0;
}
.elementor-popup-menu-wrapper[data-layout="fullscreen"] .epm-popup-overlay.epm-active .epm-panel-container {
  transform: scale(1);
  opacity: 1;
}

/* Centered Modal */
.elementor-popup-menu-wrapper[data-layout="modal-center"] .epm-popup-overlay {
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.elementor-popup-menu-wrapper[data-layout="modal-center"] .epm-panel-container {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 16px;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
}
.elementor-popup-menu-wrapper[data-layout="modal-center"] .epm-popup-overlay.epm-active .epm-panel-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Top Dropdown */
.elementor-popup-menu-wrapper[data-layout="dropdown-top"] .epm-popup-overlay {
  justify-content: center;
  align-items: flex-start;
}
.elementor-popup-menu-wrapper[data-layout="dropdown-top"] .epm-panel-container {
  width: 100%;
  max-height: 80vh;
  transform: translateY(-100%);
}
.elementor-popup-menu-wrapper[data-layout="dropdown-top"] .epm-popup-overlay.epm-active .epm-panel-container {
  transform: translateY(0);
}

/* ==========================================================
   PANEL INNER CONTENTS
   ========================================================== */
.epm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.epm-brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.epm-brand-tagline {
  display: block;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 3px;
}

.epm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Close Button Base */
.epm-close-btn {
  color: inherit;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  outline: none;
  font-family: inherit;
}

/* Close Button Background Variants */
.epm-close-btn.epm-close-subtle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.epm-close-btn.epm-close-subtle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg) scale(1.05);
}

.epm-close-btn.epm-close-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}
.epm-close-btn.epm-close-outline:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.epm-close-btn.epm-close-solid {
  background: #ffffff;
  color: #111827 !important;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.epm-close-btn.epm-close-solid:hover {
  transform: scale(1.08) rotate(90deg);
}

.epm-close-btn.epm-close-transparent {
  background: transparent;
  border: none;
  opacity: 0.75;
}
.epm-close-btn.epm-close-transparent:hover {
  opacity: 1;
  transform: scale(1.12);
}

.epm-close-btn.epm-close-type-text-close {
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.epm-close-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.epm-close-btn i,
.epm-close-btn svg {
  display: inline-block;
  line-height: 1;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.epm-close-btn svg {
  width: 18px;
  height: 18px;
}

.epm-close-btn i {
  font-size: 18px;
}

.epm-close-btn .dashicons {
  width: auto;
  height: auto;
  font-size: 18px;
}

/* Navigation List */
.epm-navigation-area {
  padding: 20px 32px;
  flex: 1;
}

.epm-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epm-nav-item {
  position: relative;
}

.epm-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
}

.epm-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 18px;
}

.epm-link-text {
  flex: 1;
}

.epm-item-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  color: #ffffff;
  margin-right: 12px;
  letter-spacing: 0.02em;
}

.epm-link-arrow {
  opacity: 0.4;
  font-size: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.epm-nav-link:hover .epm-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Social Media Channels Below Menu */
.epm-below-menu-socials {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Footer elements */
.epm-panel-footer {
  padding: 24px 32px 32px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.epm-cta-btn {
  display: block;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.epm-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Social Media Channels Container */
.epm-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.epm-header-actions .epm-social-links {
  margin: 0;
  gap: 8px;
}

.epm-panel-footer .epm-social-links {
  justify-content: center;
  margin-top: 16px;
}

.epm-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Social Style: Circle */
.epm-social-circle .epm-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.epm-social-circle .epm-social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Social Style: Pill */
.epm-social-pill .epm-social-icon {
  border-radius: 9999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 6px;
}
.epm-social-pill .epm-social-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.epm-soc-label {
  font-size: 11px;
  font-weight: 600;
}

/* Social Style: Minimal */
.epm-social-minimal .epm-social-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  opacity: 0.75;
}
.epm-social-minimal .epm-social-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Social Style: Glow */
.epm-social-glow .epm-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.epm-social-glow .epm-social-icon:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Platform Accent Colors on Hover */
.epm-soc-instagram:hover { border-color: #E1306C !important; color: #E1306C !important; }
.epm-soc-telegram:hover { border-color: #229ED9 !important; color: #229ED9 !important; }
.epm-soc-whatsapp:hover { border-color: #25D366 !important; color: #25D366 !important; }
.epm-soc-youtube:hover { border-color: #FF0000 !important; color: #FF0000 !important; }
.epm-soc-twitter:hover { border-color: #1DA1F2 !important; color: #1DA1F2 !important; }
.epm-soc-linkedin:hover { border-color: #0A66C2 !important; color: #0A66C2 !important; }
.epm-soc-facebook:hover { border-color: #1877F2 !important; color: #1877F2 !important; }
.epm-soc-tiktok:hover { border-color: #EE1D52 !important; color: #EE1D52 !important; }
.epm-soc-github:hover { border-color: #ffffff !important; color: #ffffff !important; }

.epm-copyright {
  text-align: center;
  font-size: 11px;
  opacity: 0.5;
  margin: 16px 0 0 0;
  line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .epm-panel-container {
    max-width: 100% !important;
  }
  .epm-panel-header,
  .epm-navigation-area,
  .epm-panel-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
