/* ═══════════════════════════════════════════════
   ATS Tools — Jobscan-Inspired Visual Design
   Clean white/blue professional styling
   ═══════════════════════════════════════════════ */

/* ── Subtle Hero Gradient ── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #e6f0fd 0%, #f5f8fa 60%, #ffffff 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 208, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

/* Remove dark floating particles — clean design */
body::after {
  display: none !important;
}

/* ── Tool Card — Clean White ── */
.tool-card {
  position: relative;
  background: #ffffff !important;
  backdrop-filter: none;
  border: 1px solid #d1dce5 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.tool-card:hover {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 102, 208, 0.1) !important;
  transform: translateY(-2px);
}

/* Top accent bar on tool card */
.tool-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, #0066d0, #4d94e8);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  opacity: 1;
}

.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 208, 0.1), transparent);
}

/* ── Enhanced Score Ring ── */
.score-display {
  padding: 2.5rem 1rem;
  position: relative;
}

.score-display::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 102, 208, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.score-ring {
  filter: drop-shadow(0 4px 15px rgba(0, 102, 208, 0.1));
}

.score-ring__fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: none;
}

.score-ring__number {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #1a3353;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* ── Enhanced Score Grid ── */
.score-grid {
  gap: var(--space-lg) !important;
}

.score-item {
  background: #ffffff !important;
  backdrop-filter: none;
  border: 1px solid #e8eef3 !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--space-xl) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.score-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 208, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.score-item:hover {
  border-color: #0066d0 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

.score-item__label {
  font-size: 0.6875rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #9aabb8;
  margin-bottom: var(--space-sm);
}

.score-item__value {
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.score-item__bar {
  height: 4px !important;
  border-radius: 4px !important;
  background: #e8eef3 !important;
  overflow: hidden;
}

.score-item__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

/* ── Enhanced Tabs ── */
.result-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: #f5f8fa;
  backdrop-filter: none;
  border-radius: var(--radius-xl);
  border: 1px solid #e8eef3;
  margin: var(--space-xl) 0;
  overflow-x: auto;
}

.result-tab {
  flex: 1;
  min-width: max-content;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: #9aabb8;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.result-tab:hover {
  color: #5e6d75;
  background: rgba(0, 102, 208, 0.04);
}

.result-tab.active {
  background: #0066d0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 102, 208, 0.2);
}

/* ── Panels ── */
.result-panel {
  display: none;
  animation: panelFadeIn 0.4s ease;
}

.result-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Keyword Tags ── */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: default;
}

.keyword-tag--found {
  background: rgba(38, 174, 96, 0.08);
  border: 1px solid rgba(38, 174, 96, 0.2);
  color: #1e9c54;
}

.keyword-tag--found:hover {
  background: rgba(38, 174, 96, 0.15);
  box-shadow: 0 2px 8px rgba(38, 174, 96, 0.1);
}

.keyword-tag--missing {
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.keyword-tag--missing:hover {
  background: rgba(231, 76, 60, 0.12);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

/* ── Issues List ── */
.issues-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.issue {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.issue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.issue--error {
  background: rgba(231, 76, 60, 0.04);
  border-color: rgba(231, 76, 60, 0.12);
}
.issue--error::before { background: #e74c3c; }

.issue--warning {
  background: rgba(243, 156, 18, 0.04);
  border-color: rgba(243, 156, 18, 0.12);
}
.issue--warning::before { background: #f39c12; }

.issue--success {
  background: rgba(38, 174, 96, 0.04);
  border-color: rgba(38, 174, 96, 0.12);
}
.issue--success::before { background: #26ae60; }

.issue--info {
  background: rgba(0, 102, 208, 0.04);
  border-color: rgba(0, 102, 208, 0.1);
}
.issue--info::before { background: #0066d0; }

.issue:hover {
  transform: translateX(4px);
}

.issue__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
}

.issue__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1a3353;
  margin-bottom: 0.25rem;
}

.issue__desc {
  font-size: 0.8125rem;
  color: #5e6d75;
  line-height: 1.6;
}

/* ── Enhanced Textareas ── */
.textarea-wrap {
  position: relative;
}

.textarea {
  width: 100%;
  min-height: 160px;
  padding: var(--space-lg);
  background: #ffffff;
  border: 1px solid #d1dce5;
  border-radius: var(--radius-xl);
  color: #1a3353;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  resize: vertical;
  transition: all 0.3s ease;
  outline: none;
}

.textarea--sm {
  min-height: 100px;
}

.textarea:focus {
  border-color: #0066d0;
  box-shadow: 0 0 0 3px rgba(0, 102, 208, 0.1);
  background: #ffffff;
}

.textarea::placeholder {
  color: #9aabb8;
  font-size: 0.875rem;
}

/* ── Enhanced Inputs ── */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #d1dce5;
  border-radius: var(--radius-lg);
  color: #1a3353;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  outline: none;
}

.input:focus {
  border-color: #0066d0;
  box-shadow: 0 0 0 3px rgba(0, 102, 208, 0.1);
  background: #ffffff;
}

.input::placeholder {
  color: #9aabb8;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aabb8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.input option {
  background: #ffffff;
  color: #1a3353;
}

/* ── Labels ── */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a3353;
  margin-bottom: var(--space-sm);
}

.label__optional {
  font-weight: 400;
  color: #9aabb8;
  font-size: 0.8125rem;
}

/* ── Form Groups ── */
.form-group {
  margin-bottom: var(--space-lg);
}

/* ── Animated Buttons ── */
.btn--lg {
  position: relative;
  overflow: hidden;
}

.btn--lg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
}

.btn--lg:hover::before {
  animation: btnShimmer 0.8s ease forwards;
}

@keyframes btnShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Callout ── */
.callout {
  padding: var(--space-xl);
  background: rgba(0, 102, 208, 0.04);
  border-left: 3px solid #0066d0;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  backdrop-filter: none;
}

.callout p {
  color: #5e6d75;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Content Section ── */
.content-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1dce5, transparent);
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3353;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content-section p {
  color: #5e6d75;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* ── Container Narrow ── */
.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ── Enhanced Cards ── */
.card {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid #e8eef3;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 208, 0.2);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a3353;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.875rem;
  color: #5e6d75;
  line-height: 1.7;
}

/* ── Grid layouts ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* ── Gradient Text ── */
.text-gradient {
  background: linear-gradient(135deg, #0066d0 0%, #4d94e8 50%, #0052a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ── Responsive Fixes ── */
@media (max-width: 768px) {
  .score-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .result-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .result-tab {
    font-size: 0.75rem;
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 480px) {
  .score-grid {
    grid-template-columns: 1fr !important;
  }
}
