/* ========================================
   JAI GAMES LOGO COMPONENT
   Consistent branding across all pages
   ======================================== */

/* Logo Wrapper */
.jai-logo-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  animation: fadeInDown 0.6s ease-out;
}

/* Logo Link Container */
.jai-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jai-logo-link:hover {
  transform: translateY(-3px);
}

.jai-logo-link:active {
  transform: translateY(-1px);
}

/* Logo Text - Exact Homepage Match */
.jai-logo {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Exact gradient from homepage */
  background: linear-gradient(135deg, #e91e63 0%, #9b59b6 50%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Enhanced glow effect */
  text-shadow: 0 0 30px rgba(233, 30, 99, 0.3);
  filter: brightness(1);

  /* Breathing animation */
  animation: logoGlow 3s ease-in-out infinite;

  /* Smooth rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Prevent text selection */
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

/* Glow Animation */
@keyframes logoGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* Fade In Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Enhancement */
.jai-logo-link:hover .jai-logo {
  /* Intensify glow on hover */
  text-shadow: 0 0 40px rgba(233, 30, 99, 0.5),
               0 0 20px rgba(155, 89, 182, 0.3);
  filter: brightness(1.25);

  /* Slightly faster animation on hover */
  animation: logoGlow 2s ease-in-out infinite;
}

/* Responsive Sizing */
@media (max-width: 768px) {
  .jai-logo {
    font-size: 26px;
  }
  .jai-logo-wrapper {
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .jai-logo {
    font-size: 22px;
  }
  .jai-logo-wrapper {
    top: 12px;
    left: 12px;
  }
}

/* Accessibility - Focus States */
.jai-logo-link:focus {
  outline: 3px solid rgba(233, 30, 99, 0.6);
  outline-offset: 6px;
  border-radius: 10px;
}

.jai-logo-link:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .jai-logo {
    animation: none;
    filter: brightness(1);
  }

  .jai-logo-link:hover .jai-logo {
    animation: none;
  }

  .jai-logo-link {
    transition: none;
  }

  .jai-logo-wrapper {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .jai-logo {
    background: #e91e63;
    -webkit-text-fill-color: #e91e63;
    color: #e91e63;
    filter: none;
    animation: none;
  }
}

/* Brand Colors Reference */
:root {
  --jai-pink: #e91e63;
  --jai-purple: #9b59b6;
  --jai-blue: #3498db;
  --jai-gradient: linear-gradient(135deg, #e91e63 0%, #9b59b6 50%, #3498db 100%);
}
