.user-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
}

.avatar-container {
  outline: none;
  /* Remove potential focus border */
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: none;
  /* Remove any border on the avatar */
}

.avatar-frame-image {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

/* Make frame larger on desktop displays */
@media (min-width: 769px) {
  .avatar-frame-image {
    width: 60px;
    height: 60px;
  }
}

/* Enhanced 2D Comic-styled Footer */
.manga-footer {
  margin-top: 30px;
  margin-bottom: 70px;
  padding: 0;
}

.comic-panel-footer {
  position: relative;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f0f0f0' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM10 37a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm10-17h20v20H20V20zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14z'/%3E%3C/g%3E%3C/svg%3E");
  margin: 0 auto;
  max-width: 800px;
  padding: 20px 30px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
  border: 4px solid #000;
  border-radius: 2px;
}

.comic-zigzag {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
}

.comic-zigzag.top {
  top: -10px;
  background: linear-gradient(-45deg, white 10px, transparent 0),
    linear-gradient(45deg, white 10px, transparent 0);
  background-size: 20px 20px;
  background-position: left top;
}

.comic-zigzag.bottom {
  bottom: -10px;
  background: linear-gradient(-45deg, transparent 10px, white 0),
    linear-gradient(45deg, transparent 10px, white 0);
  background-size: 20px 20px;
  background-position: left bottom;
}

.social-links-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0 20px;
  flex-wrap: wrap;
}

.comic-social-link {
  text-decoration: none;
}

.comic-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: black;
  position: relative;
  transition: all 0.3s ease;
  border: 3px solid black;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
}

.comic-bubble:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8) 5%,
    transparent 30%
  );
  pointer-events: none;
}

.comic-social-link:nth-child(1) .comic-bubble {
  background-color: #3b5998;
  color: white;
}

.comic-social-link:nth-child(2) .comic-bubble {
  background-color: #5865f2;
  color: white;
}

.comic-social-link:nth-child(3) .comic-bubble {
  background-color: #4caf50;
  color: white;
}

.comic-social-link:nth-child(4) .comic-bubble {
  background-color: #1da1f2;
  color: white;
}

.comic-social-link:hover .comic-bubble {
  transform: scale(1.2) rotate(15deg);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 1);
}

.comic-panel-footer {
  font-family: "Nunito", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.comic-copyright {
  font-family: "Bangers", "Nunito", cursive, sans-serif;
}

.copyright-text {
  font-size: 1.3rem;
  color: #000;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  font-weight: 600;
}

.copyright-tagline {
  font-size: 0.9rem;
  color: #333;
  font-family: "Nunito", "Roboto", sans-serif;
  font-weight: normal;
}

/* Mobile Responsive Font Adjustments */
@media (max-width: 768px) {
  .comic-panel-footer {
    margin: 0 15px;
    padding: 15px;
  }

  .social-links-container {
    gap: 10px;
  }

  .comic-bubble {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .copyright-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    word-spacing: 1px;
  }

  .copyright-tagline {
    font-size: 0.85rem;
    letter-spacing: 0;
  }
}

@media (max-width: 480px) {
  .comic-panel-footer {
    padding: 10px;
    margin: 0 10px;
  }

  .comic-bubble {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .copyright-text {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    word-break: keep-all;
  }

  .comic-copyright {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* Enhanced user icon in footer when not logged in */
.user-icon,
.user-icon a {
  background-color: #1e90ff; /* Blue background */
  color: #fff;
  border: 2px solid #000; /* Black border */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; /* Increased size */
  height: 42px; /* Increased size */
  padding: 0;
  transition: all 0.3s ease;
}

.user-icon i {
  font-size: 1.4rem; /* Larger icon */
  background: transparent;
}

.user-icon:hover {
  transform: scale(1.1);
}
