/* Release Notes — mobile-first dark OLED */

/* ── Overlay Header ── */

.rn-overlay-header {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border, #30363d);
  gap: 8px;
}

.rn-overlay-back {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.rn-overlay-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #e6edf3);
}

/* ── Scroll Content ── */

.rn-scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── List View ── */

.rn-list {
  padding: 0 12px 80px;
}

.rn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.rn-header-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}

.rn-check-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1a1a2e;
  color: #90caf9;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
}

.rn-check-btn:active {
  background: #252545;
}

.rn-check-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.rn-check-btn svg {
  width: 14px;
  height: 14px;
}

.rn-check-btn.loading svg {
  animation: rn-spin 1s linear infinite;
}

@keyframes rn-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── CLI Card ── */

.rn-cli-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.rn-cli-card:active {
  border-color: #444;
}

.rn-cli-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rn-cli-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
}

.rn-cli-arrow {
  color: #666;
  font-size: 18px;
}

.rn-version-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rn-version-label {
  font-size: 11px;
  color: #888;
  min-width: 60px;
}

.rn-version-value {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.rn-version-value.new {
  color: #4fc3f7;
}

.rn-pills-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.rn-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.rn-pill--breaking {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
}

.rn-pill--high {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
}

.rn-pill--medium {
  background: rgba(255, 152, 0, 0.15);
  color: #ffa726;
}

.rn-pill--informational {
  background: rgba(158, 158, 158, 0.12);
  color: #999;
}

.rn-last-checked {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

.rn-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 13px;
}

/* ── Detail View ── */

.rn-detail {
  padding: 0 12px 80px;
}

.rn-detail-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: #90caf9;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
}

.rn-detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.rn-version-block {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.rn-version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
}

.rn-version-header:active {
  background: #181818;
}

.rn-version-num {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.rn-version-date {
  font-size: 11px;
  color: #666;
}

.rn-version-entries {
  padding: 0 14px 12px;
  display: none;
}

.rn-version-entries.expanded {
  display: block;
}

.rn-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid #1a1a1a;
}

.rn-entry:first-child {
  border-top: none;
}

.rn-entry-pill {
  flex-shrink: 0;
  margin-top: 2px;
}

.rn-entry-text {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
  word-break: break-word;
}

.rn-entry-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #888;
  background: #1a1a1a;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
  text-transform: uppercase;
}

/* ── Settings View ── */

.rn-settings {
  padding: 0 12px 80px;
}

.rn-settings-group {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.rn-settings-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.rn-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.rn-settings-row label {
  font-size: 13px;
  color: #ccc;
  text-transform: capitalize;
}

.rn-settings-select {
  background: #1a1a2e;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}

.rn-settings-input {
  background: #1a1a2e;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.rn-settings-input::placeholder {
  color: #555;
}

/* ── Tabs (list/settings toggle) ── */

.rn-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #222;
}

.rn-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.rn-tab.active {
  color: #90caf9;
  border-bottom-color: #90caf9;
}

/* ── Dashboard Badge ── */

.rn-badge-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef5350;
  position: absolute;
  top: 2px;
  right: 2px;
}

.rn-badge-dot.visible {
  display: block;
}

.tree-global-action {
  position: relative;
}

/* ── Toggle Switch (for CLI checkboxes) ── */

.rn-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.rn-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.rn-toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.rn-toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  top: 2px;
  left: 2px;
  transition: transform 0.2s, background 0.2s;
}

.rn-toggle input:checked + .rn-toggle-slider {
  background: #1a3a5c;
}

.rn-toggle input:checked + .rn-toggle-slider::after {
  transform: translateX(16px);
  background: #90caf9;
}

/* ── Analysis Card ── */

.rn-analysis-card {
  background: #0d1117;
  border: 1px solid #1a3a5c;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.rn-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rn-analysis-title {
  font-size: 13px;
  font-weight: 600;
  color: #90caf9;
}

.rn-analysis-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.rn-analysis-badge--running {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
}

.rn-analysis-badge--approved {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
}

.rn-analysis-badge--needs-work {
  background: rgba(255, 152, 0, 0.15);
  color: #ffa726;
}

.rn-analysis-badge--failed {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
}

.rn-analysis-body {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}

.rn-analysis-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-top-color: #42a5f5;
  border-radius: 50%;
  animation: rn-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.rn-analysis-summary {
  color: #aaa;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.rn-analysis-actions {
  margin-top: 8px;
}

.rn-analysis-actions-title {
  font-size: 12px;
  font-weight: 600;
  color: #90caf9;
  margin-bottom: 6px;
}

.rn-analysis-action {
  font-size: 12px;
  color: #ccc;
  padding: 4px 0;
  padding-left: 12px;
  border-left: 2px solid #1a3a5c;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.rn-analysis-more {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.rn-analysis-detail {
  margin-top: 10px;
}

.rn-analysis-detail summary {
  font-size: 12px;
  color: #90caf9;
  cursor: pointer;
  padding: 4px 0;
}

.rn-analysis-verdict-text {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.rn-analysis-time {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}

.rn-analysis-fail-text {
  color: #ef5350;
}

.rn-analysis-retry-info {
  color: #888;
  font-size: 12px;
}
