/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* Welcome Modal Styling */
#welcomeModal .modal-content {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Add grid background to modal */
#welcomeModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to right, rgba(255,255,255,.055) 0 1px, transparent 1px 64px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* Add glow effects to modal */
#welcomeModal .modal-content::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: modalGlow 3s ease-in-out infinite alternate;
}

@keyframes modalGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Ensure content is above effects */
#welcomeModal .modal-header,
#welcomeModal .modal-body {
  position: relative;
  z-index: 2;
}

#welcomeModal .modal-header {
  border-bottom: 1px solid var(--bs-border-color);
}

#welcomeModal .modal-title {
  color: #ffffff;
  font-weight: 600;
}

#welcomeModal .btn-close {
  filter: invert(1);
}

#welcomeModal .text-muted {
  color: #a3a3a3 !important;
}

/* Enhanced button styling */
#welcomeModal .btn-primary {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#welcomeModal .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

#welcomeModal .btn-primary:hover::before {
  left: 100%;
}

#welcomeModal .btn-primary:hover {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--cl-accent-rgb), 0.4);
}

#welcomeModal .btn-outline-primary {
  color: var(--cl-accent);
  border-color: var(--cl-accent);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#welcomeModal .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--cl-accent);
  transition: width 0.3s ease;
  z-index: -1;
}

#welcomeModal .btn-outline-primary:hover::before {
  width: 100%;
}

#welcomeModal .btn-outline-primary:hover {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(var(--cl-accent-rgb), 0.3);
}

#welcomeModal .fa-store {
  color: var(--cl-accent);
  text-shadow: 0 0 10px rgba(var(--cl-accent-rgb), 0.5);
}

#welcomeModal .fab.fa-discord {
  color: #5865f2;
}

/* Add subtle animation to the store icon */
#welcomeModal .fa-store {
  animation: iconPulse 2s ease-in-out infinite;
}

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

/* Premium Custom Cursor */
* {
  cursor: none !important;
}

body {
  cursor: none !important;
}

/* Main cursor */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.08s ease-out;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Cursor outer ring */
.cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.12s ease-out;
}

/* Cursor hover effects */
.cursor.hover {
  transform: scale(2);
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cursor-outer.hover {
  transform: scale(1.5);
  border-color: rgba(239, 68, 68, 0.6);
  border-width: 3px;
}

/* Cursor click effects */
.cursor.click {
  transform: scale(0.5);
  background: #10b981;
}

.cursor-outer.click {
  transform: scale(0.8);
  border-color: rgba(16, 185, 129, 0.8);
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }
  
  .cursor,
  .cursor-outer {
    display: none !important;
  }
}
