.header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  height: 70px;
  font-size: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease;
  z-index: 3;
  padding: 1rem 3rem;
  background-color: white;
}

.hide {
  transform: translateY(-100%);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
}

.bar {
  height: 2px;
  width: 25px;
  background-color: black;
}

.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: display 0.3s ease;
}

.menu li {
  list-style: none;
}

.menu a {
  text-decoration: none;
  font-size: 1rem;
  color: black;
}

.menu a.active {
  pointer-events: none;
  opacity: 0.5;
}

.menu a:hover {
  opacity: 0.7;
}

#learn-link {
  cursor: pointer;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.learn-link-list {
  flex-direction: column;
  position: absolute;
  background-color: white;
  /* box-shadow: 1px 1px 4px 2px var(--primary-color); */
  box-shadow: 1px 1px 4px 2px gray;
  padding: 1rem 2rem;
  border-radius: 5px;
  margin-top: 1rem;
  gap: 1rem;
}

.learn-link-list li a {
  color: black;
  text-transform: capitalize;
}

#email-button {
  outline: none;
  border: none;
  color: black;
  background-color: white;
  font-size: 1rem;
  cursor: pointer;
  font-family: "MyCustomFont", sans-serif;
}

#email-button:hover {
  opacity: 0.7;
}

.modal-container {
  display: none;
}

.logout-button {
  outline: none;
  border: none;
  background-color: white;
  cursor: pointer;
  font-size: 1rem;
  font-family: "MyCustomFont", sans-serif;
  display: flex;
  gap: 0.5rem;
}

.logout-button:hover{
  opacity: 0.7;
}

.user-info {
}

.user-info .user-icon {
  height: 2rem;
  width: 2rem;
  font-size: 1rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.user-info .user-icon:hover {
  opacity: 0.75;
}

.user-info-box {
  flex-direction: column;
  position: absolute;
  display: none;
  background-color: white;
  /* box-shadow: 1px 1px 4px 2px var(--primary-color); */
  box-shadow: 1px 1px 4px 2px gray;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 0.75rem;
  right: 1rem;
  gap: 1rem;
}

.user-basic-info {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-bottom: 1px solid gray;
  padding-bottom: 0.5rem;
}

.user-basic-info div:nth-child(1) {
  color: var(--primary-color);
}

.user-basic-info div:nth-child(2) {
  color: var(--third-color);
}

.user-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-link{
  display: flex;
  gap: 0.5rem;
}

/* @media (min-width: 1200px) {
  .header-block {
    padding: 1rem 3rem;
  }
} */

@media (max-width: 768px) {
  .header-block {
    padding-right: 1rem;
  }
}

@media (max-width: 600px) {
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .hamburger-menu {
    display: flex;
  }

  .hamburger-menu:hover {
    opacity: 0.5;
  }

  .menu {
    display: none;
    align-items: flex-start;
  }

  .show-menu {
    display: flex;
    gap: 1rem;
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    z-index: 1;
    background-color: white;
    padding: 1rem 2rem;
    height: calc(100vh - 70px);
    box-shadow: 1px 1px 4px 2px gray;
    animation: fadeIn 0.3s ease;
  }

  .learn-link-list {
    flex-direction: column;
    position: static;
    box-shadow: none;
    border-radius: 0;
    gap: 1rem;
    padding: 0;
    margin: 0.5rem 0 0 1rem;
    flex-wrap: wrap;
    animation: fadeIn 0.3s ease;
  }

  .user-info-box{
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .user-basic-info{
    display: none;
  }

  .user-info{
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    margin-top: 5rem;
  }

  .user-info-box{
    position: absolute;
    bottom: 2rem;
    left: -1rem;
  }

}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }
}


/* AI */
/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0; /* Shorthand for top, left, right, bottom: 0 */
  background: rgba(0, 0, 0, 0.4); /* Darker dimming */
  backdrop-filter: blur(5px); /* Modern frosted glass effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

/* --- Modal Box --- */
.modal-box {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  
  /* Entrance Animation */
  animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Content Layout --- */
.modal-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Email Display Area --- */
.modal-content span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background-color: #f8fafc; /* Light grayish-blue background */
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'SF Mono', 'Roboto Mono', monospace;
  font-size: 0.95rem;
  color: #1e293b;
}

/* --- Close Button --- */
.close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: #94a3b8;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease;
  cursor: pointer;
  z-index: 2;
}

.close:hover {
  color: #1e293b;
}

/* --- Copy Button Styling --- */
.copy-button {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.copy-button img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* --- Success Message --- */
.email-copied-text {
  display: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #10b981; /* Success Green */
  margin-top: -0.5rem;
  text-align: right;
}
