/* ==========================================================================
   Career Timeline & Long-term Goals — Styles
   ========================================================================== */

.xt-timeline-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* --- Header Action Buttons ------------------------------------------------ */

.btn-goal-action {
  background: linear-gradient(135deg, #00e5ff 0%, #00b4d8 100%);
  color: #071017;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-goal-action:hover {
  background: linear-gradient(135deg, #33ebff 0%, #00c6eb 100%);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
  transform: translateY(-1px);
  color: #040a0f;
}

.btn-outline-goal {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-goal:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00e5ff;
  color: #ffffff;
}

.btn-goal-complete {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-goal-complete:hover {
  background: #00e5ff;
  color: #040a0f;
  border-color: #00e5ff;
}

.xt-badge-count,
.xt-badge-count-limit {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.xt-badge-count {
  background: rgba(7, 16, 23, 0.35);
  color: #071017;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.xt-badge-count-limit {
  background: #071017;
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.xt-char-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

/* --- Active Long-term Goals Showcase (Top Section) ------------------------ */

.xt-goals-section {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.xt-goals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.xt-goals-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.xt-goals-title {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.xt-goals-limit-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 2px 10px;
  border-radius: 999px;
}

.xt-goals-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.xt-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}

.xt-goal-card {
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.xt-goal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #0088ff);
}

.xt-goal-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.15);
}

.xt-goal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.xt-goal-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.xt-goal-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.xt-goal-remove-btn:hover {
  color: #ff5252;
}

.xt-goal-content-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
}

.xt-goal-preview-slot {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  background: #0d0f14;
}

.xt-goal-thumb-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.xt-goal-thumb-canvas:hover {
  transform: scale(1.04);
}

.xt-goal-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.xt-goal-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.xt-goal-date {
  color: #00e5ff;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.xt-goal-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xt-goal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Empty goal slot placeholder */
.xt-goal-slot-empty {
  border: 2px dashed rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 229, 255, 0.02);
  cursor: pointer;
  transition: all 0.22s ease;
  min-height: 180px;
}

.xt-goal-slot-empty:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.xt-empty-slot-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.xt-goal-slot-empty h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.xt-goal-slot-empty p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0 0 0.85rem;
  max-width: 240px;
  line-height: 1.35;
}

/* --- Timeline Controls ---------------------------------------------------- */

.xt-timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.xt-view-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--xt-line);
  border-radius: 999px;
  padding: 3px;
}

.xt-view-switch__btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.xt-view-switch__btn:hover {
  color: var(--white);
}

.xt-view-switch__btn.is-active {
  background: var(--primary);
  color: #121015;
  font-weight: 700;
}

/* --- The Career Timeline Stream ------------------------------------------- */

.xt-career {
  position: relative;
  width: 100%;
}

.xt-career__group {
  margin-bottom: 2.5rem;
}

.xt-career__year {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xt-career__year-text {
  letter-spacing: 0.5px;
}

.xt-career__count {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Redesigned horizontal milestone event card */
.xt-career__event-card {
  background: rgba(18, 20, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  align-items: center;
  transition: all 0.22s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.xt-career__event-card:hover {
  border-color: rgba(240, 126, 19, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.xt-career__event-card.is-goal-event {
  border-color: rgba(0, 229, 255, 0.28);
}

.xt-career__event-card.is-goal-event:hover {
  border-color: rgba(0, 229, 255, 0.55);
}

/* Embedded small card preview on the page */
.xt-event-card-preview-wrap {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0d0c11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  flex-shrink: 0;
}

.xt-event-preview-thumb {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xt-event-card-preview-wrap:hover .xt-event-preview-thumb {
  transform: scale(1.05);
}

.xt-thumb-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.xt-event-card-preview-wrap:hover .xt-thumb-zoom-badge {
  opacity: 1;
  background: var(--primary);
  color: #121015;
}

.xt-event-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.xt-event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.xt-event-card-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.xt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.xt-badge--orange {
  background: rgba(240, 126, 19, 0.12);
  color: #f07e13;
  border: 1px solid rgba(240, 126, 19, 0.3);
}

.xt-badge--cyan {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.xt-badge--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.xt-event-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.xt-event-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.15rem 0 0.45rem;
  line-height: 1.3;
}

.xt-event-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

.xt-event-coach {
  color: var(--white);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(240, 126, 19, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
}

.xt-event-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost-destructive {
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.25);
  color: #ff5252;
  transition: all 0.15s ease;
}

.btn-ghost-destructive:hover {
  background: rgba(255, 82, 82, 0.15);
  border-color: #ff5252;
}

/* --- Share Modal Styling -------------------------------------------------- */

.xt-share-wrap {
  display: grid;
  place-items: center;
  padding: 0.5rem 0;
}

.xt-share-preview-canvas {
  width: 100%;
  max-width: min(90vw, 520px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: block;
}

.xt-modal:has(.xt-share-wrap) .modal-content,
.xt-modal:has(.xt-share-preview-canvas) .modal-content {
  background: #0d0f14 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85) !important;
}

.xt-modal:has(.xt-share-wrap) .xt-modal__footer,
.xt-modal:has(.xt-share-preview-canvas) .xt-modal__footer {
  justify-content: center !important;
  gap: 1.25rem !important;
}

/* --- Goal Selectable Tags in Modal ----------------------------------------- */

.xt-tag--goal-selectable {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #00e5ff;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.xt-tag--goal-selectable:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
}

.xt-tag--goal-selectable.is-selected {
  background: #00e5ff;
  color: #071017;
  font-weight: 700;
  border-color: #00e5ff;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 768px) {
  .xt-career__event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .xt-event-card-preview-wrap {
    width: 100%;
    max-width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .xt-goals-grid {
    grid-template-columns: 1fr;
  }

  .xt-goal-content-wrap {
    flex-direction: column;
  }

  .xt-goal-preview-slot {
    width: 100%;
    max-width: 180px;
    height: 180px;
    margin: 0 auto;
  }
}
