/* Trivia Difficulty Selector Styles */

/* Difficulty Selector Container */
.difficulty-selector {
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-light) 100%);
  border-radius: 14px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.difficulty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}

.difficulty-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.difficulty-btn {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.difficulty-btn:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.difficulty-btn.selected {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border-color: #7c3aed;
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.difficulty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--panel);
  border-color: rgba(139, 92, 246, 0.2);
}

.difficulty-btn[data-difficulty="easy"] { border-left: 4px solid #10b981; }
.difficulty-btn[data-difficulty="medium"] { border-left: 4px solid #f59e0b; }
.difficulty-btn[data-difficulty="hard"] { border-left: 4px solid #f97316; }
.difficulty-btn[data-difficulty="very_hard"] { border-left: 4px solid #ef4444; }

/* Current Difficulty Badge */
.current-difficulty {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.current-difficulty.easy { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.current-difficulty.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.current-difficulty.hard { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.current-difficulty.very_hard { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Question Count Selector */
.question-count-selector {
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-light) 100%);
  border-radius: 14px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.question-count-options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.question-count-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.question-count-btn:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.question-count-btn.selected {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border-color: #7c3aed;
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

/* Next Level Button */
.next-level-container {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
  border-radius: 12px;
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.next-level-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.next-level-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.5);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .difficulty-selector,
  .question-count-selector {
    margin-bottom: 10px;
    padding: 10px;
  }
  
  .difficulty-title {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .difficulty-options {
    gap: 6px;
  }
  
  .difficulty-btn {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .question-count-options {
    gap: 8px;
  }
  
  .question-count-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .difficulty-selector,
  .question-count-selector {
    margin-bottom: 6px;
    padding: 6px;
  }
  
  .difficulty-title {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  .difficulty-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  .difficulty-btn {
    padding: 5px 6px;
    font-size: 11px;
    border-radius: 6px;
    border-left-width: 3px;
  }
  
  .question-count-options {
    gap: 4px;
  }
  
  .question-count-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .next-level-container {
    margin-top: 6px;
    padding: 6px;
  }
  
  .next-level-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .difficulty-selector,
  .question-count-selector {
    margin-bottom: 5px;
    padding: 5px;
  }
  
  .difficulty-title {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .difficulty-btn {
    padding: 4px 5px;
    font-size: 10px;
  }
  
  .question-count-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}

