/* Contact page styling */
.contactMe-text h2 {
  text-align: center;
  margin-top: 20vh;
  color: #1a5276;
  animation: popIn 1s ease-out forwards;
  font-size: 1.3rem;
  font-weight: 800;
}

.LI-profile-badge {
  transform: scale(0.9);
  transform-origin: top center;
  width: 100%;
  animation: popIn 1s ease-out forwards;
  margin-top: 5vh;
}
@media (max-width: 480px) {
  .LI-profile-badge {
    transform: scale(0.8);
  }
}

#leaveMessagetxt {
  color: #1a5276;
}

/* Icon styling */
.contact-icon {
  width: 10vw;
  max-width: 50px;
  object-fit: contain;
  animation: popIn 1s ease-out forwards;
  margin-top: 5vh;
  margin-left: 5vh;
}

.contact-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .contact-icon {
    width: 14vw;
  }
}

@media (max-width: 480px) {
  .contact-icon {
    width: 20vw;
    margin: 5px 10px;
  }
}

/* Guestbook styling */
.py-5 {
  margin-top: 5vh;
  margin-bottom: 10vh;
  animation: popIn 1s ease-out forwards;
}

:root {
  --gb-avatar-size: 40px;
  --gb-radius: 0.75rem;
}

.gb-avatar {
  width: var(--gb-avatar-size);
  height: var(--gb-avatar-size);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.gb-entry {
  border-radius: var(--gb-radius);
  transition: box-shadow 0.15s;
}

.gb-entry.gb-hidden {
  display: none !important;
}

.gb-entry.gb-new {
  animation: gb-pop 0.35s ease;
}
@keyframes gb-pop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#gb-show-more-btn {
  color: #0f3460;
  border-color: #0f3460;
}

#gb-show-more-btn:hover {
  background-color: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.gb-like-btn {
  font-size: 0.75rem;
  padding: 2px 12px;
  border-radius: 999px;
  margin-right: 10px;
}

.gb-like-btn.liked {
  background-color: #e8f0fe;
  border-color: #1e3a5f;
  color: #1e3a5f;
}

.gb-like-btn:not(.liked):hover {
  background-color: #1e3a5f;
}

.gb-timestamp {
  font-size: 0.72rem;
}

#gb-submit {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
}

.gb-realtime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #198754;
  animation: gb-pulse 2s infinite;
  display: inline-block;
}
@keyframes gb-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

#gb-char-count {
  font-size: 0.75rem;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Guestbook login modal styling */

/*  Admin login button */
.gb-admin-btn {
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px #0f3460 solid;
  background: transparent;
  color: #0f3460;
  cursor: pointer;
  -webkit-transition:
    background 0.2s,
    color 0.2s;
  transition:
    background 0.2s,
    color 0.2s;
}

.gb-admin-btn:hover {
  background-color: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}
.gb-admin-btn.logged-in {
  border-color: #198754;
  color: #198754;
}
.gb-admin-btn.logged-in:hover {
  background: #198754;
  color: #fff;
}

/* Login modal */

.gb-login-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 30, 55, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}
.gb-login-overlay.active {
  display: flex;
}
.gb-login-overlay.visible {
  opacity: 1;
}

.gb-login-modal {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  position: relative;
  -webkit-transform: translateY(20px) scale(0.97);
  transform: translateY(20px) scale(0.97);
  -webkit-transition:
    -webkit-transform 0.3s ease,
    opacity 0.3s ease;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 20px 60px rgba(15, 30, 55, 0.18);
}
.gb-login-overlay.visible .gb-login-modal {
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gb-login-title {
  font-size: 1rem;
  font-weight: 500;
  color: #1a5276;
  margin-bottom: 0.25rem;
}
.gb-login-sub {
  font-size: 0.75rem;
  color: #7fa6d6;
  margin-bottom: 1.25rem;
}

.gb-login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 95, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #7fa6d6;
  padding: 0;
  -webkit-transition:
    background 0.2s,
    color 0.2s;
  transition:
    background 0.2s,
    color 0.2s;
}
.gb-login-close:hover {
  background: #eaf1f8;
  color: #1e3a5f;
}

.gb-login-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(30, 58, 95, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
  outline: none;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
.gb-login-input:focus {
  border-color: #1e3a5f;
}

.gb-login-submit {
  width: 100%;
  padding: 9px;
  border-radius: 0.5rem;
  background: #1e3a5f;
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.gb-login-submit:hover {
  background: #16304f;
}
.gb-login-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gb-login-error {
  font-size: 0.75rem;
  color: #dc3545;
  margin-top: 0.5rem;
  display: none;
}

/* DELETE button — hidden by default, shown only when admin logged in */
.gb-delete-btn {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #dc3545;
  background: transparent;
  color: #dc3545;
  cursor: pointer;
  margin-left: auto;
  display: none;
  -webkit-transition:
    background 0.2s,
    color 0.2s;
  transition:
    background 0.2s,
    color 0.2s;
}
.gb-delete-btn:hover {
  background: #dc3545;
  color: #fff;
}

/* When admin mode, show all delete buttons */
body.gb-admin-mode .gb-delete-btn {
  display: inline-block;
}

/* Toast */
.gb-toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}
