/* ClauTerm Git Status View */

/* Header */
.gs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gs-back {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
}
.gs-back:active { background: var(--surface-hover); }

.gs-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-bright);
}

.gs-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-refresh {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
}
.gs-refresh:active { background: var(--surface-hover); color: var(--text); }

/* Content area */
.gs-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.gs-loading {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Empty state */
.gs-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-dim);
}
.gs-empty-icon {
  font-size: 36px;
  color: var(--green);
  margin-bottom: 12px;
}
.gs-empty-hint {
  font-size: 13px;
  margin-top: 6px;
  color: var(--text-dim);
}

/* Section (per branch/worktree) */
.gs-section {
  margin-bottom: 4px;
}

.gs-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.gs-branch-icon {
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.gs-branch-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-main-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(88, 166, 255, 0.15);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 4px;
}

.gs-file-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.gs-clean-msg {
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

/* File list */
.gs-file-list {
  padding: 4px 0;
}

.gs-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.gs-file-row:last-child { border-bottom: none; }

/* Status badges */
.gs-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 3px;
}

.gs-modified  { color: #e2b340; background: rgba(226, 179, 64, 0.12); }
.gs-added     { color: #3fb950; background: rgba(63, 185, 80, 0.12); }
.gs-deleted   { color: #f85149; background: rgba(248, 81, 73, 0.12); }
.gs-renamed   { color: #a371f7; background: rgba(163, 113, 247, 0.12); }
.gs-untracked { color: #8b949e; background: rgba(139, 148, 158, 0.10); }
.gs-ignored   { color: #484f58; background: rgba(72, 79, 88, 0.10); }
.gs-conflict  { color: #f85149; background: rgba(248, 81, 73, 0.20); }

/* File path (clickable) */
.gs-file-path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.gs-file-path:active {
  color: var(--blue);
}

/* Edit button on file rows */
.gs-file-edit {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.gs-file-edit:hover { opacity: 1; background: var(--surface-hover); }
.gs-file-edit:active { opacity: 1; background: var(--surface-hover); }

/* Touch targets */
@media (pointer: coarse) {
  .gs-file-row { min-height: 48px; }
  .gs-back { min-width: 44px; min-height: 44px; }
  .gs-refresh { min-width: 44px; min-height: 44px; }
  .gs-file-edit { width: 44px; height: 44px; opacity: 0.7; }
}
