/**
 * Footer Mobile - Enhanced Responsive Design
 * King Size Game Theme
 */

/* ==========================================================================
   FOOTER MOBILE IMPROVEMENTS
   ========================================================================== */

/* Base Footer Adjustments for Mobile */
@media (max-width: 768px) {

  /* Footer Slogan Section */
  .footer-slogan {
    padding: var(--space-xl) var(--space-md);
  }

  .footer-slogan-text {
    font-size: clamp(24px, 7vw, 32px);
    letter-spacing: 1px;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    padding: 0 var(--space-sm);
  }

  /* Site Info Section */
  .site-info {
    padding: var(--space-xl) var(--space-md);
  }

  .site-info-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    align-items: stretch;
  }

  /* Footer Branding */
  .footer-branding {
    order: 1;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  }

  .footer-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
  }

  .footer-text a {
    display: inline-block;
    color: var(--cyan-neon);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .footer-text a:hover {
    color: var(--magenta-neon);
    text-shadow: 0 0 8px currentColor;
  }

  .footer-address {
    font-size: 0.75rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin: var(--space-sm) 0;
  }

  .footer-credit {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-sm);
  }

  .loopus-link {
    color: var(--cyan-neon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
  }

  .loopus-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan-neon);
    transition: width 0.3s ease;
  }

  .loopus-link:hover::after {
    width: 100%;
  }

  /* Footer Navigation - Enhanced Mobile Menu */
  .footer-nav {
    order: 2;
    width: 100%;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-menu li {
    width: 100%;
    margin: 0;
    list-style: none;
  }

  .footer-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(0, 240, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 8px;
    margin-bottom: var(--space-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  /* Left accent bar */
  .footer-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--cyan-neon);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--cyan-neon);
  }

  /* Gradient overlay on hover */
  .footer-menu a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(0, 240, 255, 0.08),
      transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .footer-menu a:hover,
  .footer-menu a:focus {
    color: #FFFFFF;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateX(4px);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 0 16px rgba(0, 240, 255, 0.15);
  }

  .footer-menu a:hover::before,
  .footer-menu a:focus::before {
    transform: scaleY(1);
  }

  .footer-menu a:hover::after,
  .footer-menu a:focus::after {
    opacity: 1;
  }

  .footer-menu a:active {
    transform: translateX(2px) scale(0.98);
  }

  /* Current menu item */
  .footer-menu .current-menu-item a {
    color: var(--cyan-neon);
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    font-weight: 700;
  }

  .footer-menu .current-menu-item a::before {
    transform: scaleY(1);
    background: var(--magenta-neon);
    box-shadow: 0 0 12px var(--magenta-neon);
  }

  /* Add icon to menu items (optional) */
  .footer-menu a[href*="contact"]::before {
    content: '✉';
    margin-right: 8px;
    font-size: 1.1em;
    opacity: 0.7;
  }

  .footer-menu a[href*="activite"]::before,
  .footer-menu a[href*="activities"]::before {
    content: '🎮';
    margin-right: 8px;
    font-size: 1.1em;
    opacity: 0.7;
  }

  .footer-menu a[href*="evenement"]::before,
  .footer-menu a[href*="event"]::before {
    content: '🎯';
    margin-right: 8px;
    font-size: 1.1em;
    opacity: 0.7;
  }

  /* Footer Social */
  .footer-social {
    order: 3;
    width: 100%;
    padding-top: var(--space-lg);
  }

  .footer-social .social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin: 0;
  }

  .footer-social .social-links a.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: rgba(0, 240, 255, 0.05);
    border: 2px solid var(--cyan-neon);
    border-radius: 12px;
    color: var(--cyan-neon);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  /* Glow effect behind icon */
  .footer-social .social-links a.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle,
      rgba(0, 240, 255, 0.15),
      transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .footer-social .social-links a.social-link svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }

  .footer-social .social-links a.social-link:hover,
  .footer-social .social-links a.social-link:focus {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--magenta-neon);
    color: var(--magenta-neon);
    transform: translateY(-6px) scale(1.05);
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(0, 240, 255, 0.4),
      0 0 60px rgba(255, 0, 255, 0.2);
  }

  .footer-social .social-links a.social-link:hover::before,
  .footer-social .social-links a.social-link:focus::before {
    opacity: 1;
  }

  .footer-social .social-links a.social-link:hover svg,
  .footer-social .social-links a.social-link:focus svg {
    transform: scale(1.15) rotate(5deg);
  }

  .footer-social .social-links a.social-link:active {
    transform: translateY(-3px) scale(1);
  }

  /* Add labels below icons for better UX */
  .footer-social .social-links a.social-link[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .footer-social .social-links a.social-link:hover::after {
    opacity: 1;
  }

  /* Footer Grid Overlay - Reduced opacity on mobile */
  .footer-grid-overlay {
    opacity: 0.15;
  }
}

