/* =====================================
   CHESS SOLVER STYLES
   Clean, minimal styling to match pgnViewer.css
   =================================== */

/* ===================================
   CSS VARIABLES & THEME
   =================================== */
:root {
    /*--circlePosn: 0px; */
    --blue: rgb(19, 41, 75);
    --gold: #d9c89d; 
    --grey: rgb(199,201,199);
    --purple: #800080;
    --blue-purple: #2639A7;
    --red-purple: rgb(157, 0, 76);
    --green-purple: #005B78;
    --gold-purple: #5A4300;
    --red: rgb(187, 0, 0);
}

/* ===================================
   SOLVER LAYOUT & CONTAINERS
   =================================== */
.pgn-selector {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pgn-selector button {
  padding: 8px 16px;
  background-color: var(--blue);
  color: var(--gold);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.pgn-selector button:hover {
  opacity: 0.8;
}

/* ===================================
   SOLVER BUTTONS & CONTROLS
   =================================== */
#solverControls {
  margin-top: 15px;
}

.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}

/* Default button styling - match pgnViewer.css */
#solverControls button {
  padding: 8px 12px;
  margin: 2px;
  /*background-color: #eef; */
    background-color: var(--blue);
     color: var(--gold);
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

#solverControls button:hover {
  opacity: 0.8;
}

#solverControls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Special buttons get the blue/gold treatment */
#startSolvingBtn {
  font-weight: bold;
}

/* ===================================
   SOLVER INFORMATION PANELS
   =================================== */

#puzzleTitle {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
}

#puzzleInfo {
  font-size: 0.9em;
  line-height: 1.4;
}

#scorePanel {
  background-color: var(--blue);
  color: var(--gold);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  width: fit-content;
}

#scorePanel div:first-child {
  font-size: 1.1em;
  font-weight: bold;
}

#scorePanel div:not(:first-child) {
  font-size: 0.9em;
  margin-top: 4px;
}

#userSection {
  background-color: var(--blue);
  color: var(--gold);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  width: fit-content;
}

#currentUser {
  font-size: 1.1em;
  margin: 0 8px;
}

#changeUserBtn {
  margin-left: 10px;
  padding: 4px 8px;
  background-color: var(--gold);
  color: var(--blue);
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

#changeUserBtn:hover {
  opacity: 0.8;
}

/* ===================================
   SOLVER SOLUTION DISPLAY
   =================================== */
#solutionDisplay {
  background-color: var(--blue);
  color: var(--gold);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  width: fit-content;
}

#solutionDisplay > div:first-child {
  font-weight: bold;
  margin-bottom: 10px;
}

#solutionMoves {
  line-height: 1.6;
  font-family: 'ChessMerida', serif;
  font-size: 1.1em;
}

/* ===================================
   SOLVER PROMOTION SELECTOR
   =================================== */
   /*
#promotionSelector {
  margin-top: 15px;
  text-align: center;
}

#promotionSelector label {
  color: var(--gold);
  font-weight: bold;
  margin: 8px;
}
/*
#promotionSelector select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  font-family: inherit;
}

/* ===================================
   SOLVER INSTRUCTIONS & MESSAGES
   =================================== */
#instructions {
  margin: 20px;
  padding: 15px;
  background-color: var(--blue);
  color: var(--gold);
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
}

#instructions.success-message {
  background-color: var(--green-purple) !important;
  color: white !important;
}

#instructions.error-message {
  background-color: var(--red-purple) !important;
  color: white !important;
}

#instructions.hint-message {
  background-color: var(--green-purple) !important;
  color: white !important;
}

/* ===================================
   SOLVER DEBUG PANEL
   =================================== */
#debugPanel {
  margin-top: 20px;
  padding: 10px;
  background-color: var(--blue);
  color: var(--gold);
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85em;
}

#debugPanel div {
  margin: 2px 0;
}

#toggleDebugBtn {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #eef;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

/* ===================================
   SOLVER RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  #rightColumn {
    padding: 5px;
  }
  
  
  #scorePanel,
  #solutionDisplay {
    width: 100%;
    max-width: none;
  }
}

#rightColumn {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 1 auto;
  width: 300px;
  padding: 0px;
  align-items: flex-start;  /* 👈 This left-aligns the content */
}

/*

.circle {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  position: absolute;
  right: -40px;
  transition: all 0.1s ease;
  border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10;
}
*/
#black-circle {
  background-color: rgb(19, 41, 75);
  visibility: hidden;
}

#white-circle {
  background-color: rgb(255, 255, 255);
  visibility: hidden;
}

#board-wrapper {
  position: relative;
  display: inline-block;
  padding-right: 10px;  /* Ensure circles have space */
  margin: 10px 20px 10px 0;
}