/**
 * Still Growing Modal Styles
 * Theme-matched popup for under-construction pages
 */

.still-growing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.still-growing-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Overlay */
.still-growing-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 92, 47, 0.5); /* sage-green with transparency */
  backdrop-filter: blur(4px);
}

/* Modal Content */
.still-growing-modal .modal-content {
  position: relative;
  background: var(--parchment-light, #f7f4ec);
  border: 3px solid var(--sage-green, #265c2f);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(38, 92, 47, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.still-growing-modal.is-open .modal-content {
  transform: scale(1);
}

/* Close Button */
.still-growing-modal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--sage-green, #265c2f);
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.still-growing-modal .modal-close:hover {
  background: rgba(38, 92, 47, 0.1);
  transform: rotate(90deg);
}

.still-growing-modal .modal-close:focus {
  outline: 2px solid var(--sage-green, #265c2f);
  outline-offset: 2px;
}

/* Icon */
.still-growing-modal .modal-icon {
  font-size: 4rem;
  color: var(--sage-green, #265c2f);
  margin-bottom: 1.5rem;
  animation: grow 2s ease-in-out infinite;
}

@keyframes grow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Title */
.still-growing-modal .modal-title {
  font-family: 'Gentium Plus', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-green, #265c2f);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

/* Text */
.still-growing-modal .modal-text {
  font-size: 1.125rem;
  color: #2a2a2a;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .still-growing-modal .modal-content {
    padding: 2.5rem 2rem;
    max-width: 95%;
  }

  .still-growing-modal .modal-icon {
    font-size: 3rem;
  }

  .still-growing-modal .modal-title {
    font-size: 1.75rem;
  }

  .still-growing-modal .modal-text {
    font-size: 1rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .still-growing-modal,
  .still-growing-modal .modal-content,
  .still-growing-modal .modal-close {
    transition: none;
  }

  .still-growing-modal .modal-icon {
    animation: none;
  }
}
