/*!
 * developemnt.css - http://kodester.com/
 * Version - 2.5.0
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2026 Kasanova
 */

/* ===== OVERLAY ===== */
.dev-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
  /* Isolation: prevent outside styles from leaking in and vice versa */
  contain: layout style paint;
  isolation: isolate;
}
.dev-overlay.dev-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== MODAL — Solid Gradient ===== */
.dev-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  background:
    radial-gradient(circle at top left, #080808 0%, transparent 50%),
    radial-gradient(circle at top right, #080808 0%, transparent 50%),
    radial-gradient(circle at bottom left, #080808 0%, transparent 50%),
    radial-gradient(circle at bottom right, #080808 0%, transparent 50%),
    linear-gradient(145deg, #065c3a, #088755, #065c3a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(8, 135, 85, 0.25);
  transform: scale(1) translateY(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 1;
  /* Containment: isolate modal layout from external styles */
  contain: layout style paint;
  /* Reset inherited properties to prevent host site style leakage */
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.dev-overlay.dev-hidden .dev-modal {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
}

/* ===== Reset all child elements inside modal ===== */
.dev-modal *,
.dev-modal *::before,
.dev-modal *::after {
  box-sizing: border-box;
}

/* ===== CLOSE BUTTON ===== */
.dev-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* Reset any inherited button styles from host site */
  padding: 0;
  margin: 0;
  line-height: 1;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  outline: none;
}
.dev-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}
.dev-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* ===== ICON ===== */
.dev-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: devFloat 3s ease-in-out infinite;
  /* Reset inherited styles */
  padding: 0;
  line-height: 1;
}
.dev-icon i {
  font-size: 1.4rem;
  color: #fff;
  /* Reset inherited styles */
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  border: none;
  background: none;
}

/* ===== TEXT ===== */
.dev-modal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  /* Reset any inherited heading styles from host site */
  line-height: 1.3;
  padding: 0;
  border: none;
  background: none;
  text-transform: none;
}
.dev-modal p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin: 0 0 22px;
  /* Reset any inherited paragraph styles from host site */
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
}

/* ===== CTA BUTTON ===== */
.dev-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #088755;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  /* Reset any inherited button styles from host site */
  line-height: 1;
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  outline: none;
  width: auto;
  min-width: 0;
  max-width: none;
}
.dev-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  background: #f0faf5;
}
.dev-cta:active {
  transform: translateY(0);
}
.dev-cta:focus-visible {
  outline: 2px solid rgba(8, 135, 85, 0.5);
  outline-offset: 2px;
}

/* ===== FOOTER LINK ===== */
.dev-footer-link {
  display: block;
  margin-top: 14px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  /* Reset any inherited link styles from host site */
  padding: 0;
  border: none;
  background: none;
  line-height: 1.4;
}
.dev-footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== ANIMATION ===== */
@keyframes devFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .dev-overlay {
    padding: 16px;
  }
  .dev-modal {
    max-width: 100%;
    padding: 28px 22px 24px;
    border-radius: 16px;
  }
  .dev-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .dev-icon i {
    font-size: 1.2rem;
  }
  .dev-modal h2 {
    font-size: 0.95rem;
  }
  .dev-modal p {
    font-size: 0.78rem;
  }
}
