/* GGPoker Clone Custom Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e5e5e5;
}

/* Enhanced Animations */
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes card-hover {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.02); }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff, #e5e5e5, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

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

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  color: #000000;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
  background: #000000;
  color: #ffffff;
}

/* Card Enhancements */
.promotion-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promotion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #e5e5e5, #ffffff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.promotion-card:hover::before {
  transform: scaleX(1);
}

.promotion-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* Ambassador Card */
.ambassador-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.ambassador-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffffff, #e5e5e5, #ffffff, #e5e5e5);
  z-index: -1;
  border-radius: inherit;
  animation: gradient-border 3s linear infinite;
}

@keyframes gradient-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feature Icons */
.feature-icon {
  transition: all 0.3s ease;
  position: relative;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  animation: glow 2s ease-in-out infinite;
}

/* Poker Card Symbols Animation */
.poker-symbol {
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
  pointer-events: none;
}

.poker-symbol:nth-child(2) {
  animation-delay: -2s;
}

.poker-symbol:nth-child(3) {
  animation-delay: -4s;
}

.poker-symbol:nth-child(4) {
  animation-delay: -6s;
}

/* Header Enhancements */
.header-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

/* Player Count Badge */
.player-badge {
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse-white 2s ease-in-out infinite;
}

@keyframes pulse-white {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* Stats Counter Animation */
.stat-counter {
  transition: all 0.3s ease;
}

.stat-counter:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px currentColor;
}

/* WSOP Section Special Effects */
.wsop-section {
  background: linear-gradient(135deg, #ffffff, #e5e5e5, #ffffff);
  color: #000000;
  position: relative;
  overflow: hidden;
}

.wsop-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="crown" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><text x="30" y="30" text-anchor="middle" dominant-baseline="middle" font-size="30" fill="rgba(0,0,0,0.05)">👑</text></pattern></defs><rect width="60" height="60" fill="url(%23crown)"/></svg>');
  opacity: 0.1;
}

/* Footer Enhancements */
.footer-link {
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .promotion-card {
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    transform: scale(0.9);
  }
  
  .stat-counter {
    font-size: 1.5rem;
  }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: loading-shimmer 1.5s ease-in-out infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Design Enhancements */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container-xl {
    max-width: 1280px;
  }
}

/* Custom Focus States for Accessibility */
button:focus, a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* One Page Navigation Enhancements */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.text-white-active::after {
  width: 100%;
}

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

/* Scroll Progress Bar */
#scroll-progress {
  background: linear-gradient(90deg, #ffffff, #e5e5e5, #ffffff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Floating Navigation Dots */
#floating-nav button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#floating-nav button:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

#floating-nav button.bg-white {
  background: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Section Reveal Animation */
.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Mobile Menu */
.mobile-menu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Smooth Section Transitions */
section {
  scroll-margin-top: 80px; /* Account for fixed header */
}

/* Enhanced Header Blur */
header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

/* Staggered Animation for Cards */
.stagger-animation {
  animation-delay: calc(var(--index) * 0.1s);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.5), transparent);
  margin: 0 auto;
  width: 80%;
}

/* Enhanced Carousel Dots */
.carousel-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-dot.bg-red-500 {
  border-color: #dc2626;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
  transform: scale(1.2);
}

/* Intersection Observer Animations */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.8s ease-out forwards;
}

/* Section Entrance Animations */
#promotions .promotion-card:nth-child(1) { animation-delay: 0.1s; }
#promotions .promotion-card:nth-child(2) { animation-delay: 0.2s; }
#promotions .promotion-card:nth-child(3) { animation-delay: 0.3s; }

#features .feature-icon:nth-child(1) { animation-delay: 0.1s; }
#features .feature-icon:nth-child(2) { animation-delay: 0.2s; }
#features .feature-icon:nth-child(3) { animation-delay: 0.3s; }
#features .feature-icon:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Hover States for One Page */
.section-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
  z-index: 1000;
}

.back-to-top.show {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
  background: #000000;
  color: #ffffff;
}

/* Print Styles */
@media print {
  .no-print, #floating-nav, .back-to-top, #scroll-progress {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
  }
}