/* Decision Training - Mobile First Styles */

/* Decision Training - Mobile First Styles */

/* Center Start Training button in decision training */
#config-screen .config-actions {
    justify-content: center !important;
}

/* Mobile First: Base styles for mobile */
.action-area-container {
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

/* Feedback area - hidden by default */
#feedback-area {
  display: none !important;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  animation: none !important;
}

#feedback-area.visible {
  display: block !important;
  animation: feedback-fade-in 0.3s ease-out !important;
}

@keyframes feedback-fade-in {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#feedback-area.success {
  background: rgba(40, 167, 69, 0.25) !important;
  border: 2px solid rgba(40, 167, 69, 0.7) !important;
  color: #a7f0ba !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

#feedback-area.error {
  background: rgba(220, 53, 69, 0.25) !important;
  border: 2px solid rgba(220, 53, 69, 0.7) !important;
  color: #f5b7bd !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

#feedback-area b {
  color: #ffffff !important;
  font-weight: 700;
}

#feedback-area small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.9;
  color: inherit !important;
}

#feedback-area i {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

#decision-buttons.decision-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.btn-decision {
  flex: 1 1 auto;
  min-width: 120px;
}

/* Mobile: Fixed bottom position for decision buttons */
@media (max-width: 768px) {
  .action-area-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to top, rgba(26, 33, 56, 0.98) 0%, rgba(26, 33, 56, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  #decision-buttons.decision-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .btn-decision {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 0.5rem;
    min-width: 0;
    font-weight: 600;
  }

  /* Ensure game area has bottom padding to prevent content from being hidden behind buttons */
  #training-screen .game-area {
    padding-bottom: 180px !important;
  }

  /* Reduce spacing in hand display on mobile */
  .hand-display {
    gap: 1.5rem !important;
    margin-bottom: 1rem;
  }

  /* Make cards smaller on mobile */
  .playing-card.small {
    width: 90px !important;
    height: 130px !important;
    font-size: 0.85rem;
  }

  /* Reduce timer container size */
  .decision-timer-container {
    margin: 1rem 0;
  }

  /* Feedback area styling */
  #feedback-area {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* Very small screens */
@media (max-width: 576px) {
  .action-area-container {
    padding: 0.75rem;
  }

  #decision-buttons.decision-controls {
    gap: 0.5rem;
  }

  .btn-decision {
    font-size: 0.85rem;
    padding: 0.75rem 0.4rem;
  }

  /* Even more padding for game area */
  #training-screen .game-area {
    padding-bottom: 200px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .hand-display {
    flex-direction: column;
    gap: 1rem !important;
  }

  .player-hand, .dealer-hand {
    width: 100%;
  }

  .playing-card.small {
    width: 85px !important;
    height: 120px !important;
  }
}

/* Tablet and Desktop: Normal positioning */
@media (min-width: 769px) {
  .action-area-container {
    position: relative;
    background: transparent;
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  #decision-buttons.decision-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .btn-decision {
    min-width: 140px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  #training-screen .game-area {
    padding-bottom: 2rem;
  }
}

/* Arena header stats - keep horizontal on all screens */
.arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.arena-stats {
  display: flex;
  flex-wrap: nowrap !important; /* Always keep in one row */
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: auto !important;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.stat i {
  font-size: 1rem;
  color: var(--accent-color);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Mobile: reduce size but keep horizontal */
@media (max-width: 768px) {
  .arena-header {
    padding: 0.75rem 0.5rem;
  }

  .arena-stats {
    gap: 0.5rem;
  }

  .stat {
    padding: 0.4rem 0.3rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .stat i {
    font-size: 0.85rem;
  }

  .stat-value {
    font-size: 0.85rem;
  }
}

/* Very small screens: even more compact */
@media (max-width: 576px) {
  .arena-stats {
    gap: 0.35rem;
  }

  .stat {
    padding: 0.3rem 0.25rem;
  }

  .stat i {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 0.75rem;
  }
}

/* Center DEALER and PLAYER labels above cards */
.dealer-hand,
.player-hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dealer-hand h4,
.player-hand h4 {
  text-align: center !important;
  width: 100%;
  margin: 0 0 0.75rem 0 !important;
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Center the cards container */
.dealer-hand .cards-container,
.player-hand .cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Ensure strategy blocks are mobile-friendly */
@media (max-width: 768px) {
  .premium-strategy-intuitive {
    flex-direction: column;
    gap: 1rem !important;
  }

  .strategy-block {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
    padding: 1rem !important;
  }

  .dealer-hand h4,
  .player-hand h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
  }
}

