/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* MEGA DISCOUNT CTA ANIMATIONS */
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(12deg); }
  100% { transform: translateX(200%) skewX(12deg); }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 
                0 0 40px rgba(34, 197, 94, 0.3), 
                0 0 60px rgba(34, 197, 94, 0.1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 
                0 0 60px rgba(34, 197, 94, 0.5), 
                0 0 90px rgba(34, 197, 94, 0.3);
  }
}

@keyframes pulse-text {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(34, 197, 94, 0.6),
                 0 0 30px rgba(34, 197, 94, 0.4);
  }
  50% { 
    text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(34, 197, 94, 0.8),
                 0 0 40px rgba(34, 197, 94, 0.6);
  }
}

@keyframes pulse-border {
  0%, 100% { 
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  50% { 
    border-color: rgba(147, 51, 234, 1);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.8);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pulse-text {
  animation: pulse-text 1.5s ease-in-out infinite;
}

.animate-pulse-border {
  animation: pulse-border 1.5s ease-in-out infinite;
}

.mega-discount-banner {
  background: linear-gradient(45deg, #059669, #10b981, #34d399, #10b981, #059669);
  background-size: 300% 300%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mega-cta-button {
  background: linear-gradient(45deg, #7c3aed, #a855f7, #c084fc, #a855f7, #7c3aed);
  background-size: 300% 300%;
  animation: gradient-shift 2s ease infinite;
}

.mega-cta-button:hover {
  transform: scale(1.1) rotate(1deg);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.5);
}

/* LAUNCH BANNER */
.launch-banner {
  background: transparent;
  padding: 1rem 1rem !important; /* Balanced padding top and bottom */
}

.launch-banner .text-white,
.launch-text-animated {
  animation: launch-text-animate 3s ease-in-out infinite !important;
  display: inline-block !important;
}

@keyframes launch-text-animate {
  0%, 100% {
    text-shadow: 
      0 0 8px rgba(255, 255, 255, 0.6),
      0 0 15px rgba(204, 71, 87, 0.4);
    transform: scale(1) translateY(0);
  }
  50% {
    text-shadow: 
      0 0 12px rgba(255, 255, 255, 0.9),
      0 0 25px rgba(204, 71, 87, 0.7),
      0 0 35px rgba(255, 90, 110, 0.5);
    transform: scale(1.03) translateY(-1px);
  }
}

/* DISCORD BUTTONS */
.discord-cta-btn {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%) !important;
  color: #f5f5dc !important;
  border: 2px solid #5865f2 !important;
  border-radius: 0 !important;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(88, 101, 242, 0.25),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    inset -2px -2px 4px rgba(0, 0, 0, 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  /* Grunge texture */
  background-image: 
    linear-gradient(45deg, transparent 25%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.1) 50%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(88, 101, 242, 0.2) 2px, transparent 2px),
    linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%) !important;
  background-size: 16px 16px, 40px 40px, 100% 100% !important;
}

.discord-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(114, 137, 218, 0.4), transparent);
  transition: left 0.6s ease;
}

.discord-cta-btn:hover {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 50%, #4752c4 100%) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(88, 101, 242, 0.35),
    inset 3px 3px 6px rgba(255, 255, 255, 0.2),
    inset -3px -3px 6px rgba(0, 0, 0, 0.6) !important;
  border-color: #7289da !important;
}

.discord-cta-btn:hover::before {
  left: 100%;
}

.discord-cta-btn:active {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(88, 101, 242, 0.25),
    inset 1px 1px 3px rgba(255, 255, 255, 0.1),
    inset -1px -1px 3px rgba(0, 0, 0, 0.4) !important;
}

.discord-text-link {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  font-weight: 500;
}

.discord-text-link:hover {
  text-shadow: 0 0 12px rgba(196, 181, 253, 0.8), 0 0 24px rgba(167, 139, 250, 0.6);
  transform: translateY(-2px);
}

a.discord-btn-hero,
.discord-btn-hero,
a.discord-btn-hero.px-10,
.discord-btn-hero.px-10,
a.discord-btn-hero.px-10.py-4,
.discord-btn-hero.px-10.py-4 {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%) !important;
  border: 2px solid rgba(88, 101, 242, 0.8) !important;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(88, 101, 242, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
  display: inline-flex !important;
  color: white !important;
  padding: 1rem 2.5rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  align-items: center !important;
  gap: 0.75rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.discord-btn-hero::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.6s ease;
}

