/* CV website — project-specific styles
   Base design tokens and components live in bergerdesign.css
   Structure mirrors datetomas/static/style.css */

/* ── Hero ── */
.hero-text .subtitle {
  font-size: 1rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-avatar {
  flex-shrink: 0;
}

.avatar-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--orange-faint);
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% top;
  display: block;
}

[data-theme="dark"] .avatar-circle {
  background: #2A1800;
}

/* ── Highlights (= green flags) ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.flag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), border-color var(--transition);
}

.flag-card h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.flag-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Skills (= specs) ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.spec-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: background var(--transition), border-color var(--transition);
}

.spec-group h4 {
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Experience ── */
.exp-card {
  border-left: 4px solid var(--orange) !important;
}

.exp-card+.exp-card {
  margin-top: 1rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.exp-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.exp-company {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.1rem 0 0;
}

.exp-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.exp-location {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.6rem;
}

.exp-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.exp-roles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.exp-role {
  padding: 0 !important;
}

.exp-role-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.exp-role-toggle:hover {
  color: var(--orange);
}

.exp-role-body {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.exp-role-body p {
  margin-top: 0.6rem;
}

.exp-tags {
  margin-top: 0.5rem;
}

/* ── Education ── */
.edu-card+.edu-card {
  margin-top: 1rem;
}

.edu-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

/* ── Deep dives (identical to datetomas) ── */
.deep-dives-teaser {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.deep-dives-teaser p {
  margin-bottom: 1.25rem;
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.btn-ghost:hover {
  background: var(--orange-faint);
  color: var(--orange-dark);
  text-decoration: none;
}

#deep-dives-section {
  margin-top: 0.5rem;
}

.deep-dive-card {
  padding: 0;
}

.deep-dive-card+.deep-dive-card {
  margin-top: 0.75rem;
}

.deep-dive-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.deep-dive-toggle:hover {
  color: var(--orange);
}

.deep-dive-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--orange);
  transition: transform 0.2s ease;
  display: inline-block;
}

.deep-dive-toggle.open .deep-dive-chevron,
.exp-role-toggle.open .deep-dive-chevron {
  transform: rotate(90deg);
}

.deep-dive-body {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.deep-dive-body p {
  margin-top: 0.75rem;
}

/* ── Contact form ── */
.form-section {
  margin-top: 3rem;
}

.form-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background var(--transition);
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status--ok {
  color: #2a9d5c;
}

.form-status--err {
  color: #cc3333;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero {
    flex-direction: column-reverse;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
  }

  .avatar-circle {
    width: 110px;
    height: 110px;
  }

  .exp-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}