/* Import Tailwind directives */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Import fonts */
/* Define component classes */
@layer components {
  /* Glass morphism effect - using raw CSS instead of @apply */
  /* line 12, app/assets/stylesheets/application.tailwind.scss */
  .glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
  }
  /* line 20, app/assets/stylesheets/application.tailwind.scss */
  .glass-hover:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  /* Gradient text */
  /* line 25, app/assets/stylesheets/application.tailwind.scss */
  .gradient-text {
    background: linear-gradient(to right, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
  /* Rank badges */
  /* line 34, app/assets/stylesheets/application.tailwind.scss */
  .rank-1 {
    background: linear-gradient(to right, #facc15, #f59e0b);
  }
  /* line 37, app/assets/stylesheets/application.tailwind.scss */
  .rank-2 {
    background: linear-gradient(to right, #d1d5db, #9ca3af);
  }
  /* line 40, app/assets/stylesheets/application.tailwind.scss */
  .rank-3 {
    background: linear-gradient(to right, #c2410c, #ea580c);
  }
}

@layer base {
  /* Base styles */
  /* line 47, app/assets/stylesheets/application.tailwind.scss */
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  /* line 52, app/assets/stylesheets/application.tailwind.scss */
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
}

@layer utilities {
  /* Hide scrollbar but keep functionality */
  /* line 59, app/assets/stylesheets/application.tailwind.scss */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  /* line 63, app/assets/stylesheets/application.tailwind.scss */
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  /* Line clamp utilities */
  /* line 68, app/assets/stylesheets/application.tailwind.scss */
  .line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* line 76, app/assets/stylesheets/application.tailwind.scss */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* line 84, app/assets/stylesheets/application.tailwind.scss */
  .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Font utilities */
/* line 94, app/assets/stylesheets/application.tailwind.scss */
.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Chart loader styling */
/* line 99, app/assets/stylesheets/application.tailwind.scss */
.chart-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
}

/* Spinner animation */
/* line 114, app/assets/stylesheets/application.tailwind.scss */
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  animation: spin 1s infinite linear;
}

/* line 122, app/assets/stylesheets/application.tailwind.scss */
.spinner-indigo {
  border-top-color: #4f46e5;
  /* Tailwind indigo-600 */
}

/* line 126, app/assets/stylesheets/application.tailwind.scss */
.spinner-green {
  border-top-color: #10b981;
  /* Tailwind green-500 */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade animations */
/* line 136, app/assets/stylesheets/application.tailwind.scss */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* line 140, app/assets/stylesheets/application.tailwind.scss */
.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Background opacity utilities */
/* line 155, app/assets/stylesheets/application.tailwind.scss */
.bg-opacity-50 {
  background: #00000099 !important;
}

/* line 159, app/assets/stylesheets/application.tailwind.scss */
.bg-opacity-80 {
  background: #00000033 !important;
}

/* Import leaderboard theme at the end */
/* Import Inter font */
/* Color Variables - Dark Theme with Blue/Purple Accent */
/* CSS Variables for Leaderboard */
/* line 26, app/assets/stylesheets/leaderboard.scss */
:root {
  --lb-bg-body: #0F1218;
  --lb-bg-card: #1A1F2E;
  --lb-bg-card-hover: #212738;
  --lb-bg-header: rgba(26, 31, 46, 0.8);
  --lb-text: #F3F4F6;
  --lb-text-secondary: #9CA3AF;
  --lb-text-muted: #6B7280;
  --lb-border: rgba(255, 255, 255, 0.08);
  --lb-primary: #3B82F6;
  --lb-primary-dark: #0b63f3;
  --lb-rank-gold: #FBBF24;
  --lb-rank-silver: #E5E7EB;
  --lb-rank-bronze: #EA580C;
}

/* Animated Background */
/* line 43, app/assets/stylesheets/leaderboard.scss */
.animated-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* line 54, app/assets/stylesheets/leaderboard.scss */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 20s ease-in-out infinite;
}

/* line 62, app/assets/stylesheets/leaderboard.scss */
.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: #3B82F6;
  top: -300px;
  left: -300px;
  animation-duration: 25s;
}

/* line 71, app/assets/stylesheets/leaderboard.scss */
.gradient-orb-2 {
  width: 800px;
  height: 800px;
  background: #8B5CF6;
  bottom: -400px;
  right: -400px;
  animation-duration: 30s;
  animation-delay: -10s;
}

/* line 81, app/assets/stylesheets/leaderboard.scss */
.gradient-orb-3 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 35s;
  animation-delay: -5s;
}

/* line 92, app/assets/stylesheets/leaderboard.scss */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* line 105, app/assets/stylesheets/leaderboard.scss */
.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-up linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Leaderboard Specific Classes */
/* line 144, app/assets/stylesheets/leaderboard.scss */
.lb-glass, .lb-table, .lb-btn {
  background: rgba(26, 31, 46, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

/* line 150, app/assets/stylesheets/leaderboard.scss */
.lb-glass:hover, .lb-table:hover, .lb-btn:hover {
  background: rgba(33, 39, 56, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Button Styles */
/* line 157, app/assets/stylesheets/leaderboard.scss */
.lb-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* line 169, app/assets/stylesheets/leaderboard.scss */
.lb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* line 175, app/assets/stylesheets/leaderboard.scss */
.lb-btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  color: white;
  border: none;
}

/* line 180, app/assets/stylesheets/leaderboard.scss */
.lb-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Rank Badges Enhanced */
/* line 187, app/assets/stylesheets/leaderboard.scss */
.lb-rank-1 {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: #111827;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* line 193, app/assets/stylesheets/leaderboard.scss */
.lb-rank-2 {
  background: linear-gradient(135deg, #E5E7EB 0%, #9CA3AF 100%);
  color: #111827;
  box-shadow: 0 4px 12px rgba(229, 231, 235, 0.2);
}

/* line 199, app/assets/stylesheets/leaderboard.scss */
.lb-rank-3 {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Table Enhancements */
/* line 206, app/assets/stylesheets/leaderboard.scss */
.lb-table {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* line 211, app/assets/stylesheets/leaderboard.scss */
.lb-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  padding: 1rem 1.5rem;
  background: rgba(20, 25, 34, 0.5);
}

/* line 220, app/assets/stylesheets/leaderboard.scss */
.lb-table tbody tr {
  transition: all 0.15s ease;
}

/* line 223, app/assets/stylesheets/leaderboard.scss */
.lb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Form Elements */
/* line 230, app/assets/stylesheets/leaderboard.scss */
input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  background: #141922;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F3F4F6;
}

/* line 239, app/assets/stylesheets/leaderboard.scss */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Mobile Navigation Enhancement */
@media (max-width: 768px) {
  /* line 248, app/assets/stylesheets/leaderboard.scss */
  .gradient-orb-1 {
    width: 300px;
    height: 300px;
  }
  /* line 253, app/assets/stylesheets/leaderboard.scss */
  .gradient-orb-2 {
    width: 400px;
    height: 400px;
  }
  /* line 258, app/assets/stylesheets/leaderboard.scss */
  .gradient-orb-3 {
    width: 250px;
    height: 250px;
  }
}

/* Gaming Theme - Dark Mode with Blue Accents */
@layer components {
  /* Hexagonal/Cube pattern background - HIGHLY VISIBLE */
  /* line 6, app/assets/stylesheets/application.scss */
  .bg-pattern {
    background-color: #000000;
    background-image: linear-gradient(30deg, #333333 12%, transparent 12.5%, transparent 87%, #333333 87.5%, #333333), linear-gradient(150deg, #333333 12%, transparent 12.5%, transparent 87%, #333333 87.5%, #333333), linear-gradient(30deg, #333333 12%, transparent 12.5%, transparent 87%, #333333 87.5%, #333333), linear-gradient(150deg, #333333 12%, transparent 12.5%, transparent 87%, #333333 87.5%, #333333), linear-gradient(60deg, #444444 25%, transparent 25.5%, transparent 75%, #444444 75%, #444444), linear-gradient(60deg, #444444 25%, transparent 25.5%, transparent 75%, #444444 75%, #444444);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  }
  /* Rest of the CSS remains the same... */
  /* line 20, app/assets/stylesheets/application.scss */
  .bg-gradient-radial {
    background: radial-gradient(ellipse at center, var(--tw-gradient-from), var(--tw-gradient-to));
  }
  /* Glass morphism effect for cards */
  /* line 25, app/assets/stylesheets/application.scss */
  .glass {
    @apply bg-gray-900/30 backdrop-blur-md border border-gray-700;
  }
  /* line 29, app/assets/stylesheets/application.scss */
  .glass-hover {
    @apply hover:bg-gray-900/50 hover:border-gray-600 transition-all duration-300;
  }
  /* Gaming button styles */
  /* line 34, app/assets/stylesheets/application.scss */
  .btn-gaming {
    @apply relative px-6 py-2.5 bg-blue-600 hover:bg-blue-500 text-white font-semibold rounded-lg transition-all duration-300 hover:shadow-lg hover:shadow-blue-500/30;
  }
  /* Gaming nav link */
  /* line 39, app/assets/stylesheets/application.scss */
  .nav-link-gaming {
    @apply relative px-4 py-2 text-gray-400 hover:text-blue-400 transition-colors duration-300 font-medium;
  }
  /* line 43, app/assets/stylesheets/application.scss */
  .nav-link-gaming::after {
    content: '';
    @apply absolute bottom-0 left-0 w-full h-0.5 bg-blue-500 transform scale-x-0 transition-transform duration-300 origin-left;
  }
  /* line 48, app/assets/stylesheets/application.scss */
  .nav-link-gaming:hover::after,
.nav-link-gaming.active::after {
    @apply scale-x-100;
  }
  /* line 53, app/assets/stylesheets/application.scss */
  .nav-link-gaming.active {
    @apply text-blue-400;
  }
  /* Dropdown gaming style */
  /* line 58, app/assets/stylesheets/application.scss */
  .dropdown-gaming {
    @apply absolute left-0 mt-2 w-64 bg-gray-900 border border-gray-700 rounded-lg shadow-2xl shadow-black/50 overflow-hidden;
  }
  /* line 62, app/assets/stylesheets/application.scss */
  .dropdown-item-gaming {
    @apply block px-4 py-3 text-gray-400 hover:bg-blue-600/20 hover:text-blue-400 transition-all duration-200;
  }
  /* Avatar fixes - prevent stretching */
  /* line 67, app/assets/stylesheets/application.scss */
  img.rounded-full {
    @apply object-cover;
  }
  /* Custom scrollbar */
  /* line 72, app/assets/stylesheets/application.scss */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  /* line 76, app/assets/stylesheets/application.scss */
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  /* Gradient text */
  /* line 81, app/assets/stylesheets/application.scss */
  .gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* line 108, app/assets/stylesheets/application.scss */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* line 112, app/assets/stylesheets/application.scss */
.animate-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}
