/* skill-scores.css — Ascendia Vitae www.ascendiavitae.com */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-family: 'Poppins', sans-serif;
  color: #333;
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-placeholder {
  width: 170px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #4a3c8c;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-menu li a:hover { color: #764ba2; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: #4a3c8c; border-radius: 3px; }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.main-content { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.page-header, .results-card, .registration-section {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.page-header { text-align: center; }
.page-header h1 { color: #4a3c8c; font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p  { color: #666; font-size: 1.1rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,94,234,0.4); }

.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }

/* ── Results card internals ──────────────────────────────────────────────────── */
.results-card h2 {
  color: #4a3c8c;
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  text-align: center;
}

.assessment-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item   { text-align: center; }
.info-label  { font-size: 0.9rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.info-value  { font-size: 1.5rem; font-weight: 700; color: #764ba2; }

.chart-container { position: relative; height: 500px; margin: 2rem 0; }

/* ── Score explanation ───────────────────────────────────────────────────────── */
.score-explanation {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.score-explanation h3 { color: #1565c0; margin-bottom: 0.75rem; font-size: 1.1rem; }
.score-explanation p  { color: #0d47a1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }

/* ── Skill categories ────────────────────────────────────────────────────────── */
.skill-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-box { padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.strengths-box { background: linear-gradient(135deg, #d4edda, #c3e6cb); border: 2px solid #28a745; }
.weaknesses-box { background: linear-gradient(135deg, #f8d7da, #f5c6cb); border: 2px solid #dc3545; }
.neutral-box    { background: linear-gradient(135deg, #e2e3e5, #d6d8db); border: 2px solid #6c757d; }

.category-box h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strengths-box h3  { color: #155724; }
.weaknesses-box h3 { color: #721c24; }
.neutral-box h3    { color: #383d41; }

/* ── Skill items ─────────────────────────────────────────────────────────────── */
.skill-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  gap: 0.75rem;
}

.skill-name { font-weight: 600; font-size: 1rem; }

.skill-scores-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.skill-percentage {
  font-weight: 700;
  font-size: 1.4rem;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.skill-raw-score { font-weight: 600; font-size: 1rem; padding: 6px 12px; border-radius: 6px; }

.skill-level {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.score-positive     { background: #d4edda; color: #155724; }
.score-negative     { background: #f8d7da; color: #721c24; }
.score-neutral      { background: #e2e3e5; color: #383d41; }
.score-beginner     { background: #f8d7da; color: #721c24; }
.score-intermediate { background: #fff3cd; color: #856404; }
.score-advanced     { background: #d4edda; color: #155724; }

/* ── Registration section ────────────────────────────────────────────────────── */
.registration-section { text-align: center; }

.registration-header { margin-bottom: 2rem; }
.registration-header h2    { color: #4a3c8c; font-size: 2rem; margin-bottom: 0.5rem; }
.registration-header .subtitle { color: #666; font-size: 1.1rem; }

.registration-content { max-width: 700px; margin: 0 auto; }
.registration-icon    { font-size: 5rem; margin-bottom: 1.5rem; }

.registration-benefits {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left: 4px solid #4caf50;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: left;
}

.registration-benefits h3 { color: #2e7d32; margin-bottom: 1rem; font-size: 1.3rem; }

.benefits-list { list-style: none; padding: 0; }

.benefits-list li {
  color: #1b5e20;
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  line-height: 1.6;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ── Registration form ───────────────────────────────────────────────────────── */
.registration-form-container {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #333; }

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: white;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-group small { color: #666; font-size: 0.9rem; display: block; margin-top: 0.25rem; }

.password-message { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.password-match    { color: #28a745; }
.password-no-match { color: #dc3545; }

.btn-register {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,0.4); }

.privacy-note { margin-top: 1rem; font-size: 0.9rem; color: #666; }

/* ── Loading / error ─────────────────────────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 3rem;
  color: white;
  font-size: 1.2rem;
}

.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.error-message {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #721c24;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.error-message h2 { color: #dc3545; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-container { padding: 1rem; }
  .menu-toggle   { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active    { max-height: 300px; }
  .nav-menu li        { width: 100%; text-align: center; padding: 0.75rem 0; }
  .logo-placeholder   { width: 140px; height: 40px; font-size: 0.85rem; }
  .main-content       { padding: 2rem 1rem; }

  .page-header, .results-card, .registration-section { padding: 2rem 1.5rem; }

  .page-header h1     { font-size: 2rem; }
  .chart-container    { height: 350px; }
  .skill-categories   { grid-template-columns: 1fr; }
  .assessment-info    { grid-template-columns: 1fr 1fr; }

  .skill-percentage   { font-size: 1.2rem; min-width: 70px; padding: 6px 12px; }
  .skill-raw-score    { font-size: 0.9rem; padding: 5px 10px; }
  .skill-level        { font-size: 0.85rem; padding: 5px 12px; }
}
