/* Resume CSS - Styles for the resume module */

/* CSS Variables for colors and common values */
:root {
    --primary-color: #3490dc;
    --primary-hover: #2779bd;
    --success-color: #38c172;
    --danger-color: #e3342f;
    --warning-color: #f6993f;
    --text-color: #333;
    --text-muted: #6c757d;
    --light-gray: #f8f9fa;
    --gray: #ced4da;
    --dark-gray: #6c757d;
    --border-color: #eaeaea;
    --border-radius: 6px;
    --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
  }
  
  /* Resume container */
  .resume-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
  }
  
  .resume-main {
    flex: 1;
    min-width: 0;
  }
  
  .resume-sidebar {
    width: 320px;
    flex-shrink: 0;
  }
  
  /* Resume card */
  .resume-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
  }
  
  .resume-card:hover {
    box-shadow: var(--box-shadow-hover);
  }
  
  /* Section headers */
  .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f9f9f9;
  }
  
  .section-title i {
    color: var(--primary-color);
    margin-right: 8px;
  }
  
  .section-body {
    padding: 20px;
  }
  
  /* Resume header */
  .resume-header {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: start;
  }
  
  .resume-avatar-container {
    flex-shrink: 0;
  }
  
  .resume-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
  }
  
  .resume-basic-info {
    flex: 1;
    min-width: 0;
  }
  
  /* Resume name and title section */
  .resume-name-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 10px;
  }
  
  .resume-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .gender-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
  }
  
  .gender-male {
    color: var(--primary-color);
  }
  
  .gender-female {
    color: #e83e8c;
  }
  
  .resume-intention {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
  }
  
  /* Download button */
  .download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .download-btn:hover {
    background-color: var(--primary-hover);
  }
  
  .download-btn.downloaded {
    background-color: var(--success-color);
  }
  
  /* Resume meta information */
  .resume-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
  }
  
  .resume-meta-item {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .resume-meta-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
  }
  
  /* Contact info */
  .resume-contact {
    background-color: rgba(52, 144, 220, 0.05);
    border: 1px solid rgba(52, 144, 220, 0.2);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-top: 15px;
    display: none;
  }
  
  .resume-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
  }
  
  .resume-contact-item:last-child {
    margin-bottom: 0;
  }
  
  .resume-contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
  }
  
  /* Empty sections */
  .empty-section {
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    font-style: italic;
  }
  
  /* Experience items (work, education, etc.) */
  .experience-item,
  .project-item,
  .education-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .experience-item:last-child,
  .project-item:last-child,
  .education-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }
  
  .item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
  }
  
  .item-date {
    color: var(--text-muted);
    font-size: 14px;
  }
  
  .item-subtitle {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .item-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre-line;
  }
  
  /* Project URL */
  .project-url {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
  }
  
  .project-url:hover {
    text-decoration: underline;
  }
  
  /* Skills list */
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .skill-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }
  
  .skill-level {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 8px;
  }
  
  /* Certificates */
  .certificate-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .certificate-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .certificate-name {
    font-size: 14px;
    font-weight: 500;
  }
  
  .certificate-date {
    color: var(--text-muted);
    font-size: 13px;
  }
  
  /* Language items */
  .language-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .language-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .language-name {
    font-size: 14px;
    font-weight: 500;
  }
  
  .language-level {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2px 10px;
    font-size: 12px;
  }
  
  /* Company box */
  .company-box {
    text-align: center;
  }
  
  .company-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
  }
  
  .company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .company-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .company-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Resume tags */
  .resume-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }
  
  .resume-tag {
    background-color: rgba(52, 144, 220, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 13px;
  }
  
  /* Similar resumes */
  .more-resumes {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .more-resume-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
  }
  
  .more-resume-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .more-resume-item:hover .more-resume-name {
    color: var(--primary-color);
  }
  
  .more-resume-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
  }
  
  .more-resume-info {
    flex: 1;
    min-width: 0;
  }
  
  .more-resume-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
  }
  
  .more-resume-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
  }
  
  .more-resume-tags {
    display: flex;
    gap: 6px;
  }
  
  .more-resume-tag {
    background-color: #f8f9fa;
    border-radius: 30px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--text-muted);
  }
  
  /* Self description */
  .self-description {
    white-space: pre-line;
    line-height: 1.6;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    padding: 10px 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
  }
  
  .breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  .breadcrumb a:hover {
    color: var(--primary-color);
  }
  
  /* Responsive styles */
  @media (max-width: 992px) {
    .resume-container {
      flex-direction: column;
    }
    
    .resume-sidebar {
      width: 100%;
    }
    
    .resume-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .resume-meta-list {
      justify-content: center;
    }
  }
  
  @media (max-width: 576px) {
    .resume-container {
      margin: 10px 0;
    }
    
    .item-header {
      flex-direction: column;
      gap: 5px;
    }
    
    .resume-meta-list {
      grid-template-columns: 1fr 1fr;
    }
    
    .resume-name-title {
      flex-direction: column;
      align-items: center;
    }
  }

  /* 简历完整度分析优化样式 */
