/* Component styles for Roulette */

/* Chat Panel - styles moved to chat.css */

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #333;
  background: rgba(0,0,0,0.8);
}

.chat-header h3 {
  color: var(--gold);
  font-size: 1.2rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--gold);
  padding: 8px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-close-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  transform: scale(1.1);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  list-style: none;
}

#chat-messages li {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

#chat-messages li.system {
  background: rgba(33, 150, 243, 0.2);
  color: #81d4fa;
  border-left: 3px solid #2196F3;
}

#chat-messages li.player {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#chat-messages li.game {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  font-weight: bold;
}

#chat-form {
  display: flex;
  padding: 15px;
  border-top: 1px solid #333;
  background: rgba(0,0,0,0.8);
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #333;
  color: #fff;
  font-size: 0.9rem;
}

#chat-input:focus {
  outline: none;
  border-color: var(--gold);
}

#chat-form button {
  padding: 6px 12px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 60px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: var(--gold);
  color: var(--black);
  margin-left: 10px;
}

#chat-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: #ffd700;
}

#chat-form button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#chat-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Chat Toggle - styles moved to chat.css */

/* Mobile Responsive Chat - styles moved to chat.css */

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gold);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error States */
.error {
  color: var(--lose);
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--lose);
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.success {
  color: var(--win);
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--win);
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

/* Tooltips */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}

.pulse {
  animation: pulse 1s infinite;
}

/* Button States */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

button:active {
  transform: translateY(1px);
}

/* Focus States */
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #333;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

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

/* Betting Help Modal Styles */
#betting-help-modal {
  display: none;
}

.betting-help-content {
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gold);
}

.modal-close-btn {
  width: auto !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  font-size: 1.2rem !important;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.betting-help-body {
  color: var(--white);
}

.betting-section {
  margin-bottom: 30px;
}

.betting-section h3 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 8px;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.bet-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.bet-item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
}

.bet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.bet-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

.bet-name {
  font-weight: bold;
  color: var(--gold);
  flex: 1;
  font-size: 1rem;
}

.bet-payout {
  background: var(--gold);
  color: var(--black);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.bet-description {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.4;
}

.bet-numbers {
  color: var(--gold);
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  display: block;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 3px;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9rem;
}

.tips-list li:last-child {
  border-bottom: none;
}

/* Responsive design for betting help modal */
@media (max-width: 768px) {
  .betting-help-content {
    margin: 2% auto;
    width: 95%;
    max-height: 90vh;
  }
  
  .bet-grid {
    grid-template-columns: 1fr;
  }
  
  .bet-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bet-name {
    margin-bottom: 5px;
  }
}
