/* ---------- Thumbnail Picker Styles ---------- */
.thumbnail-picker {
  position: relative;
  display: inline-block;
  cursor: pointer;
  max-width: 100%;
}

.thumbnail-picker img:not(.no-thumbnail-style) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 2px solid rgba(0,0,0,0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-picker:hover img {
  border-color: rgba(0,123,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* always-visible camera badge */
.thumbnail-picker .camera-icon {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* make it visible at all times */
  opacity: 1;
}

.thumbnail-picker .camera-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #fff;
}

/* make the × perfectly centered & tidy */
.remove-image-btn {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background-color: rgba(0,0,0,.6);
  color: #fff;
  display: flex;               /* <-- ensure exact centering */
  align-items: center;         /* <-- vertical center */
  justify-content: center;     /* <-- horizontal center */
  font-size: 1.25rem;
  line-height: 1;              /* <-- no extra baseline space */
  padding: 0;
  cursor: pointer;

  opacity: 0;                  /* hidden by default */
  pointer-events: none;        /* not clickable when hidden */
  transition: opacity .15s ease;
}

/* visible state (toggled by JS) */
.remove-image-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Custom File Upload Button */
#thumbnail-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: fill;
    background-color: var(--card-bg-color);
}
.custom-file-upload input[type="file"] {
    display: none;
}
.custom-file-upload .btn {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 1px solid var(--card-border-color);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.custom-file-upload .btn:hover {
    background-color: var(--button-hover-color);
    color: var(--button-hover-text-color);
}


/* ===================== TierDrop Card Styles ===================== */
/* Recent TierDrops grid “cards” on home page */

.tierdrop-card {
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tierdrop-card .col {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.tierdrop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.recent-tierdrops-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%; 
}

.recent-tierdrops-card .card-body {
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
}

.recent-tierdrops-card .card-body::-webkit-scrollbar {
  width: 6px;
}
.recent-tierdrops-card .card-body::-webkit-scrollbar-thumb {
  background: rgba(var(--scrollbar-thumb-rgb), var(--scrollbar-thumb-alpha));
  border-radius: 3px;
}