/* Bug Reports View — EntityBrowser layout */

/* List cell */
.br-cell-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.br-cell-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.br-cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.br-cell-content {
  flex: 1;
  min-width: 0;
}

.br-cell-desc {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.br-cell-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Detail pane */
.br-detail {
  max-width: 720px;
}

.br-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.br-detail-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.br-detail-description {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: break-word;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.br-detail-screenshot {
  margin-bottom: 20px;
}

.br-detail-screenshot h4,
.br-detail-info h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.br-detail-img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
}

.br-detail-img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.br-info-table {
  font-size: 13px;
  border-collapse: collapse;
}

.br-info-table td {
  padding: 4px 16px 4px 0;
  vertical-align: top;
}

.br-info-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  width: 100px;
}

.br-info-table .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.status-new {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent);
}

/* Screenshot modal */
.br-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.br-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.br-modal-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: block;
}

.br-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.br-modal-close:hover {
  background: var(--error);
  color: white;
  border-color: var(--error);
}