.completion-overview {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.completion-rate-circle {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  margin-right: 15px;
  position: relative;
}

.circular-chart {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #f0f0f0;
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  0% {
      stroke-dasharray: 0 100;
  }
}

.percentage {
  fill: #333;
  font-size: 0.4em;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.completion-text {
  flex: 1;
}

.completion-level {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.completion-level.low {
  color: #f56c6c;
  background: linear-gradient(to right, #f56c6c, #ff9a9e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.completion-level.medium {
  color: #e6a23c;
  background: linear-gradient(to right, #e6a23c, #f3d19e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.completion-level.high {
  color: #67c23a;
  background: linear-gradient(to right, #67c23a, #9fe080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.completion-tip {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.completion-details {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.completion-details-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.completion-details-title:after {
  content: '';
  position: absolute;
  left: 15px;
  bottom: -1px;
  width: 40px;
  height: 3px;
  background: #0066cc;
  border-radius: 3px;
}

.completion-items {
  padding: 5px 10px;
}

.completion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  border-bottom: 1px dashed #f0f0f0;
  transition: all 0.2s ease;
}

.completion-item:last-child {
  border-bottom: none;
}

.completion-item:hover {
  background-color: #fafafa;
  transform: translateX(3px);
}

.completion-item.completed .item-name i {
  color: #67c23a;
  text-shadow: 0 0 3px rgba(103, 194, 58, 0.2);
}

.completion-item.incomplete .item-name i {
  color: #f56c6c;
  text-shadow: 0 0 3px rgba(245, 108, 108, 0.2);
}

.item-name {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.item-name i {
  margin-right: 8px;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.completion-item:hover .item-name i {
  transform: scale(1.1);
}

.item-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.importance {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.importance-high {
  background: linear-gradient(45deg, #f56c6c, #f78989);
}

.importance-medium {
  background: linear-gradient(45deg, #e6a23c, #f0b764);
}

.importance-low {
  background: linear-gradient(45deg, #909399, #a6a9ae);
}

.status-text {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.completion-item.completed .status-text {
  color: #67c23a;
}

.completion-item.incomplete .status-text {
  color: #f56c6c;
}

/* 调整圆环颜色根据完成度 */
[stroke-dasharray^="1"],
[stroke-dasharray^="2"],
[stroke-dasharray^="3"],
[stroke-dasharray^="4"],
[stroke-dasharray^="5"] {
  stroke: #f56c6c;
}

[stroke-dasharray^="6"],
[stroke-dasharray^="7"] {
  stroke: #e6a23c;
}

[stroke-dasharray^="8"],
[stroke-dasharray^="9"],
[stroke-dasharray="100, 100"] {
  stroke: #67c23a;
}