/* Custom Substack icon styling */
.fa-newspaper:before {
  /* Keep default newspaper icon as fallback */
}

/* Substack link - use default color, only change icon color */
a[href*="substack.com"] .svg-inline--fa {
  color: #FF6719;
}

a[href*="substack.com"]:hover .svg-inline--fa {
  color: #e55a15;
}

/* Make avatar clickable */
.author__avatar img {
  cursor: pointer;
  transition: transform 0.2s;
}

.author__avatar img:hover {
  transform: scale(1.05);
}

/* Modal overlay */
.avatar-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.2s;
}

.avatar-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal content */
.avatar-modal-content {
  position: relative;
  background: white;
  padding: 0;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s;
}

.avatar-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
