/* ==========================================================================
   Antigravity Portfolio - Hire Me Quick-Connect Modal Styles
   Compact, Modern Glassmorphic Dialog (Zero-Scroll on standard viewports)
   ========================================================================== */

.hire-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hire-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.hire-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hire-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: hidden;
  z-index: 2;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Fallback for ultra small screens (e.g. landscape phone < 450px) */
@media only screen and (max-height: 520px) {
  .hire-modal__dialog {
    max-height: 94vh;
    overflow-y: auto;
  }
}

.hire-modal.is-open .hire-modal__dialog {
  transform: scale(1) translateY(0);
}

.hire-modal__content {
  position: relative;
  background: var(--base-tint, #161618);
  border: 1px solid var(--stroke-elements, rgba(255, 255, 255, 0.12));
  border-radius: var(--_radius-m, 2rem);
  padding: 2.4rem 2.4rem 2rem;
  box-shadow: 0 3rem 6rem -1.5rem rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Light mode overrides */
[color-scheme="light"] .hire-modal__content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2.5rem 5rem -1rem rgba(108, 63, 197, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Close button */
.hire-modal__close-btn {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--base, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke-elements, rgba(255, 255, 255, 0.1));
  color: var(--t-muted, #999);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.hire-modal__close-btn:hover {
  background: #6c3fc5;
  border-color: #aa70e0;
  color: #ffffff;
  transform: rotate(90deg);
}

.hire-modal__close-btn:focus-visible {
  outline: 2px solid var(--ps-accent, #aa70e0);
  outline-offset: 2px;
}

/* Header */
.hire-modal__header {
  margin-bottom: 1.8rem;
  padding-right: 3rem;
}

.hire-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font: normal 700 1.15rem/1 var(--_font-default, sans-serif);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.hire-modal__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.5;
  }
}

.hire-modal__title {
  font: normal 800 2.3rem/1.2 var(--_font-accent, sans-serif);
  color: var(--t-bright, #ffffff);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.hire-modal__subtitle {
  font: normal 400 1.35rem/1.5 var(--_font-default, sans-serif);
  color: var(--t-medium, #bbb);
  margin: 0;
}

/* Channels List */
.hire-modal__channels {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

/* Channel Card */
.hire-channel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.6rem;
  border-radius: 1.4rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  position: relative;
}

/* WhatsApp Channel */
.hire-channel--whatsapp {
  background: rgba(37, 211, 102, 0.05);
  border: 1.5px solid rgba(37, 211, 102, 0.25);
}

.hire-channel--whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem -0.6rem rgba(37, 211, 102, 0.35);
}

.hire-channel--whatsapp .hire-channel__action {
  background: #25d366;
  color: #0b2e16;
}

.hire-channel--whatsapp:hover .hire-channel__action {
  background: #22c55e;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Gmail Channel */
.hire-channel--gmail {
  background: rgba(234, 67, 53, 0.05);
  border: 1.5px solid rgba(234, 67, 53, 0.25);
}

.hire-channel--gmail:hover {
  background: rgba(234, 67, 53, 0.12);
  border-color: #ea4335;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem -0.6rem rgba(234, 67, 53, 0.35);
}

.hire-channel--gmail .hire-channel__action {
  background: #ea4335;
  color: #ffffff;
}

.hire-channel--gmail:hover .hire-channel__action {
  background: #d93025;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

/* Channel Icon Box */
.hire-channel__icon-box {
  width: 4.6rem;
  height: 4.6rem;
  min-width: 4.6rem;
  border-radius: 1.3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.hire-channel__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Channel Info */
.hire-channel__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.hire-channel__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hire-channel__name {
  font: normal 800 1.55rem/1.2 var(--_font-accent, sans-serif);
  color: var(--t-bright, #ffffff);
}

.hire-channel__tag {
  font: normal 700 1rem/1 var(--_font-default, sans-serif);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--t-medium, #ccc);
  letter-spacing: 0.02em;
}

[color-scheme="light"] .hire-channel__tag {
  background: rgba(0, 0, 0, 0.06);
  color: #555;
}

.hire-channel__desc {
  font: normal 500 1.2rem/1.35 var(--_font-default, sans-serif);
  color: var(--t-muted, #888);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hire-channel__subtext {
  font: normal 700 1.2rem/1.2 var(--_font-default, sans-serif);
  color: var(--t-medium, #aaa);
}

/* Action Pill inside channel */
.hire-channel__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font: normal 800 1.15rem/1 var(--_font-default, sans-serif);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.hire-channel__action i {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.hire-channel:hover .hire-channel__action i {
  transform: translate(2px, -2px);
}

/* Footer / Quick Copy */
.hire-modal__footer {
  padding-top: 1.4rem;
  border-top: 1px solid var(--stroke-elements, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hire-modal__quick-copy {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hire-copy-btn {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--base, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--stroke-elements, rgba(255, 255, 255, 0.1));
  border-radius: 1rem;
  color: var(--t-medium, #ccc);
  font: normal 600 1.15rem/1 var(--_font-default, sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.hire-copy-btn:hover {
  background: rgba(108, 63, 197, 0.12);
  border-color: var(--ps-accent, #aa70e0);
  color: var(--t-bright, #ffffff);
}

.hire-copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #22c55e;
}

.hire-modal__or-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font: normal 500 1.2rem/1.3 var(--_font-default, sans-serif);
  color: var(--t-muted, #777);
  text-align: center;
}

.hire-form-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ps-accent, #aa70e0);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hire-form-link:hover {
  color: var(--t-bright, #ffffff);
  transform: translateY(2px);
}

/* Toast Notification */
.hire-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 100000;
  padding: 1rem 2rem;
  background: #111114;
  border: 1px solid #22c55e;
  border-radius: 999px;
  color: #ffffff;
  font: normal 700 1.25rem/1 var(--_font-default, sans-serif);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hire-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hire-toast i {
  color: #22c55e;
  font-size: 1.6rem;
}

/* Mobile adjustments */
@media only screen and (max-width: 480px) {
  .hire-modal {
    padding: 1rem;
  }

  .hire-modal__content {
    padding: 2rem 1.6rem 1.6rem;
    border-radius: 1.8rem;
  }

  .hire-modal__title {
    font-size: 2rem;
  }

  .hire-channel {
    padding: 1rem 1.2rem;
    gap: 1rem;
  }

  .hire-channel__icon-box {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
  }

  .hire-channel__action {
    padding: 0.5rem 0.9rem;
    font-size: 1.05rem;
  }

  .hire-modal__quick-copy {
    flex-direction: column;
  }

  .hire-copy-btn {
    width: 100%;
  }
}
