/* Custom Social Icons for the existing minimal theme sidebar */

/* Style the JavaScript-injected social links */
.sidebar-social-links {
  margin-top: 1rem;
}

.sidebar-social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-social-links li {
  margin-bottom: 0.55rem;
}

.sidebar-social-links li:last-child {
  margin-bottom: 0;
}

.sidebar-social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-social-links a:hover {
  background-color: rgba(0,0,0,0.04);
  transform: translateX(3px);
  color: #007acc;
}

.sidebar-social-links i {
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
  text-align: center;
}

/* Font Awesome 6 specific styling */
.sidebar-social-links .fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.sidebar-social-links .fa-brands {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.sidebar-social-links .fa-regular {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}

.sidebar-social-links span {
  font-weight: 500;
}

/* Social icon colors - updated for fa-brands */
.sidebar-social-links .fa-envelope {
  color: #d44638;
}

.sidebar-social-links .fa-github {
  color: #333;
}

.sidebar-social-links .fa-linkedin {
  color: #0077b5;
}

.sidebar-social-links .fa-twitter {
  color: #1da1f2;
}

.sidebar-social-links .fa-graduation-cap {
  color: #4285f4;
}

.sidebar-social-links .fa-file-lines {
  color: #666;
}

/* Hover effects for icon colors */
.sidebar-social-links a:hover .fa-envelope {
  color: #b31b1b;
}

.sidebar-social-links a:hover .fa-github {
  color: #000;
}

.sidebar-social-links a:hover .fa-linkedin {
  color: #005885;
}

.sidebar-social-links a:hover .fa-twitter {
  color: #0c7abf;
}

.sidebar-social-links a:hover .fa-graduation-cap {
  color: #3367d6;
}

.sidebar-social-links a:hover .fa-file-lines {
  color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
  .sidebar-social-links {
    margin-top: 1rem;
  }
  
  .sidebar-social-links a {
    padding: 0.35rem 0.45rem;
  }
  
  .sidebar-social-links i {
    width: 18px;
    margin-right: 8px;
    font-size: 14px;
  }
}

/* Timeline styling */
.timeline-section {
  margin: 2.5rem 0 3rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 36px;
  width: 2px;
  background: linear-gradient(180deg, #d5dbe5 0%, #bfc8d6 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #3a6cf6;
  background-color: #fff;
  box-shadow: 0 10px 18px rgba(58, 108, 246, 0.18);
  overflow: hidden;
}

.timeline-logo > a,
.timeline-subitem-logo > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.timeline-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.timeline-content {
  padding-left: 4px;
}

.timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.timeline-organization {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f2933;
}

.timeline-duration {
  font-size: 0.95rem;
  color: #5f6c7b;
  white-space: nowrap;
}

.timeline-role {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #4d5968;
  line-height: 1.4;
  font-style: italic;
}

.timeline-mentor {
  font-style: normal;
  font-weight: 600;
  color: #3a6cf6;
}

.timeline-mentor:hover {
  color: #274bcc;
}

.timeline-description {
  margin: 0.6rem 0 0;
  font-size: 1em;
  line-height: 1.5;
  color: #374151;
}

.timeline-description-list {
  margin: 0.5rem 0 0.9rem 1.4rem;
  padding: 0;
  color: #374151;
}

.timeline-description-list li {
  margin-bottom: 0.35rem;
}

.paper-entry {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.paper-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.paper-logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 18px rgba(58, 108, 246, 0.18);
  object-fit: contain;
}

.paper-body {
  flex: 1;
}

.paper-code-link {
  margin-left: 0.45rem;
  color: #f97316;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.paper-code-link:hover {
  color: #c2410c;
}

.timeline-subitems {
  position: relative;
  margin-top: 0.85rem;
  margin-left: -16px;
  padding-left: 0;
}

.timeline-subitem {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.timeline-subitem:last-child {
  margin-bottom: 0;
}

.timeline-subitem::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 24px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #d5dbe5 0%, #bfc8d6 100%);
}

.timeline-subitem-logo {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #3a6cf6;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(58, 108, 246, 0.18);
  overflow: hidden;
}

.timeline-subitem-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.timeline-subitem-content {
  padding-top: 2px;
}

.timeline-subitem-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.92rem;
  font-weight: 600;
  color: #243046;
}

.timeline-subitem-duration {
  font-size: 0.88rem;
  color: #5f6c7b;
  white-space: nowrap;
}

.timeline-subitem-role {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: #4d5968;
  line-height: 1.4;
  font-style: italic;
}

.timeline-subitem-note {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #394553;
}

.blog-archive {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.blog-archive li {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.blog-archive a {
  color: #1f2933;
  text-decoration: none;
}

.blog-archive a:hover {
  color: #274bcc;
}

.blog-empty {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed rgba(55, 65, 81, 0.25);
  border-radius: 8px;
  background-color: rgba(249, 250, 251, 0.7);
  color: #374151;
}

.nav-current {
  font-weight: 700;
  color: #274bcc;
}

.post-article {
  max-width: 640px;
  margin: 0 auto 4rem;
}

.post-breadcrumb {
  margin: 1rem 0 0.5rem;
}

.post-breadcrumb a {
  color: #274bcc;
  text-decoration: none;
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.post-title {
  margin: 0;
  font-size: 2rem;
  color: #1f2933;
}

.post-date {
  margin: 0.3rem 0 2rem;
  color: #6b7280;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-content {
  font-size: inherit;
  line-height: 1.5;
  color: inherit;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-comments {
  margin-top: 3rem;
}

.lifting-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.lift-card {
  text-align: center;
}

.lift-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.2rem;
}

.lift-link:hover .lift-circle {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(58, 108, 246, 0.24);
}

.lift-link:hover .lift-label {
  color: #274bcc;
}

.lift-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #3a6cf6;
  background: radial-gradient(circle at top, rgba(58, 108, 246, 0.15), rgba(58, 108, 246, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 10px 24px rgba(58, 108, 246, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lift-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lift-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2933;
}

.lift-label {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #364151;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .lifting-stats {
    gap: 1.5rem;
  }

  .lift-circle {
    width: 100px;
    height: 100px;
  }

  .lift-circle img {
    width: 40px;
    height: 40px;
  }

  .lift-number {
    font-size: 1.5rem;
  }

  .lift-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 28px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 0.85rem;
  }

  .timeline-logo {
    width: 48px;
    height: 48px;
  }

  .timeline-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .timeline-subitems {
    margin-left: -12px;
    padding-left: 0;
  }

  .timeline-subitem {
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
  }

  .timeline-subitem-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .timeline-subitem::before {
    left: -32px;
    width: 32px;
  }
}

/* Header title alignment */
.site-title {
  text-align: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2933;
}

/* Circular profile image styling */
header img {
  display: block;
  width: 160px;
  max-width: 80%;
  border-radius: 50%;
  border: 3px solid #3a6cf6;
  padding: 6px;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(58, 108, 246, 0.18);
  transition: transform 0.25s ease;
  margin: 0 auto;
}

header img:hover {
  transform: translateY(-2px);
}

/* Layout adjustments for narrower sidebar and wider content */
.wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "header section"
    "footer section";
  column-gap: 2rem;
  align-items: flex-start;
}

header, section, footer {
  position: static;
  float: none;
  display: block;
}

header {
  grid-area: header;
  width: 100%;
}

section {
  grid-area: section;
  width: 100%;
}

footer {
  grid-area: footer;
  width: 100%;
}

@media (max-width: 1200px) {
  .wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "section"
      "footer";
    row-gap: 2rem;
    padding: 0 1rem 0 1.4rem;
  }
}

@media (max-width: 992px) {
  .wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "section"
      "footer";
    gap: 1.5rem;
    padding: 0 0.9rem 0 1.2rem;
  }

  header, section, footer {
    width: auto;
  }
}

.paper-logo img + img {
  margin-left: 0.35rem;
}
.post-comments h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #1f2933;
}

.shader-playground {
  margin: 2rem 0 4rem;
}
