/* static/css/resume_view.css */

/* Optional: keep everything scoped so it doesn't affect the rest of the site */
.resume, .resume * , .resume *::before, .resume *::after { box-sizing: border-box; }

.resume {
  max-width: 860px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  color: #1a1a2e;
  line-height: 1.6;
}

/* ── Header ── */
.resume-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 3rem 3rem 2.5rem;
}

.resume-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 0.3rem 0;
}

.headline {
  font-size: 1.1rem;
  color: #a8b8d8;
  margin: 0 0 1.4rem 0;
  font-weight: 400;
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.88rem;
  color: #c8d8f0;
}

.contact-bar a { color: #7eb8f7; text-decoration: none; }
.contact-bar a:hover { text-decoration: underline; }

/* ── Body layout ── */
.resume-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
}

.main-col {
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  border-right: 1px solid #eef0f4;
}

.side-col {
  padding: 2.5rem 2rem;
  background: #f8f9fc;
}

/* ── Sections ── */
.section { margin-bottom: 2.4rem; }
.section:last-child { margin-bottom: 0; }

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0f3460;
  border-bottom: 2px solid #0f3460;
  padding-bottom: 0.4rem;
  margin-bottom: 1.4rem;
}

/* Summary */
.summary-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}

/* Experience */
.entry { margin-bottom: 1.6rem; }
.entry:last-child { margin-bottom: 0; }

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.entry-subtitle {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.1rem;
}

.exp-sep { opacity: 0.8; }

.entry-date {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.entry ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.entry ul li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

/* Skills */
.skill-group { margin-bottom: 1.4rem; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f3460;
  margin-bottom: 0.7rem;
}

.skill-item { margin-bottom: 0.75rem; }
.skill-item:last-child { margin-bottom: 0; }

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.skill-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: #1a1a2e;
}

.skill-level-label {
  font-size: 0.7rem;
  color: #999;
  font-weight: 400;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: #e0e4ef;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f3460, #4a90d9);
  /* transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); */
  transition: width 0.6s ease;
}

/* Certifications */
.cert-item { margin-bottom: 1rem; }
.cert-item:last-child { margin-bottom: 0; }

.cert-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
}

.cert-meta {
  font-size: 0.78rem;
  color: #777;
}

.cert-meta a {
  color: #0f3460;
  text-decoration: none;
}

.cert-meta a:hover { text-decoration: underline; }

/* Projects */
.project-item { margin-bottom: 1.2rem; }
.project-item:last-child { margin-bottom: 0; }

.project-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
}

.project-title a {
  color: #0f3460;
  text-decoration: none;
}

.project-title a:hover { text-decoration: underline; }

.project-stack {
  font-size: 0.78rem;
  color: #888;
  margin: 0.15rem 0 0.4rem;
}

.project-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
}

/* Education sidebar */
.edu-item { margin-bottom: 1.2rem; }
.edu-item:last-child { margin-bottom: 0; }

.edu-degree {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.edu-institution {
  font-size: 0.82rem;
  color: #555;
}

.edu-date {
  font-size: 0.76rem;
  color: #999;
}

.edu-desc {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 680px) {
  .resume-body { grid-template-columns: 1fr; }
  .main-col { padding: 2rem 1.5rem; border-right: none; border-bottom: 1px solid #eef0f4; }
  .side-col { padding: 2rem 1.5rem; }
  .resume-header { padding: 2rem 1.5rem; }
  .resume-header h1 { font-size: 1.8rem; }
}

/* Print */
@media print {
  body { background: #fff !important; }
  .resume { box-shadow: none; border-radius: 0; margin: 0; }
}
