/* header.css */

@import url('https://fonts.googleapis.com/css2?family=Macondo&display=swap');


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  margin-top: 20px;
  max-width: 60%;
  font-family: 'Macondo', cursive;
}

/* Left side: profile image */
.header-left {
  flex: 0 0 auto;
}

.profile-pic {
  width: 70px;
  height: 70px;
  border-radius: 10%;
  object-fit: cover;
  /* border: 2px solid rgba(255, 255, 255, 0.5); */
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
} 

/* Right side: navigation links */
.header-right {
  flex: 1;
  text-align: right;
}

.nav-links {
  display: flex;
  gap: 25px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-family: 'Macondo', cursive;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.2s ease;
}


/* Light mode → links follow the theme (black) */
.light-mode .nav-links a {
  color: #000000;
}

/* Dark mode → links follow the theme (white) */
.dark-mode .nav-links a {
  color: #ffffff;
}

/* Hover → purple, always */
.nav-links a:hover {
  color: #c57dff;  /* light purple */
  text-shadow: 0 0 5px rgba(197, 125, 255, 0.4);
  transform: translateY(-2px);
}

.profile-pic {
  width: 80px;
  height: 80px;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Add to header.css */
.clickable-pic {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}


/* Animation for image change */
.profile-pic {
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}
/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .profile-pic {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
}

#profile-pic {
  pointer-events: all !important;
  cursor: pointer !important;
}


/* ----- ACTIVE LINK STYLE ----- */
.nav-links a.active {
  color: #ffd6d6;
}

.nav-links a.active::after {
  width: 100%;
  background-color: #ffd6d6;
}


/* Wrapper for controlling particle explosion */
.profile-wrapper {
  position: relative;
  display: inline-block;
}

/* Particle styles */
.particle {
  position: absolute;
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff3b3b;
  pointer-events: none;
  animation: particle-fly 0.8s ease-out forwards;
  user-select: none;
  z-index: 999;
  opacity: 1;
}

/* Explosion animation */
@keyframes particle-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc((var(--x) * 1px)),
      calc((var(--y) * 1px))
    ) scale(0.3);
  }
}


.explosion-piece {
  position: fixed;
  width: 22px;
  height: 22px;
  color: rgb(171, 28, 28);
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  z-index: 9999;
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

.explosion-piece::before {
  content: "?";
}