/* ═══════════════════════════════════════
   EXPERIENCE PAGE
   Aesthetic: System diagnostic / rack dashboard
   ═══════════════════════════════════════ */

/* PAGE HEADER */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
}

.page-header__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--section-px) clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.4s 0s forwards;
}

.page-header__breadcrumb a {
  color: var(--text-2);
  transition: color 0.2s;
}

.page-header__breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { color: var(--border-hover); }

.breadcrumb-current {
  color: var(--accent);
  font-weight: 500;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s forwards;
}

.page-header__sub {
  font-size: 0.9rem;
  color: var(--text-1);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.5s 0.2s forwards;
}

/* Stat blocks (rack-style readout) */
.page-header__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.5s 0.35s forwards;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  min-width: 100px;
}

.stat-block:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

@media (max-width: 600px) {
  .page-header__stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-block:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat-block:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* SECTIONS */
.exp-section {
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
}

.exp-section--alt {
  background: var(--bg-1);
}

.exp-section__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

/* ═══════════════════════════════════════
   ENTRY LIST (Timeline)
   ═══════════════════════════════════════ */

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry {
  display: flex;
  gap: 1.25rem;
}

.entry__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
  padding-top: 1.6rem;
}

.entry__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-2);
  background: var(--bg-0);
  flex-shrink: 0;
  z-index: 1;
}

.exp-section--alt .entry__dot {
  background: var(--bg-1);
}

.entry__dot--accent {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
}

.entry__line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  margin-bottom: -4px;
}

.entry__body {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.entry__body:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.entry--featured .entry__body {
  border-color: rgba(247, 112, 98, 0.15);
  background:
    linear-gradient(135deg, rgba(247, 112, 98, 0.03) 0%, transparent 50%),
    var(--bg-card);
}

.entry__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.entry__org {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text-0);
}

.entry__location {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.1rem;
  display: block;
}

.entry__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry__role {
  font-size: 0.88rem;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.entry__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.entry__badge--blue {
  background: var(--blue-dim);
  color: var(--blue);
}

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

.entry__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.entry__list li:last-child { margin-bottom: 0; }

.entry__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Detail block (coursework) */
.entry__detail-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.detail-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  display: block;
  margin-bottom: 0.6rem;
}

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

.detail-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-1);
}

/* ═══════════════════════════════════════
   SYSTEM CARDS (Skills)
   ═══════════════════════════════════════ */

.sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}

.sys-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sys-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sys-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.sys-card__icon {
  color: var(--accent);
  font-size: 0.85rem;
  width: 1.2rem;
  text-align: center;
}

.sys-card__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-0);
  flex: 1;
}

.sys-card__status {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.sys-card__status--blue {
  color: var(--blue);
  background: var(--blue-dim);
}

.sys-card__body {
  padding: 1rem 1.1rem;
}

/* Progress bars */
.sys-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.sys-row:last-child { margin-bottom: 0; }

.sys-key {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-1);
  width: 70px;
  flex-shrink: 0;
}

.sys-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}

.sys-fill {
  display: block;
  height: 100%;
  background: var(--gradient-warm);
  border-radius: 2px;
  transition: width 0.6s var(--ease);
}

/* Tags */
.sys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sys-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-1);
  transition: all 0.2s var(--ease);
}

.sys-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-0);
}

.sys-tag--accent {
  background: var(--accent-dim);
  border-color: rgba(247, 112, 98, 0.12);
  color: var(--accent);
}

/* ═══════════════════════════════════════
   PROJECT LOG
   ═══════════════════════════════════════ */

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proj-entry {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.proj-entry:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.proj-entry__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
}

.proj-entry__content {
  flex: 1;
  min-width: 0;
}

.proj-entry__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.proj-entry__top h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--text-0);
}

/* Certification card details */
.cert__id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0;
}

.cert__desc {
  font-size: 0.82rem;
  color: var(--text-1);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */

.cta {
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--section-px);
  position: relative;
  z-index: 1;
}

.cta__content {
  max-width: 600px;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-0);
  margin: 0.5rem 0 0.75rem;
}

.cta p {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ═══════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════ */

@media (max-width: 600px) {
  .entry__sidebar { display: none; }

  .entry__top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .proj-entry {
    flex-direction: column;
    gap: 0.75rem;
  }

  .proj-entry__icon {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .proj-entry__top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
