/* ═══════════════════════════════════════
   COMPONENTS.CSS — Post, Thread, Card Components
   ═══════════════════════════════════════ */

/* ─── Post ─── */
.post {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 20px;
  transition: all var(--transition-base);
  position: relative;
}

.post:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.post__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.post__user {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.3;
}

.post__handle {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.post__more {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.post__more:hover {
  color: var(--text-primary);
}

.post__content {
  margin-bottom: 14px;
}

.post__content p {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.post__content p:last-child {
  margin-bottom: 0;
}

.post__tagline {
  color: var(--text-tertiary) !important;
  font-size: 13px;
  margin-top: 12px !important;
  font-style: italic;
}

.post__actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}

.post__action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-size: 13px;
  transition: all var(--transition-fast);
  flex: 1;
  justify-content: center;
}

.post__action svg {
  width: 16px;
  height: 16px;
}

.post__action:hover {
  background: var(--accent-light);
}

.post__action:nth-child(1):hover { color: var(--reply-color); }
.post__action:nth-child(2):hover { color: var(--retweet-color); }
.post__action:nth-child(3):hover { color: var(--heart-color); }
.post__action:nth-child(4):hover { color: var(--accent); }

.post__action span {
  font-size: 12px;
}

/* ─── Profile Hero ─── */
.profile {
  padding: 24px 24px 0;
  margin-top: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.profile__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.profile__avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  margin-top: 8px;
}

.profile__info {
  flex: 1;
  min-width: 0;
}

.profile__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile__handle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.profile__bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.profile__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
  text-decoration: none;
}

.profile__link svg {
  width: 14px;
  height: 14px;
}

.profile__link:hover {
  text-decoration: underline;
}

.profile__stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.profile__stats strong {
  color: var(--text-primary);
  font-weight: 600;
}

.profile__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.profile__btn--primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.profile__btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

.profile__btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.profile__btn--outline:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-hover);
}

.profile__social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.profile__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  position: relative;
}

.profile__social-link svg {
  width: 16px;
  height: 16px;
}

.profile__social-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* Tooltip for social links */
.profile__social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: white;
  background: var(--text-primary);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
}

.profile__social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ─── Profile Tabs ─── */
.profile__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.profile__tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.profile__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.profile__tab:hover {
  color: var(--text-primary);
}

.profile__tab.is-active {
  color: var(--text-primary);
}

.profile__tab.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── Image Gallery ─── */
.gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 12px -16px 8px;
  padding: 0 16px;
  cursor: grab;
}

.gallery::-webkit-scrollbar {
  height: 4px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.gallery__track {
  display: flex;
  gap: 8px;
  width: max-content;
}

.gallery__img {
  height: 180px;
  width: auto;
  max-width: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-tertiary);
}

.gallery__img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery__img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 10;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 10;
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@media (max-width: 640px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .gallery__img {
    height: 140px;
  }
}

/* ─── Floating Resume Button ─── */
.float-resume {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.float-resume svg {
  width: 16px;
  height: 16px;
}

.float-resume:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
  background: var(--accent-hover);
  color: white;
}

/* Tooltip */
.float-resume::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: var(--text-primary);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
}

.float-resume:hover::after {
  opacity: 1;
}

/* ─── Thread Chain ─── */
.thread-chain {
  margin: 12px 0 8px;
  padding-left: 8px;
}

.thread {
  display: flex;
  gap: 12px;
  position: relative;
}

.thread + .thread {
  margin-top: 2px;
}

.thread__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  padding-top: 6px;
}

.thread__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  border: 2px solid var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.thread--clickable:hover .thread__dot {
  border-color: var(--accent);
  background: var(--accent);
}

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

.thread:last-child .thread__line {
  display: none;
}

.thread__body {
  flex: 1;
  padding-bottom: 8px;
}

.thread__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.thread__avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.thread__user {
  display: flex;
  flex-direction: column;
}

.thread__name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.thread__handle {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.thread__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.thread__body .chip {
  pointer-events: none;
}

/* ─── Chips ─── */
.thread__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chip:hover {
  background: var(--accent);
  color: white;
}

.chip--sm {
  padding: 2px 10px;
  font-size: 11px;
}

/* ─── Clickable Thread ─── */
.thread--clickable {
  cursor: pointer;
}

.thread--clickable .thread__body {
  border-radius: var(--radius-md);
  padding: 6px 12px 2px 12px;
  margin: -6px -12px -2px -12px;
  transition: background var(--transition-fast);
}

.thread--clickable:hover .thread__body {
  background: var(--bg-hover);
}

.thread__open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
}

.thread__open-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.thread__open-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.thread__open-btn:hover svg {
  transform: translateX(3px);
}

/* ─── Thread Modal Overlay ─── */
.thread-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.thread-overlay--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.thread-modal {
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.thread-overlay--open .thread-modal {
  transform: scale(1) translateY(0);
}

/* Mobile: bottom sheet style */
@media (max-width: 640px) {
  .thread-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .thread-modal {
    max-height: 92vh;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  }

  .thread-overlay--open .thread-modal {
    transform: translateY(0);
  }

  .thread-modal__body {
    padding: 16px;
  }
}

.thread-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.thread-modal__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.thread-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: var(--bg-tertiary);
  border: none;
}

.thread-modal__close svg {
  width: 18px;
  height: 18px;
}

.thread-modal__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.thread-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* ─── Thread Detail Post ─── */
.thread-detail {
  margin-bottom: 20px;
}

.thread-detail__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.thread-detail__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-tertiary);
}