/* ==========================================================================
   EXTRA SMALL MOBILE (≤480px)
   ========================================================================== */

@media (max-width: 480px) {

  .footer-slogan {
    padding: var(--space-lg) var(--space-sm);
  }

  .footer-slogan-text {
    font-size: clamp(20px, 6vw, 24px);
    letter-spacing: 0.5px;
  }

  .site-info {
    padding: var(--space-lg) var(--space-sm);
  }

  .site-info-inner {
    gap: var(--space-lg);
  }

  .footer-menu a {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
  }

  .footer-social .social-links {
    gap: var(--space-md);
  }

  .footer-social .social-links a.social-link {
    width: 48px;
    height: 48px;
  }

  .footer-social .social-links a.social-link svg {
    width: 22px;
    height: 22px;
  }

  .footer-text {
    font-size: 0.75rem;
  }

  .footer-address {
    font-size: 0.6875rem;
  }

  .footer-credit {
    font-size: 0.625rem;
  }
}

/* ==========================================================================
   TABLET (769px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

  .footer-slogan-text {
    font-size: clamp(36px, 5vw, 48px);
    letter-spacing: 2px;
  }

  .site-info-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
  }

  .footer-branding {
    flex: 1 1 100%;
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  }

  .footer-nav {
    flex: 0 0 auto;
  }

  .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .footer-menu a {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
  }

  .footer-social {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {

  /* Focus styles */
  .footer-menu a:focus-visible,
  .footer-social .social-links a:focus-visible {
    outline: 2px solid var(--cyan-neon);
    outline-offset: 2px;
  }

  /* High contrast mode */
  @media (prefers-contrast: high) {
    .footer-menu a {
      border-width: 2px;
    }

    .footer-social .social-links a.social-link {
      border-width: 3px;
    }
  }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce) {
    .footer-menu a,
    .footer-social .social-links a.social-link {
      transition-duration: 0.01ms !important;
    }

    .footer-menu a::before,
    .footer-menu a::after {
      transition: none !important;
    }
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Add spacing between footer sections on mobile */
@media (max-width: 768px) {
  .footer-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 240, 255, 0.3) 50%,
      transparent
    );
    margin: var(--space-lg) 0;
  }

  /* Optional: Add before pseudo-element for decorative touch */
  .footer-nav::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--cyan-neon),
      transparent
    );
    margin: 0 auto var(--space-lg);
    box-shadow: 0 0 8px var(--cyan-neon);
  }

  .footer-social::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--magenta-neon),
      transparent
    );
    margin: 0 auto var(--space-lg);
    box-shadow: 0 0 8px var(--magenta-neon);
  }
}

/* ==========================================================================
   DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  /* Already optimized for dark, but can add overrides if needed */
}

@media (max-width: 768px) and (prefers-color-scheme: light) {
  /* Light mode adjustments if ever needed */
  .footer-menu a {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
  }
}
