/**
 * Styles for WordPress Surgery Congress Popup (wpscp)
 * High-end Medical Presentation Aesthetic
 */

:root {
  --wpscp-primary: #0a2540;
  --wpscp-primary-rgb: 10, 37, 64;
  --wpscp-accent: #0d9488;
  --wpscp-accent-gradient: linear-gradient(135deg, #0d9488, #0f766e);
  --wpscp-gold: #c5a880;
  --wpscp-gold-gradient: linear-gradient(135deg, #d4af37, #aa7c11);
  --wpscp-bg: rgba(255, 255, 255, 0.85);
  --wpscp-text: #1e293b;
  --wpscp-text-muted: #64748b;
  --wpscp-shadow: 0 20px 40px -15px rgba(10, 37, 64, 0.3);
  --wpscp-radius: 24px;
}

/* Modal Overlay */
.wpscp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.wpscp-overlay.wpscp-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.wpscp-modal {
  position: relative;
  width: 90%;
  max-width: 540px;
  background: var(--wpscp-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--wpscp-radius);
  box-shadow: var(--wpscp-shadow);
  padding: 0;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wpscp-text);
  box-sizing: border-box;
}

.wpscp-overlay.wpscp-active .wpscp-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.wpscp-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--wpscp-text);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wpscp-close-btn:hover {
  background: #ffffff;
  color: #ef4444;
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Top Decorative Header */
.wpscp-header-banner {
  background: var(--wpscp-primary);
  background-image: radial-gradient(at top left, rgba(13, 148, 136, 0.3) 0%, transparent 70%), 
                    linear-gradient(135deg, var(--wpscp-primary) 0%, #1e1b4b 100%);
  padding: 40px 32px 32px 32px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #c5a880; /* Elegant gold accent border */
}

/* Decorative background elements */
.wpscp-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.wpscp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wpscp-gold);
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: wpscp-pulse 3s infinite alternate;
}

@keyframes wpscp-pulse {
  0% { opacity: 0.85; box-shadow: 0 2px 5px rgba(197, 168, 128, 0.05); }
  100% { opacity: 1; box-shadow: 0 2px 10px rgba(197, 168, 128, 0.2); }
}

.wpscp-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* Modal Body */
.wpscp-body {
  padding: 32px 32px 36px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.wpscp-intro-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wpscp-text-muted);
  margin-bottom: 28px;
  margin-top: 0;
}

.wpscp-intro-text strong {
  color: var(--wpscp-primary);
}

/* Event Info Details */
.wpscp-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.wpscp-detail-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.wpscp-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 8px 16px rgba(10, 37, 64, 0.05);
}

.wpscp-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: var(--wpscp-accent);
  font-size: 20px;
  flex-shrink: 0;
}

.wpscp-detail-content {
  display: flex;
  flex-direction: column;
}

.wpscp-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wpscp-text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.wpscp-detail-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--wpscp-primary);
}

/* Modal Actions */
.wpscp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpscp-btn-primary {
  display: inline-block;
  background: var(--wpscp-accent-gradient);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  text-align: center;
}

.wpscp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  opacity: 0.95;
}

.wpscp-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--wpscp-text-muted) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
}

.wpscp-btn-secondary:hover {
  color: var(--wpscp-text) !important;
}

/* Support for Responsive Design */
@media (max-width: 576px) {
  .wpscp-modal {
    width: 92%;
    border-radius: 20px;
  }
  .wpscp-header-banner {
    padding: 32px 24px 24px 24px;
  }
  .wpscp-title {
    font-size: 20px;
  }
  .wpscp-body {
    padding: 24px 24px 28px 24px;
  }
  .wpscp-detail-card {
    padding: 12px 14px;
  }
  .wpscp-icon-wrapper {
    width: 38px;
    height: 38px;
    margin-right: 12px;
    font-size: 16px;
  }
  .wpscp-detail-value {
    font-size: 14px;
  }
}
