/* CV Stylesheet - Jan Rojek */
/* Modern, professional design with 2-column layout */

:root {
  /* JPR Consulting Palette */
  --primary: #111827; /* gray-900 */
  --primary-light: #1f2937; /* gray-800 */
  --accent: #10b981; /* emerald-500 (grünlich) */
  --accent-light: #34d399; /* emerald-400 */
  --text: #374151; /* gray-700 */
  --text-light: #6b7280; /* gray-500 */
  --bg: #ffffff;
  --bg-sidebar: #f3f4f6; /* gray-100 */
  --border: #d1d5db; /* gray-300 */
  --success: #059669; /* emerald-600 */
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #f0f4f8;
}

.cv-container {
  max-width: 900px;
  margin: 20px auto;
  background: var(--bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* Sidebar */
.sidebar {
  background: var(--bg-sidebar);
  padding: 40px 25px;
  border-right: 1px solid var(--border);
}

/* Photo */
.photo-container {
  text-align: center;
  margin-bottom: 30px;
}

.photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  box-shadow: 0 4px 15px rgba(45, 55, 72, 0.2);
}

.name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 15px;
  letter-spacing: -0.5px;
}

.title {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 5px;
}

/* Contact Section */
.contact-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Skills Section */
.skills-section {
  margin-bottom: 25px;
}

.skill-category {
  margin-bottom: 15px;
}

.skill-category-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.skill-tag.highlight {
  background: var(--accent);
}

/* Languages */
.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.language-name {
  font-weight: 500;
}

.language-level {
  display: flex;
  gap: 3px;
}

.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.level-dot.filled {
  background: var(--accent);
}

/* Main Content */
.main-content {
  padding: 40px 35px;
}

/* Summary */
.summary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.7;
}

.summary strong {
  color: var(--accent-light);
}

/* Main Sections */
.main-section {
  margin-bottom: 30px;
}

.main-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Experience Items */
.experience-item {
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.experience-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.experience-company {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.experience-date {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-sidebar);
  padding: 3px 10px;
  border-radius: 12px;
}

.experience-description {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}

.experience-highlights {
  list-style: none;
}

.experience-highlights li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}

.experience-highlights li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.highlight-metric {
  font-weight: 600;
  color: var(--primary);
}

/* KPI Badges */
.experience-kpi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.kpi-badge {
  background: #ecfdf5; /* emerald-50 */
  border: 1px solid #a7f3d0; /* emerald-200 */
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: #047857; /* emerald-700 */
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.experience-highlights-group {
  margin-top: 10px;
}

.experience-highlights-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.client-tag {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-light);
}

/* Education */
.education-item {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.education-degree {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.education-school {
  font-size: 13px;
  color: var(--text-light);
}

.education-date {
  font-size: 12px;
  color: var(--text-light);
}

/* Portfolio Links */
.portfolio-section {
  margin-top: 20px;
}

.portfolio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}

.portfolio-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.portfolio-link svg {
  width: 14px;
  height: 14px;
}

/* Portfolio Card */
.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.portfolio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 6px rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.portfolio-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.portfolio-card-header svg {
  width: 16px;
  height: 16px;
}

.portfolio-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
  padding: 0;
  margin: 0;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.tech-category {
  background: var(--bg-sidebar);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tech-category.wide {
  grid-column: 1 / -1;
}

.tech-category-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-list {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    background: var(--bg);
  }

  .cv-container {
    display: block;
    margin: 0;
    box-shadow: none;
  }

  .sidebar {
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .photo-container {
    margin-bottom: 25px;
  }

  .photo {
    width: 120px;
    height: 120px;
  }

  .name {
    font-size: 22px;
  }

  .contact-section {
    margin-bottom: 20px;
  }

  .contact-item {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .skill-category {
    margin-bottom: 12px;
  }

  .skill-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .language-item {
    font-size: 12px;
  }

  .main-content {
    padding: 25px 20px;
  }

  .summary {
    padding: 20px;
    font-size: 13px;
    margin-bottom: 25px;
  }

  .main-section {
    margin-bottom: 25px;
  }

  .main-section-title {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .experience-item {
    margin-bottom: 20px;
    padding-left: 15px;
  }

  .experience-header {
    flex-direction: column;
    gap: 5px;
  }

  .experience-title {
    font-size: 14px;
  }

  .experience-company {
    font-size: 12px;
  }

  .experience-date {
    font-size: 11px;
    align-self: flex-start;
  }

  .experience-highlights li {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tech-category {
    padding: 12px;
  }

  .tech-category-title {
    font-size: 11px;
  }

  .tech-list {
    font-size: 11px;
  }

  .education-item {
    margin-bottom: 15px;
    padding-left: 15px;
  }

  .education-degree {
    font-size: 13px;
  }

  .education-school {
    font-size: 12px;
  }

  .portfolio-link {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .sidebar {
    padding: 25px 15px;
  }

  .main-content {
    padding: 20px 15px;
  }

  .photo {
    width: 100px;
    height: 100px;
  }

  .name {
    font-size: 20px;
  }

  .summary {
    padding: 15px;
    font-size: 12px;
  }
}

/* ===== Download PDF Button ===== */
.download-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(49, 130, 206, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  z-index: 1000;
}

.download-btn:hover {
  background: #2c5aa0;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(49, 130, 206, 0.4), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .download-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .download-btn span {
    display: none;
  }
}

@media print {
  .download-btn, .no-print {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
