/* ============================================
   MowXml - Correction Flèches Navigation
   Style PC appliqué aux modes Mobile/Tablette
   Version: 1.0.1 - Janvier 2026
   ============================================ */

/* ========================================
   FLECHES DE NAVIGATION - STYLE UNIFIE
   Applique le même style sur tous les écrans
   ======================================== */

/* Reset des styles mobile/tablette existants */
@media only screen and (max-width: 1024px) {
  
  /* Container des flèches - Style identique au PC */
  .lmpixels-arrows-nav {
    position: fixed !important;
    right: 15px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 9998 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    list-style: none !important;
  }

  /* Boutons des flèches - Style circulaire comme PC */
  .lmpixels-arrows-nav div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    background: var(--glass-bg, rgba(8, 8, 12, 0.9)) !important;
    backdrop-filter: blur(15px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
    border: 2px solid var(--accent-primary, #e84152) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--accent-primary, #e84152) !important;
    font-size: 18px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 
      0 0 15px rgba(232, 65, 82, 0.4),
      inset 0 0 15px rgba(232, 65, 82, 0.1) !important;
  }

  /* Cercle externe animé - comme PC */
  .lmpixels-arrows-nav div::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--accent-secondary, #00d4ff);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateRingMobile 8s linear infinite;
    pointer-events: none;
  }

  @keyframes rotateRingMobile {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* Effet de pulsation - comme PC */
  .lmpixels-arrows-nav div::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-secondary, #00d4ff);
    border-radius: 50%;
    opacity: 0;
    animation: cyberPulseMobile 2s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes cyberPulseMobile {
    0%, 100% { 
      transform: translate(-50%, -50%) scale(1); 
      opacity: 0;
    }
    50% { 
      transform: translate(-50%, -50%) scale(1.5); 
      opacity: 0.5;
    }
  }

  /* État hover des flèches */
  .lmpixels-arrows-nav div:hover {
    color: #ffffff !important;
    background: var(--accent-primary, #e84152) !important;
    border-color: var(--accent-secondary, #00d4ff) !important;
    transform: scale(1.15) !important;
    box-shadow: 
      0 0 30px rgba(232, 65, 82, 0.5),
      0 0 60px rgba(232, 65, 82, 0.3),
      0 0 20px rgba(0, 212, 255, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
  }

  .lmpixels-arrows-nav div:hover::before {
    opacity: 0.8;
    animation: rotateRingMobile 2s linear infinite;
    border-color: #fff;
  }

  /* Icônes des flèches */
  .lmpixels-arrows-nav div i {
    font-size: 18px !important;
    line-height: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Animation directionnelle - Flèche droite */
  .lmpixels-arrow-right:hover i {
    animation: cyberArrowRightMobile 0.5s ease-in-out infinite;
  }

  @keyframes cyberArrowRightMobile {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }

  /* Animation directionnelle - Flèche gauche */
  .lmpixels-arrow-left:hover i {
    animation: cyberArrowLeftMobile 0.5s ease-in-out infinite;
  }

  @keyframes cyberArrowLeftMobile {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
  }

  /* État actif (clic) */
  .lmpixels-arrows-nav div:active {
    transform: scale(0.9) !important;
    box-shadow: 
      0 0 50px rgba(232, 65, 82, 0.5),
      inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
  }
}

/* ========================================
   TABLETTE (768px - 1024px)
   Taille légèrement plus grande
   ======================================== */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .lmpixels-arrows-nav {
    right: 20px !important;
    gap: 15px !important;
  }

  .lmpixels-arrows-nav div {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    font-size: 20px !important;
  }

  .lmpixels-arrows-nav div i {
    font-size: 20px !important;
  }
}

/* ========================================
   MOBILE PETIT (< 480px)
   Taille réduite et position ajustée
   ======================================== */
@media only screen and (max-width: 480px) {
  .lmpixels-arrows-nav {
    right: 10px !important;
    gap: 10px !important;
  }

  .lmpixels-arrows-nav div {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    font-size: 16px !important;
    border-width: 1.5px !important;
  }

  .lmpixels-arrows-nav div i {
    font-size: 16px !important;
  }

  .lmpixels-arrows-nav div::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
  }
}

/* ========================================
   THEME CLAIR - Adaptations
   ======================================== */
[data-theme="light"] .lmpixels-arrows-nav div {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--accent-primary, #d63031) !important;
  color: var(--accent-primary, #d63031) !important;
  box-shadow: 
    0 4px 15px rgba(214, 48, 49, 0.2),
    0 0 10px rgba(214, 48, 49, 0.1) !important;
}

[data-theme="light"] .lmpixels-arrows-nav div::before {
  border-color: var(--accent-secondary, #0984e3);
  opacity: 0.2;
}

[data-theme="light"] .lmpixels-arrows-nav div::after {
  border-color: var(--accent-secondary, #0984e3);
}

[data-theme="light"] .lmpixels-arrows-nav div:hover {
  background: var(--accent-primary, #d63031) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary, #d63031) !important;
  box-shadow: 
    0 8px 25px rgba(214, 48, 49, 0.4),
    0 0 20px rgba(214, 48, 49, 0.3) !important;
}

[data-theme="light"] .lmpixels-arrows-nav div:hover::before {
  border-color: var(--accent-primary, #d63031);
  opacity: 0.5;
}

/* ========================================
   ORIENTATION PAYSAGE MOBILE
   Position ajustée pour ne pas gêner
   ======================================== */
@media only screen and (max-width: 1024px) and (orientation: landscape) {
  .lmpixels-arrows-nav {
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .lmpixels-arrows-nav div {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 14px !important;
  }

  .lmpixels-arrows-nav div i {
    font-size: 14px !important;
  }
}

/* ========================================
   ANIMATION AU CHARGEMENT
   Apparition progressive des flèches
   ======================================== */
@media only screen and (max-width: 1024px) {
  .lmpixels-arrows-nav {
    animation: fadeInArrows 0.5s ease-out 0.3s both;
  }

  @keyframes fadeInArrows {
    from {
      opacity: 0;
      transform: translateY(-50%) translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }
  }

  .lmpixels-arrows-nav div {
    animation: scaleInArrow 0.4s ease-out both;
  }

  .lmpixels-arrow-right {
    animation-delay: 0.4s;
  }

  .lmpixels-arrow-left {
    animation-delay: 0.5s;
  }

  @keyframes scaleInArrow {
    from {
      opacity: 0;
      transform: scale(0.5);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}