/* =============================================================
   widgets.css  —  SignX modal widget styles
   Load via:  <link rel="stylesheet" href="{% static 'signx/css/widgets.css' %}">
============================================================= */


/* ── Shared overlay backdrop ── */
.widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  animation: overlayFadeIn 0.25s ease;
}
.widget-overlay.is-open { display: flex; }

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ── Shared content shell ── */
.widget-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: widgetSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

@keyframes widgetSlideUp {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}


/* ── Close button ── */
.close-widget {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.close-widget:hover { color: #0F172A; transform: rotate(90deg); }


/* ═══════════════════════════════════
   VIDEO WIDGET
═══════════════════════════════════ */
.widget-content--video {
  max-width: 900px;
  padding: 28px 28px 24px;
}

.widget-video-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  padding-right: 36px; /* clearance for close button */
}

.widget-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16 : 9 */
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0F172A;
}

.widget-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ═══════════════════════════════════
   TEXT WIDGET
═══════════════════════════════════ */
.widget-content--text {
  max-width: 520px;
  padding: 40px 44px 44px;
  text-align: center;
}

.widget-text-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.widget-text-icon i {
  font-size: 26px;
  background: linear-gradient(135deg, #2563EB, #06B6D4, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.widget-text-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 16px;
}

.widget-text-divider {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563EB, #06B6D4);
  margin: 0 auto 20px;
}

.widget-text-body {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
}


/* ═══════════════════════════════════
   SOLUTIONS ACTION ITEMS (shared)
═══════════════════════════════════ */
.sol-action-item {
  cursor: pointer;
}

.sol-action-item:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 4px;
  border-radius: 8px;
}

.sol-header-sub {
  font-size: 17px;
  color: #64748B;
  margin-top: 14px;
}


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 600px) {
  .widget-content--video { padding: 20px 16px 16px; }
  .widget-content--text  { padding: 32px 24px 32px; }
  .widget-video-title    { font-size: 15px; }
  .widget-text-title     { font-size: 19px; }
}
