/* Resume Checker Tool Styles */

/* Two-column input */
.rc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.rc-label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
}

.rc-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rc-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .82rem;
}

.rc-file-name {
  font-size: .8rem;
  color: var(--text-dim);
  font-style: italic;
}

.rc-upload-hint {
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.rc-inputs textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}

.btn-lg {
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 600;
}

/* Score Hero */
.rc-score-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 20px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rc-gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.rc-gauge { width: 100%; height: 100%; }

.rc-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rc-gauge-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.rc-gauge-label {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.rc-grade-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rc-grade {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.rc-grade-desc {
  font-size: .88rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 180px;
}

/* Section titles */
.rc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Score cards grid */
.rc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.rc-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 8px;
}

.rc-card-icon { font-size: 1.1rem; }

.rc-card-score {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rc-card-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.rc-card-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width .6s ease;
  width: 0;
}

.rc-card-note {
  font-size: .78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* Keyword section */
.rc-keyword-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.rc-kw-bar-wrap { margin-bottom: 18px; }

.rc-kw-bar-label {
  font-size: .9rem;
  margin-bottom: 6px;
}

.rc-kw-bar {
  height: 12px;
  background: var(--bg-input);
  border-radius: 6px;
  overflow: hidden;
}

.rc-kw-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--green);
  transition: width .8s ease;
  width: 0;
}

/* Keyword categories */
.rc-kw-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rc-kw-cat {
  flex: 1;
  min-width: 180px;
  background: var(--bg-input);
  border-radius: 6px;
  padding: 12px;
}

.rc-kw-cat-title {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.rc-kw-cat-pct {
  font-size: 1.3rem;
  font-weight: 700;
}

.rc-kw-cat-detail {
  font-size: .75rem;
  color: var(--text-dim);
}

/* Keyword badges */
.rc-kw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rc-kw-found-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}

.rc-kw-missing-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 8px;
}

.rc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rc-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
}

.rc-badge-found {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .3);
}

.rc-badge-missing {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .3);
}

/* Bullet analysis */
.rc-bullet-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-bullet-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rc-bullet-score {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}

.rc-bullet-score.good { background: var(--green); }
.rc-bullet-score.ok { background: #eab308; }
.rc-bullet-score.bad { background: var(--red); }

.rc-bullet-body { flex: 1; min-width: 0; }

.rc-bullet-text {
  font-size: .85rem;
  line-height: 1.45;
  margin-bottom: 4px;
  word-break: break-word;
}

.rc-bullet-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rc-bullet-flag {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.rc-flag-good {
  background: rgba(34, 197, 94, .12);
  color: var(--green);
}

.rc-flag-warn {
  background: rgba(234, 179, 8, .15);
  color: #a16207;
}

.rc-flag-bad {
  background: rgba(239, 68, 68, .12);
  color: var(--red);
}

/* Suggestions */
.rc-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-suggestion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.5;
}

.rc-suggestion strong {
  color: var(--primary);
}

.rc-suggestion-priority {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.rc-priority-high {
  background: rgba(239, 68, 68, .15);
  color: var(--red);
}

.rc-priority-medium {
  background: rgba(234, 179, 8, .15);
  color: #a16207;
}

.rc-priority-low {
  background: rgba(34, 197, 94, .15);
  color: var(--green);
}

/* Warnings */
.rc-warnings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-warning {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rc-warning-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.rc-no-warnings {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--green);
  font-weight: 500;
}

/* Dark mode badge adjustments */
[data-theme="dark"] .rc-flag-warn {
  color: #facc15;
}

/* Mobile */
@media (max-width: 768px) {
  .rc-inputs {
    grid-template-columns: 1fr;
  }
  .rc-cards {
    grid-template-columns: 1fr;
  }
  .rc-score-hero {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
  }
  .rc-gauge-wrap {
    width: 130px;
    height: 130px;
  }
  .rc-gauge-num { font-size: 2.2rem; }
  .rc-grade { font-size: 2.2rem; }
  .rc-kw-grid {
    grid-template-columns: 1fr;
  }
  .rc-bullet-item {
    flex-direction: column;
    gap: 8px;
  }
  .rc-bullet-score {
    width: 30px;
    height: 30px;
    font-size: .72rem;
  }
}

@media (max-width: 900px) {
  .rc-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rc-cards {
    grid-template-columns: 1fr;
  }
  .rc-kw-cats {
    flex-direction: column;
  }
}
