/*___________________________________________________________________________________*/
/*DeckList*/

.deck-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    min-height: 500px;
   width: 400px; 
    background-color: var(--element-bg);
  	border-radius: 10px;
  	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  	padding: 1rem 1.5rem;
  	color: var(--text-color); 
    flex-shrink: 0;
    margin-right: 50px;
    gap: 12px;
}

/* Row 1: Title + input */
.deck-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: .4em;
}

.deck-title {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
}

.deck-name-input {
  width: 15em;    
  padding: 0.2em 0.2em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/*─────────────────────────────────────────────*
/* Icons for Import, Copy, Save, Clear */
/*─────────────────────────────────────────────*/


.decklist-toolbar {
  display: flex;
  align-items: center;
  gap: .5em;
  flex-wrap: wrap;
}

/* Each icon + label stacked */
.icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Make your SVGs big enough */
.icon-btn img {
  width: 32px;
  height: 32px;
  display: block;
}

.icon-btn {
  background: none;
  border: none;
  padding: .3em .8em .1em .8em;
  cursor: pointer;
}    
    
.decklist-toolbar .icon-btn img {
  width: 42px;
  height: 42px;
}

/* Sort-by area */
.sort-group {
  display: grid;
  align-items: center;
  gap: 0.5em;
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.deck-sort-select {
  padding: 0.1em 0.1em;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}


/*____________________________________________________

*Actual Deck List card frames
______________________________________________________*/

/* Scrollable deck list */
.scrollable-list {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar Styling (match filter popup) */
.scrollable-list::-webkit-scrollbar {
  width: 8px;
}
.scrollable-list::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}
.scrollable-list::-webkit-scrollbar-track {
  background-color: #2a2a2a;
}
.scrollable-list:hover::-webkit-scrollbar-thumb {
  background-color: #888;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  margin: 100px auto;
}


.deck-list.scrollable-list {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px; /* room for scrollbar */
}

.deck-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.deck-entry.horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    align-items: flex-start;
}

/*─────────────────────────────────────────────*
 * Deck‐List Frames
 *─────────────────────────────────────────────*/

/* Base frame for every card image in the sidebar */
.deck-frame {
  display:        inline-block;
  width:          300px;                 /* adjust thumbnail size */
  height:         auto;
  padding:        2px;                  /* space between image & border */
  margin-right:   0.5rem;               /* gap to text or next image */
  background:     var(--element-bg);    /* match panel bg */
  border:         0px solid var(--dropdown-bg);
  border-radius:  4px;
  box-shadow:     0 1px 3px rgba(0,0,0,0.2);
  transition:     box-shadow 0.2s ease;
}

/*.deck-frame {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}*/

/* Special highlight for a Paragon icon */
.deck-frame.paragon-frame {
  border-color:   none /*var(--button-bg)*/;
  box-shadow:     none /*0 0 1px var(--button-bg)*/;
}

.deck-qty {
    font-size: 14px;
    font-weight: bold;
    background: #333;
    color: #fff;
    padding: 1px 2px;
    border-radius: 0px;
    text-align: center;
    min-width: 24px;
}

.deck-controls {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 0px;
}


.remove-paragon-btn:hover {
  background: #e74c3c;
}

.remove-paragon-btn {
  position: relative;
  top: 4px;
  right: 4px;
  background: #444;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  z-index: 10;
}

.remove-paragon-btn:hover {
  background: #e74c3c;
}

.btn-plus,
.btn-minus,
.btn-remove {
    font-size: 16px;
    font-weight: bold;
    background: #444;
    color: white;
    border: none;
    padding: 1px 6px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Rounded corners for top and bottom only */
.btn-plus {
    border-radius: 6px 6px 0px 0px;
}

.btn-minus {
    border-radius: 0px 0px 6px 6px;
}

/* Hover effect */
.btn-minus:hover,
.btn-remove:hover {
    background: #e74c3c;
    color: white;
}

.btn-plus:hover {
    background: white;
    color: black;
}

/* Optional tighter padding on X icon */
.decklist-control-icon {
    height: 13px;
    width: auto;
    padding: 0 0 2px 0px;
    vertical-align: middle;
}

.decklist-type-icon {
  width: 24px;
  height: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}