/* Demo Modal Styles - MY RH Studio */

/* Modal Overlay */
.demo-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal Container */
.demo-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Modal Header */
.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #071126;
  color: #fff;
  flex-shrink: 0;
  z-index: 10;
}

.demo-modal-header .demo-title {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', Arial, sans-serif;
}

.demo-modal-header .demo-badge {
  font-size: 11px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin-left: 12px;
  font-weight: 500;
}

.demo-modal-close {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: #dc2626;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', Arial, sans-serif;
}

.demo-modal-close:hover {
  background: #b91c1c;
  border-color: #f87171;
}

.demo-modal-close svg {
  width: 18px;
  height: 18px;
}

/* Modal Body (Iframe Container) */
.demo-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.demo-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Protection Overlay - Transparent layer to prevent inspection */
.demo-protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Demo Info Bar */
.demo-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: #dce8ff;
  color: #071126;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  flex-shrink: 0;
}

.demo-info-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Loading State */
.demo-modal-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.demo-modal-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(7, 17, 38, 0.1);
  border-top-color: #2f7df2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-modal-loading p {
  font-size: 14px;
  color: #5c6474;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .demo-modal-header {
    padding: 10px 16px;
  }

  .demo-modal-header .demo-title {
    font-size: 15px;
  }

  .demo-modal-header .demo-badge {
    display: none;
  }

  .demo-modal-close {
    padding: 6px 14px;
    font-size: 13px;
  }

  .demo-modal-close .close-text {
    display: none;
  }

  .demo-info-bar {
    padding: 6px 16px;
    font-size: 11px;
  }
}

/* Disable selection on modal elements */
.demo-modal-overlay * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Prevent body scroll when modal is open */
body.demo-modal-open {
  overflow: hidden;
}
