/* ==========================================================================
   Tailwind Custom CSS - Kelime UI Redesign
   ========================================================================== */

/* ==========================================================================
   0. Global Scroll Prevention & Scrollbar Stability
   ========================================================================== */

html {
  overflow-x: hidden !important;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Game area scrollbar - always reserve space */
.game-area,
#words-display {
  scrollbar-gutter: stable;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================================
   1. Glass Effects
   ========================================================================== */

.glass-panel {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-header {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-overlay {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
   2. Text Effects
   ========================================================================== */

.neon-text {
  text-shadow: 0 0 10px rgba(37, 192, 244, 0.5);
}

.neon-text-purple {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.neon-text-green {
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.active-word-glow {
  text-shadow: 0 0 15px rgba(37, 192, 244, 0.4);
}

/* ==========================================================================
   2b. Professional Modern Text Styles
   ========================================================================== */

/* Animated Gradient Text - Logo & Hero */
.text-gradient-animated {
  background: linear-gradient(
    90deg,
    #25c0f4 0%,
    #a855f7 25%,
    #22c55e 50%,
    #a855f7 75%,
    #25c0f4 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Premium Gradient Text - Static */
.text-gradient-premium {
  background: linear-gradient(135deg, #25c0f4 0%, #60a5fa 30%, #a855f7 70%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cyber Neon Text with Multi-layer Glow */
.text-cyber-glow {
  color: #25c0f4;
  text-shadow:
    0 0 5px rgba(37, 192, 244, 0.8),
    0 0 10px rgba(37, 192, 244, 0.6),
    0 0 20px rgba(37, 192, 244, 0.4),
    0 0 40px rgba(37, 192, 244, 0.2),
    0 0 80px rgba(37, 192, 244, 0.1);
}

/* Shimmer/Shine Effect */
.text-shimmer {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  color: #ffffff;
  -webkit-text-fill-color: transparent;
  background-color: #25c0f4;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Chrome/Metallic Text Effect */
.text-chrome {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d1d5db 25%,
    #ffffff 50%,
    #9ca3af 75%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Gold Metallic Text */
.text-gold {
  background: linear-gradient(
    180deg,
    #fef08a 0%,
    #fbbf24 25%,
    #fef08a 50%,
    #d97706 75%,
    #fbbf24 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.4));
}

/* 3D Text with Depth */
.text-3d {
  color: #ffffff;
  text-shadow:
    1px 1px 0 #1e293b,
    2px 2px 0 #1e293b,
    3px 3px 0 #1e293b,
    4px 4px 0 #0f172a,
    5px 5px 10px rgba(0, 0, 0, 0.5);
}

/* Glitch Text Effect */
.text-glitch {
  position: relative;
  animation: glitch-skew 3s infinite linear alternate-reverse;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip-path: inset(0 100% 0 0);
  animation: glitch-clip 4s infinite linear alternate-reverse;
}

.text-glitch::after {
  left: -2px;
  text-shadow: 2px 0 #00ffff;
  clip-path: inset(0 0 0 100%);
  animation: glitch-clip 4s infinite linear alternate-reverse reverse;
}

@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  25% { transform: skew(0.5deg); }
  75% { transform: skew(-0.5deg); }
}

@keyframes glitch-clip {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Pulse Glow Text */
.text-pulse-glow {
  animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
  0%, 100% {
    text-shadow:
      0 0 5px rgba(37, 192, 244, 0.5),
      0 0 10px rgba(37, 192, 244, 0.3);
  }
  50% {
    text-shadow:
      0 0 10px rgba(37, 192, 244, 0.8),
      0 0 20px rgba(37, 192, 244, 0.6),
      0 0 30px rgba(37, 192, 244, 0.4),
      0 0 40px rgba(37, 192, 244, 0.2);
  }
}

/* Electric Text */
.text-electric {
  color: #25c0f4;
  animation: electric-flicker 0.1s infinite;
  text-shadow:
    0 0 10px rgba(37, 192, 244, 0.8),
    0 0 20px rgba(37, 192, 244, 0.6);
}

@keyframes electric-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
  25%, 75% { opacity: 0.98; }
}

/* Fire Text */
.text-fire {
  background: linear-gradient(
    180deg,
    #fef08a 0%,
    #f97316 40%,
    #ef4444 70%,
    #991b1b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
  animation: fire-flicker 0.3s infinite alternate;
}

@keyframes fire-flicker {
  0% { filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)); }
  100% { filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.8)); }
}

/* Ice/Frost Text */
.text-ice {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #bfdbfe 30%,
    #60a5fa 60%,
    #3b82f6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

/* Neon Outline Text */
.text-neon-outline {
  color: transparent;
  -webkit-text-stroke: 2px #25c0f4;
  text-shadow:
    0 0 10px rgba(37, 192, 244, 0.5),
    0 0 20px rgba(37, 192, 244, 0.3),
    0 0 30px rgba(37, 192, 244, 0.2);
}

/* Holographic Text */
.text-holographic {
  background: linear-gradient(
    90deg,
    #ff0080 0%,
    #ff8c00 14%,
    #ffd700 28%,
    #00ff00 42%,
    #00bfff 56%,
    #8a2be2 70%,
    #ff0080 84%,
    #ff8c00 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holographic 5s linear infinite;
}

@keyframes holographic {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Section Title Style */
.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Title with Accent */
.section-title-accent {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title-accent .accent {
  background: linear-gradient(135deg, #25c0f4 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle Elegant */
.subtitle-elegant {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.7;
}

/* Label/Badge Text */
.text-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.text-label-glow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #25c0f4;
  text-shadow: 0 0 10px rgba(37, 192, 244, 0.5);
}

/* ==========================================================================
   3. Input Effects
   ========================================================================== */

.input-glow:focus {
  box-shadow: 0 0 0 2px rgba(37, 192, 244, 0.1),
              0 0 20px rgba(37, 192, 244, 0.2);
}

/* ==========================================================================
   4. Word Styling (Typing Area) - Neon Glow Effects
   ========================================================================== */

/* Letter base transition */
.letter {
  transition: color 0.15s ease-out,
              text-shadow 0.15s ease-out,
              background 0.15s ease-out;
}

/* Neon Glow - Doğru harf (Correct letter) */
.word-correct,
.letter.correct {
  color: #22c55e !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.9),
               0 0 16px rgba(34, 197, 94, 0.6),
               0 0 24px rgba(34, 197, 94, 0.3) !important;
}

/* Neon Glow - Yanlış harf (Incorrect letter) */
.word-incorrect,
.letter.incorrect {
  color: #ef4444 !important;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8),
               0 0 12px rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 3px;
  padding: 0 2px;
}

/* Aktif kelime - Cyan highlight (Active word) */
.word-active,
.word.current {
  color: #ffffff;
  background-color: rgba(37, 192, 244, 0.15);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(37, 192, 244, 0.3), inset 0 0 0 1px rgba(37, 192, 244, 0.3);
}

/* Current letter - Cyan pulse cursor */
.letter.current-letter {
  color: #25c0f4 !important;
  text-shadow: 0 0 10px rgba(37, 192, 244, 0.8) !important;
  border-bottom: 2px solid #25c0f4;
  animation: neon-cursor-pulse 1s ease-in-out infinite;
}

@keyframes neon-cursor-pulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(37, 192, 244, 0.8);
  }
  50% {
    opacity: 0.6;
    text-shadow: 0 0 5px rgba(37, 192, 244, 0.4);
  }
}

/* Pending/untyped letters */
.word-pending {
  color: #94a3b8;
}

/* Skipped letters */
.letter.skipped {
  color: #64748b !important;
  opacity: 0.4;
  background: rgba(100, 116, 139, 0.1);
  border-radius: 3px;
}

/* Already typed words (faded) */
.word-typed {
  color: #64748b;
  opacity: 0.5;
}

/* ==========================================================================
   5. Navbar Transition
   ========================================================================== */

.quick-panel-transition {
  transition-property: height, background-color, border-color;
  transition-duration: 400ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-collapsed {
  height: 48px;
  overflow: hidden;
}

.nav-expanded {
  height: 112px;
}

/* ==========================================================================
   6. Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1e293b #0f172a;
}

/* ==========================================================================
   7. Neon Shadows
   ========================================================================== */

.shadow-neon {
  box-shadow: 0 0 15px rgba(37, 192, 244, 0.4);
}

.shadow-neon-purple {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.shadow-neon-green {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.shadow-glass {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   8. Ambient Background Glows
   ========================================================================== */

.ambient-glow-purple {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ambient-glow-blue {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 192, 244, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   9. Animations
   ========================================================================== */

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cursor-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-cursor-blink {
  animation: cursor-blink 1s step-end infinite;
}

/* ==========================================================================
   10. Corner Decorations (Typing Area)
   ========================================================================== */

.corner-decoration {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(37, 192, 244, 0.3);
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  border-color: inherit;
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
  border-color: inherit;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-color: inherit;
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-color: inherit;
}

/* ==========================================================================
   11. Button Styles
   ========================================================================== */

.btn-primary {
  background-color: #25c0f4;
  color: #0f172a;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   12. Mode Card Styles
   ========================================================================== */

.mode-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 192, 244, 0.3);
}

.mode-card.selected {
  ring: 2px;
  ring-color: #25c0f4;
  box-shadow: 0 0 15px rgba(37, 192, 244, 0.4);
}

/* ==========================================================================
   13. Player Status Indicators
   ========================================================================== */

.status-online {
  border-color: #22c55e;
}

.status-online::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  top: 0;
  right: 0;
}

.status-ingame {
  border-color: #f97316;
}

.status-offline {
  filter: grayscale(100%);
  opacity: 0.7;
}

.status-ready {
  border-color: #22c55e;
}

/* ==========================================================================
   14. Progress Bar Styles
   ========================================================================== */

.progress-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #25c0f4, #a855f7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   15. Leaderboard Rank Colors
   ========================================================================== */

.rank-1 {
  color: #facc15;
}

.rank-2 {
  color: #e2e8f0;
}

.rank-3 {
  color: #fb923c;
}

.rank-other {
  color: #6b7280;
  opacity: 0.7;
}

/* ==========================================================================
   16. Room Status Badges (Multiplayer Lobby)
   ========================================================================== */

.status-open {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-full {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-locked {
  background-color: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-last-spot {
  background-color: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

/* ==========================================================================
   17. Mode Badges
   ========================================================================== */

.mode-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.mode-badge-normal {
  background-color: rgba(37, 192, 244, 0.15);
  color: #25c0f4;
}

.mode-badge-timed {
  background-color: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.mode-badge-flowing {
  background-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mode-badge-practice {
  background-color: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

/* ==========================================================================
   18. Player Progress Bar (Room Cards)
   ========================================================================== */

.player-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.player-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #25c0f4, #a855f7);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   19. Dropdown Menu Styles
   ========================================================================== */

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   19b. Select/Option Styles (Native Dropdowns)
   ========================================================================== */

/* Style native select elements */
select {
  background-color: rgba(30, 41, 59, 0.8) !important;
  color: #e2e8f0 !important;
  cursor: pointer;
}

/* Style options inside select */
select option {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  padding: 8px 12px;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #334155 !important;
  color: #ffffff !important;
}

/* Firefox specific styling */
@-moz-document url-prefix() {
  select {
    background-color: #1e293b !important;
  }
  select option {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
  }
}

/* ==========================================================================
   20. Room Card Styles
   ========================================================================== */

.room-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 192, 244, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   21. Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 192, 244, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   22. Slider Styles (Round Time)
   ========================================================================== */

.time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #25c0f4;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(37, 192, 244, 0.5);
  transition: transform 0.2s ease;
}

.time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.time-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #25c0f4;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(37, 192, 244, 0.5);
}

/* ==========================================================================
   23. Category Card Styles
   ========================================================================== */

.category-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-card.selected {
  background: rgba(37, 192, 244, 0.1);
  border-color: rgba(37, 192, 244, 0.5);
}

/* ==========================================================================
   24. System Log Styles
   ========================================================================== */

.system-log {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
}

.system-log-entry {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   25. Mobile Hamburger Menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   26. Filter Button Active State
   ========================================================================== */

.filter-btn.active {
  background-color: rgba(37, 192, 244, 0.15);
  border-color: rgba(37, 192, 244, 0.5);
  color: #25c0f4;
}

/* ==========================================================================
   27. Scrollbar Hide Utility
   ========================================================================== */

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   28. Touch Target Minimum Size
   ========================================================================== */

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   29. Mobile Responsive Helpers
   ========================================================================== */

@media (max-width: 640px) {
  /* Increase touch targets on mobile */
  .filter-btn,
  .category-card,
  .mode-option {
    min-height: 44px;
  }

  /* Adjust room cards for mobile */
  .room-card {
    padding: 0.875rem;
  }

  /* Adjust toast for mobile */
  .toast {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }
}

/* ==========================================================================
   30. Friends Sidebar - Hover Expand
   ========================================================================== */

.friends-sidebar {
  width: 60px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.friends-sidebar:hover {
  width: 320px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

/* Collapsed indicator (visible when not hovered) */
.friends-sidebar .sidebar-indicator {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.friends-sidebar:hover .sidebar-indicator {
  opacity: 0;
  pointer-events: none;
}

/* Full content (visible on hover) */
.friends-sidebar .sidebar-content {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.friends-sidebar:hover .sidebar-content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0.1s;
}

/* Vertical text for collapsed state */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ==========================================================================
   31. Flowing Words Mode - Neon Theme
   ========================================================================== */

/* Flowing words container */
.flowing-words-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(37, 192, 244, 0.03) 0%,
    rgba(168, 85, 247, 0.05) 50%,
    rgba(37, 192, 244, 0.08) 100%);
  border-radius: 12px;
}

/* Individual flowing word */
.flowing-word {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(37, 192, 244, 0.12);
  border: 2px solid rgba(37, 192, 244, 0.35);
  color: #e2e8f0;
  border-radius: 10px;
  cursor: default;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(37, 192, 244, 0.15);
  white-space: nowrap;
  animation: flowDown 8s linear forwards;
  z-index: 1;
}

/* Flow animation - top to bottom */
@keyframes flowDown {
  0% {
    top: -70px;
    opacity: 0;
    transform: scale(0.9);
  }
  5% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% + 30px);
    opacity: 0;
  }
}

/* Character spans inside flowing word */
.flowing-word .char {
  transition: color 0.1s ease, text-shadow 0.1s ease;
  display: inline-block;
}

/* Correct character - green glow */
.flowing-word .char.correct {
  color: #22c55e !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.9),
               0 0 16px rgba(34, 197, 94, 0.5) !important;
}

/* Incorrect character - red glow */
.flowing-word .char.incorrect {
  color: #ef4444 !important;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8),
               0 0 12px rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.2) !important;
  border-radius: 3px;
  padding: 0 2px;
}

/* Current character - cyan cursor */
.flowing-word .char.current {
  color: #25c0f4 !important;
  text-shadow: 0 0 10px rgba(37, 192, 244, 0.8) !important;
  border-bottom: 2px solid #25c0f4;
}

/* Active typing state - word being typed */
.flowing-word.active-typing {
  border-color: #25c0f4;
  background: rgba(37, 192, 244, 0.2);
  box-shadow: 0 0 30px rgba(37, 192, 244, 0.4);
  transform: scale(1.08);
  z-index: 10;
}

/* Matched state - word completed correctly */
.flowing-word.matched {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.6);
  animation: matchedExplode 0.5s ease-out forwards;
}

/* Missed state - word reached bottom */
.flowing-word.missed {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  animation: missedFade 0.4s ease-out forwards;
}

/* Matched explosion animation */
@keyframes matchedExplode {
  0% {
    transform: scale(1.08);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Missed fade animation */
@keyframes missedFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
}

/* Combo pulse effect */
.combo-pulse {
  animation: comboPulse 0.4s ease-out;
}

@keyframes comboPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  }
  100% {
    transform: scale(1);
  }
}

/* Input error shake */
.flowing-typing-input.error,
#flowing-typing-input.error {
  animation: inputShake 0.3s ease;
  border-color: #ef4444 !important;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

/* ==========================================================================
   32. Modern Dropdown Styles
   ========================================================================== */

/* Dropdown Container - Glass Effect */
.dropdown-modern {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

/* Arrow/Pointer */
.dropdown-modern::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  z-index: 1;
}

/* Dropdown with neon glow - Cyan */
.dropdown-modern.dropdown-glow-cyan {
  border-color: rgba(37, 192, 244, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(37, 192, 244, 0.1),
    0 0 0 1px rgba(37, 192, 244, 0.15);
}

.dropdown-modern.dropdown-glow-cyan::before {
  border-left-color: rgba(37, 192, 244, 0.2);
  border-top-color: rgba(37, 192, 244, 0.2);
  box-shadow: -3px -3px 8px rgba(37, 192, 244, 0.1);
}

/* Dropdown with neon glow - Green */
.dropdown-modern.dropdown-glow-green {
  border-color: rgba(34, 197, 94, 0.2);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(34, 197, 94, 0.1),
    0 0 0 1px rgba(34, 197, 94, 0.15);
}

.dropdown-modern.dropdown-glow-green::before {
  border-left-color: rgba(34, 197, 94, 0.2);
  border-top-color: rgba(34, 197, 94, 0.2);
  box-shadow: -3px -3px 8px rgba(34, 197, 94, 0.1);
}

/* Arrow position variants */
.dropdown-modern.arrow-right::before {
  left: auto;
  right: 24px;
}

.dropdown-modern.arrow-center::before {
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-modern.no-arrow::before {
  display: none;
}

/* Dropdown Header/Title */
.dropdown-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown Item */
.dropdown-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dropdown-item-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(37, 192, 244, 0.15), transparent);
  transition: width 0.3s ease;
}

.dropdown-item-modern:hover::before {
  width: 100%;
}

.dropdown-item-modern:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dropdown-item-modern:hover .dropdown-icon-box {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--icon-glow-color, rgba(37, 192, 244, 0.4));
}

.dropdown-item-modern:hover .dropdown-item-title {
  color: #ffffff;
}

/* Icon Box */
.dropdown-icon-box {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-icon-box.icon-cyan {
  background: linear-gradient(135deg, rgba(37, 192, 244, 0.2), rgba(37, 192, 244, 0.1));
  border: 1px solid rgba(37, 192, 244, 0.3);
  --icon-glow-color: rgba(37, 192, 244, 0.5);
}

.dropdown-icon-box.icon-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  --icon-glow-color: rgba(34, 197, 94, 0.5);
}

.dropdown-icon-box.icon-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  --icon-glow-color: rgba(168, 85, 247, 0.5);
}

.dropdown-icon-box.icon-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.3);
  --icon-glow-color: rgba(249, 115, 22, 0.5);
}

.dropdown-icon-box.icon-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.3);
  --icon-glow-color: rgba(239, 68, 68, 0.5);
}

/* Item Content */
.dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 0.125rem;
  line-height: 1.4;
}

/* Badges */
.dropdown-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-badge-hot {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  animation: badge-pulse 2s ease-in-out infinite;
}

.dropdown-badge-new {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.dropdown-badge-popular {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: white;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Divider */
.dropdown-divider {
  height: 1px;
  margin: 0.5rem 1rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Staggered Animation */
.dropdown-modern .dropdown-item-modern {
  opacity: 0;
  transform: translateX(-10px);
  animation: dropdownItemSlide 0.3s ease forwards;
}

.dropdown-modern .dropdown-item-modern:nth-child(1) { animation-delay: 0.05s; }
.dropdown-modern .dropdown-item-modern:nth-child(2) { animation-delay: 0.1s; }
.dropdown-modern .dropdown-item-modern:nth-child(3) { animation-delay: 0.15s; }
.dropdown-modern .dropdown-item-modern:nth-child(4) { animation-delay: 0.2s; }
.dropdown-modern .dropdown-item-modern:nth-child(5) { animation-delay: 0.25s; }
.dropdown-modern .dropdown-item-modern:nth-child(6) { animation-delay: 0.3s; }

@keyframes dropdownItemSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Special Item - Highlighted */
.dropdown-item-special {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.05));
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  margin-top: 0.25rem;
}

.dropdown-item-special:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.1));
}