.thread-detail__info h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.thread-detail__info p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.thread-detail__intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ─── Thread Detail Task ─── */
.thread-task {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.thread-task__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

.thread-task__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.thread-task__connector {
  width: 2px;
  flex: 1;
  background: var(--border-color);
  margin-top: 6px;
}

.thread-task:last-child .thread-task__connector {
  display: none;
}

.thread-task__body {
  flex: 1;
  padding-bottom: 4px;
  overflow: hidden;
}

.thread-task__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.thread-task__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.thread-task__type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
}

.thread-task__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.thread-task__details {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.thread-task__details li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.thread-task__details li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.thread-task__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.thread-task__arch {
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.thread-task__arch-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.thread-task__arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.arch-node {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
}

.arch-arrow {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.thread-task__lessons {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.thread-task__lessons-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ─── Continue Thread ─── */
.continue-thread {
  display: none !important;
}

.continue-thread__line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-color), var(--accent));
  margin-bottom: 16px;
}

.continue-thread__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.continue-thread__btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.continue-thread__btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.continue-thread__btn:hover svg {
  transform: translateY(2px);
}

.continue-thread__preview {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Project Cards ─── */
.project-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px 0 8px;
}

.project-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.project-card__cover {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-card__icon {
  width: 32px;
  height: 32px;
  color: white;
  opacity: 0.9;
}

.project-card__body {
  padding: 14px 16px;
  overflow: hidden;
}

.project-card__category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 6px;
}

.project-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.project-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.project-card__links {
  display: flex;
  gap: 12px;
}

.project-card__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.project-card__link svg {
  width: 14px;
  height: 14px;
}

.project-card__link:hover {
  color: var(--accent);
}

/* ─── Clickable Project Card (external link, e.g. Google Drive) ─── */
.project-card__gdrive {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card--gdrive {
  cursor: pointer;
}

.project-card__gdrive-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.project-card__gdrive-label svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.project-card--gdrive:hover .project-card__gdrive-label svg {
  transform: translate(2px, -2px);
}

/* ─── Skills Grid ─── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 8px;
}

.skills-category {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-light);
}

.skills-category__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skills-chips .chip {
  font-size: 11px;
  padding: 3px 10px;
}

/* ─── CFA Section Chips ─── */
.cfa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px;
}

/* ─── Timeline ─── */
.timeline {
  margin: 12px 0 8px;
  padding-left: 12px;
}

.timeline__item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 16px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--border-color);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__content {
  flex: 1;
}

.timeline__year {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.timeline__sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.timeline__desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* ─── Certificate Cards ─── */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 8px;
}

.cert-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cert-card__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}

.cert-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.cert-card__learnings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* ─── Contact Links ─── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text-primary);
  transform: translateX(4px);
}

.contact-link--resume {
  border-color: var(--accent);
  border-style: dashed;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
}

.contact-link--resume:hover {
  background: var(--accent);
  color: white;
}

.contact-link--resume:hover svg {
  color: white;
}

/* ─── Reply Chain ─── */
.reply-chain {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply {
  display: flex;
  gap: 14px;
}

.reply__indent {
  width: 2px;
  background: var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
}

.reply__body {
  flex: 1;
  padding: 8px 0;
}

.reply__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.reply__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.reply__handle {
  font-size: 12px;
  color: var(--text-tertiary);
}

.reply__body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Footer ─── */
.feed-footer {
  text-align: center;
  padding: 40px 0 20px;
}

.feed-footer__line {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.feed-footer__text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feed-footer__roles {
  margin: 20px auto;
  text-align: center;
}

.feed-footer__roles-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feed-footer__roles-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.contact__cta {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feed-footer__text svg {
  width: 14px;
  height: 14px;
  color: var(--heart-color);
}

.feed-footer__sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.feed-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.feed-footer__top svg {
  width: 14px;
  height: 14px;
}

.feed-footer__top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Top Bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.topbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.topbar__logo span {
  font-size: 16px;
  font-weight: 700;
}



.topbar .theme-toggle {
  position: static;
  width: 36px;
  height: 36px;
}

@media (min-width: 1200px) {
  .topbar__inner {
    margin: 0 calc((100vw - var(--sidebar-width)) / 2) 0 auto;
  }
}

@media (max-width: 480px) {
  .topbar__inner {
    padding: 10px 12px;
  }
}

/* ─── Sidebar ─── */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: max(calc((100vw - 1040px) / 2 - 320px), 16px);
  width: 280px;
  max-height: 100vh;
  overflow-y: auto;
  padding: 32px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar__section {
  margin-bottom: 20px;
  padding: 0 4px;
  overflow: hidden;
}

.sidebar__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Open to Work */
.sidebar__status {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px !important;
  width: 100%;
}

.sidebar__status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sidebar__status-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #00ba7c;
  box-shadow: 0 0 8px rgba(0, 186, 124, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sidebar__status-text {
  font-size: 14px;
  font-weight: 700;
  color: #00ba7c;
}

.sidebar__status-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sidebar__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar__contact-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar__contact-btn:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}

/* Pinned */
.sidebar__pinned-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar__pinned-card:hover {
  border-color: var(--accent);
}

.sidebar__pinned-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__pinned-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.sidebar__pinned-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar__pinned-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.sidebar__pinned-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

.sidebar__pinned-btn {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar__pinned-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Quick Links */
.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar__link svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.sidebar__link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar__link:hover svg {
  color: var(--accent);
}

/* Footer */
.sidebar__footer {
  margin-top: 28px;
}

.sidebar__footer p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.sidebar__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.sidebar__footer-links a {
  font-size: 11px;
  color: var(--text-tertiary);
}

.sidebar__footer-links a:hover {
  color: var(--text-secondary);
}

/* Show sidebar on large screens */
@media (min-width: 1200px) {
  .sidebar {
    display: block;
  }
}

@media (max-width: 1199px) {
  .sidebar {
    display: none !important;
  }
}
