/* BoulderList - List view for boulders */

.boulder-list-container {
  display: flex;
  flex-direction: column;
}

.boulder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
}

.boulder-list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Individual Boulder Row */
.boulder-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.boulder-list-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.boulder-list-item:active {
  background: rgba(255, 255, 255, 0.08);
}

/* Add Boulder List Item */
.boulder-list-item-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.boulder-list-item-add:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.boulder-list-add-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
}

.boulder-list-item-add:hover .boulder-list-add-content {
  color: rgba(255, 255, 255, 0.8);
}

/* Thumbnail */
.boulder-list-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  margin: 0;
}

.boulder-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Remove inline spacing */
  border-radius: 0; /* No extra radius on image */
}

.boulder-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.2);
}

/* Grade Badge */
.boulder-list-grade {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: #9747ff;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Info Section */
.boulder-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.boulder-list-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-status-badge {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.list-status-badge.status-hidden {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.list-status-badge.status-archived {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.list-status-badge.status-draft {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.boulder-list-setter {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Row */
.boulder-list-stats {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.boulder-list-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.boulder-list-stats .stat svg {
  font-size: 10px;
}

.boulder-list-stats .stat.liked {
  color: #ff4d6d;
}

.boulder-list-stats .stat.liked svg {
  color: #ff4d6d;
}

/* Action Buttons */
.boulder-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.list-action-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.list-action-btn.active.liked {
  color: #ff4d6d;
  background: rgba(255, 77, 109, 0.15);
}

.list-action-btn.active.wishlisted {
  color: #9747ff;
  background: rgba(151, 71, 255, 0.15);
}

.list-action-btn.publish {
  color: #9747ff;
  background: rgba(151, 71, 255, 0.2);
}

.list-action-btn.publish:hover {
  background: rgba(151, 71, 255, 0.3);
  color: #b58aff;
}

.list-action-btn.edit {
  color: #2196f3;
  background: rgba(33, 150, 243, 0.15);
}

.list-action-btn.edit:hover {
  background: rgba(33, 150, 243, 0.25);
  color: #64b5f6;
}

.list-action-btn.delete {
  color: #f44336;
  background: rgba(244, 67, 54, 0.15);
}

.list-action-btn.delete:hover {
  background: rgba(244, 67, 54, 0.25);
  color: #ef5350;
}

.list-action-btn.preview {
  color: #9747ff;
  background: rgba(151, 71, 255, 0.15);
}

.list-action-btn.preview:hover {
  background: rgba(151, 71, 255, 0.25);
  color: #b58aff;
}

.list-action-btn svg {
  font-size: 14px;
}

/* Load More */
.boulder-list-container .load-more-container {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.boulder-list-container .btn-load-more {
  padding: 10px 24px;
  background: rgba(151, 71, 255, 0.2);
  border: 1px solid rgba(151, 71, 255, 0.3);
  border-radius: 8px;
  color: #9747ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.boulder-list-container .btn-load-more:hover {
  background: rgba(151, 71, 255, 0.3);
}

/* ==========================================
   Link Type Modifiers
   ========================================== */

/* Orphaned boulder styling */
.boulder-list-item--orphaned {
  opacity: 0.6;
  filter: grayscale(50%);
  border: 2px dashed var(--warning-color, #ff9500);
  position: relative;
}

.boulder-list-item--orphaned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 149, 0, 0.03) 10px,
    rgba(255, 149, 0, 0.03) 20px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.boulder-list-item--orphaned:hover {
  opacity: 0.85;
  filter: grayscale(25%);
}

/* Link badge in list view */
.boulder-list-link-badge {
  margin-left: 4px;
  flex-shrink: 0;
}

/* ==========================================
   Responsive Styles
   ========================================== */

@media (max-width: 480px) {
  .boulder-list {
    padding: 0px;
    gap: 6px;
  }

  .boulder-list-item {
    padding: 8px 8px 8px 8px;
    gap: 8px;
  }

  .boulder-list-thumb {
    width: 80px;
    height: 80px;
  }

  .boulder-list-grade {
    font-size: 8px;
    padding: 1px 4px;
  }

  .boulder-list-name {
    font-size: 13px;
  }

  .boulder-list-setter {
    font-size: 11px;
  }

  .boulder-list-stats {
    gap: 10px;
  }

  .boulder-list-stats .stat {
    font-size: 10px;
  }

  .list-action-btn {
    width: 32px;
    height: 32px;
  }

  .list-action-btn svg {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .boulder-list-item {
    padding: 8px;
    gap: 8px;
  }

  .boulder-list-thumb {
    width: 48px;
    height: 48px;
  }

  .boulder-list-actions {
    flex-direction: column;
    gap: 4px;
  }

  .list-action-btn {
    width: 28px;
    height: 28px;
  }

  .list-action-btn svg {
    font-size: 11px;
  }
}
