/* ============================================================================
   MODAL COMPONENT

   Coming Soon modal overlay with blur backdrop.

   Purpose: Display coming soon messages for features not yet implemented.

   Required HTML Structure:

   <div id="comingSoonModal" class="modal">
     <div class="modal-content">
       <div class="modal-header">
         <h2>Video Demo</h2>
         <button class="close" onclick="closeModal()">&times;</button>
       </div>
       <div class="modal-body">
         <div class="icon">🎬</div>
         <h3>Coming Soon</h3>
         <p>Description text here</p>
       </div>
       <div class="modal-footer">
         <button class="modal-button" onclick="closeModal()">Close</button>
       </div>
     </div>
   </div>

   Required JavaScript:

   function showComingSoonModal() {
     document.getElementById("comingSoonModal").style.display = "block";
     document.body.style.overflow = "hidden";
   }

   function closeModal() {
     document.getElementById("comingSoonModal").style.display = "none";
     document.body.style.overflow = "auto";
   }

   window.onclick = function (event) {
     const modal = document.getElementById("comingSoonModal");
     if (event.target == modal) {
       closeModal();
     }
   };

   Features:
   - Blur backdrop overlay with dark navy tint
   - Centered content box with navy gradient background
   - Navy blue gradient header matching site theme
   - Interactive close button with hover effect
   - Click outside to close

   Accessibility:
   - Focus trap recommended
   - ESC key to close recommended
   - aria-modal="true" recommended

   ============================================================================ */

/* ===== Modal Overlay ===== */

.modal {
  display: none;
  position: fixed;
  z-index: var(--z-index-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}


/* ===== Modal Content Box ===== */

.modal-content {
  background: linear-gradient(135deg, var(--section-dark) 0%, var(--section-medium) 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(96, 165, 250, 0.15);
  border: 1px solid var(--border-color);
}


/* ===== Modal Header ===== */

.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
  color: var(--text-primary);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  background-color: rgba(96, 165, 250, 0.1);
  color: var(--sky-blue);
}


/* ===== Modal Body ===== */

.modal-body {
  padding: 40px 30px;
  text-align: center;
}

.modal-body .icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.3));
}

.modal-body h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.75rem;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}

.modal-body .modal-note {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-style: italic;
}


/* ===== Modal Footer ===== */

.modal-footer {
  padding: 24px 30px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.modal-button {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--sky-blue) 100%);
  color: var(--white);
  border: none;
  padding: 14px 48px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--light-blue) 100%);
}
