/* ==========================================================================
   AUDITSHIELD AI - GITHUB PR AUDIT GATE STYLING
   ========================================================================== */

.gh-main-container {
  max-width: 1120px;
  margin: 28px auto 80px;
  padding: 0 20px;
}

/* Repo Bar */
.gh-repo-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  backdrop-filter: blur(20px);
}

.gh-repo-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gh-repo-icon { font-size: 18px; }

.gh-repo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.gh-badge-pill {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-glass);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.gh-pr-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-switch-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pr-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pr-chip:hover {
  background: var(--bg-surface-hover);
  color: #fff;
}

.pr-chip.active {
  background: rgba(2, 132, 199, 0.2);
  border-color: var(--cyan-bright);
  color: #fff;
}

/* PR Container */
.gh-pr-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.gh-pr-title-section {
  padding: 24px;
  border-bottom: 1px solid #30363d;
}

.gh-pr-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.gh-pr-title {
  font-size: 20px;
  font-weight: 700;
  color: #c9d1d9;
}

.gh-pr-number {
  font-size: 20px;
  color: #8b949e;
  font-weight: 400;
}

.gh-pr-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.gh-status-badge {
  background: #238636;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}

.gh-status-badge.merged {
  background: #8957e5;
}

.gh-meta-text {
  color: #8b949e;
}

.gh-meta-text strong {
  color: #c9d1d9;
}

.gh-branch {
  background: rgba(110, 118, 129, 0.2);
  color: #58a6ff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Merge Gate Box */
.gh-merge-box {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 20px 24px;
}

.gh-merge-status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #21262d;
}

.gh-status-icon {
  font-size: 26px;
}

.gh-status-details {
  flex: 1;
}

.gh-status-heading {
  font-size: 14px;
  font-weight: 700;
  color: #c9d1d9;
}

.gh-status-desc {
  font-size: 12px;
  color: #8b949e;
  margin-top: 2px;
}

.gh-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #c9d1d9;
}

.check-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-indicator {
  font-weight: 800;
  font-size: 14px;
}

.check-indicator.fail { color: #f85149; }
.check-indicator.pass { color: #3fb950; }

.check-text {
  color: #8b949e;
  font-size: 11px;
}

/* Diff Section */
.gh-diff-section {
  padding: 24px;
}

.gh-diff-header {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px 6px 0 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #c9d1d9;
}

.diff-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.diff-stat-badges {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.diff-add { color: #3fb950; }
.diff-del { color: #f85149; }

.gh-diff-code-wrapper {
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #0d1117;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
}

.diff-code-line {
  padding: 4px 14px;
  display: flex;
  gap: 14px;
  line-height: 1.6;
}

.diff-code-line.add {
  background: rgba(46, 160, 67, 0.15);
  color: #e6edf3;
}

.diff-line-num {
  color: #6e7681;
  width: 24px;
  text-align: right;
  user-select: none;
}

/* Bot Inline Review Card */
.bot-review-card {
  margin: 12px 18px 18px;
  background: #161b22;
  border: 1px solid #f85149;
  border-radius: 6px;
  overflow: hidden;
}

.bot-review-card.resolved {
  border-color: #3fb950;
}

.bot-card-header {
  background: rgba(248, 81, 73, 0.1);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #c9d1d9;
  border-bottom: 1px solid rgba(248, 81, 73, 0.2);
}

.bot-review-card.resolved .bot-card-header {
  background: rgba(63, 185, 80, 0.1);
  border-bottom-color: rgba(63, 185, 80, 0.2);
}

.bot-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.bot-badge-tag {
  background: #238636;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

.bot-card-body {
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #c9d1d9;
  line-height: 1.5;
}