.discord-btn-hero:hover {
  background: linear-gradient(135deg, #6b75f5 0%, #5865f2 50%, #4752c4 100%) !important;
  border-color: rgba(114, 137, 218, 1) !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(88, 101, 242, 0.4),
    0 0 30px rgba(88, 101, 242, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.discord-btn-hero:hover::before {
  left: 100%;
}

.discord-btn-hero:active {
  transform: translateY(-2px) scale(1.05) !important;
}

.discord-icon-container {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: 2px solid #5865f2;
  border-radius: 0;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(88, 101, 242, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  /* Grunge texture */
  background-image: 
    linear-gradient(45deg, transparent 25%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.1) 50%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(88, 101, 242, 0.2) 2px, transparent 2px),
    linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  background-size: 16px 16px, 40px 40px, 100% 100%;
}

.discord-cta-panel {
  border: 2px solid #5865f2;
  border-radius: 0;
  background: linear-gradient(135deg, 
    rgba(25, 20, 20, 0.85) 0%, 
    rgba(30, 25, 35, 0.85) 50%, 
    rgba(25, 20, 20, 0.85) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(88, 101, 242, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  /* Grunge texture */
  background-image: 
    linear-gradient(45deg, transparent 25%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.1) 50%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(88, 101, 242, 0.15) 2px, transparent 2px);
  background-size: 16px 16px, 40px 40px;
}

.discord-cta-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.2), transparent);
  transition: left 0.6s ease;
}

.discord-cta-panel:hover {
  border-color: #7289da;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(88, 101, 242, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.discord-cta-panel:hover::before {
  left: 100%;
}

/* VIDEO GRID */
.video-grid {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.video-grid-item {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.video-grid-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.video-square,
div.video-square,
.video-grid-item .video-square {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: 2px solid #cc4757 !important;
  border-color: #cc4757 !important;
  background: #0a0a0a !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(204, 71, 87, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
}

.video-square video,
.video-square video.w-full,
.video-square video.h-full,
.video-grid-item .video-square video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
}

.video-title-container {
  text-align: center;
  width: 100%;
  padding: 0 8px;
  transition: all 0.3s ease;
}

.video-grid-item:hover .video-square {
  border-color: #ff5a6e !important;
  border-width: 2px !important;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(255, 90, 110, 0.2),
    0 0 18px rgba(204, 71, 87, 0.15),
    inset 0 0 30px rgba(255, 90, 110, 0.08);
}

.video-grid-item:hover .video-title {
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.9),
    0 0 8px rgba(204, 71, 87, 0.35),
    0 0 12px rgba(255, 90, 110, 0.2);
  transform: scale(1.05);
}

.video-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.9),
    0 0 8px rgba(204, 71, 87, 0.3);
  text-align: center;
  font-family: 'Aboreto', serif;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
}

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.lightbox-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Aboreto', serif;
  letter-spacing: 0.05em;
}

.lightbox-video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Mobile touch indicator */
@media (max-width: 768px) {
  .video-grid-overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
  }
  
  .lightbox-title {
    font-size: 1.2rem;
    margin-top: 50px;
  }
}

/* CART QUANTITY CONTROLS */
.quantity-controls {
  transition: all 0.3s ease;
}

.quantity-controls input[type="number"] {
  /* Hide spinner buttons in WebKit browsers */
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-controls input[type="number"]::-webkit-outer-spin-button,
.quantity-controls input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Enhanced cart button styling */
.quantity-controls .nav-link-enhanced {
  position: relative;
  min-width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make quantity input match the theme */
.quantity-controls .gaming-input {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(156, 163, 175, 0.3);
  border-radius: 0;
  height: 48px;
}

.quantity-controls .gaming-input:focus {
  border-color: var(--gaming-red);
  box-shadow: 
    0 0 0 1px var(--gaming-red),
    var(--gaming-glow);
}

/* CHECKOUT FLOAT BUTTON */
.checkout-float-btn {
  position: relative;
  background: linear-gradient(135deg, #dc2626, #ef4444, #dc2626);
  background-size: 200% 200%;
  animation: checkout-pulse 2s ease-in-out infinite;
}

.checkout-float-btn:hover {
  animation: checkout-float 0.6s ease-in-out infinite alternate;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.checkout-glow {
  display: inline-block;
  animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes checkout-pulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes checkout-float {
  0% {
    transform: translateY(0px) scale(1.05);
  }
  100% {
    transform: translateY(-2px) scale(1.08);
  }
}

@keyframes subtle-glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(220, 38, 38, 0.3);
  }
}
