/* User Profile Modal */
.user-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.user-profile-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.user-profile-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98), rgba(20, 24, 49, 0.98));
  border-radius: 24px;
  border: 2px solid var(--primary);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.4);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-profile-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.user-profile-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff4444;
  transform: rotate(90deg);
}

.user-profile-modal-body {
  padding: 40px 30px 30px;
}

.user-profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.user-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.user-profile-header h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
}

.user-profile-address {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: inline-block;
}

.user-profile-info {
  margin-top: 20px;
}

.user-profile-bio {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.user-profile-bio p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.user-profile-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--light);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.user-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateX(5px);
}

.social-icon-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.clickable-profile {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-profile:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.comment-author-pic.clickable-profile:hover,
.user-avatar.clickable-profile:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 107, 237, 0.5);
}

.comment-author-name.clickable-profile:hover,
.user-name.clickable-profile:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .user-profile-modal-content {
    max-width: 95%;
    margin: 20px;
  }

  .user-profile-modal-body {
    padding: 30px 20px 20px;
  }

  .user-profile-pic {
    width: 100px;
    height: 100px;
  }

  .user-profile-header h2 {
    font-size: 1.5rem;
  }
}
