/* ======================================================
   TamilAI Summary Popup
   SSL Technology
====================================================== */

.summary-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 999999;

  backdrop-filter: blur(10px);

  padding: 20px;
}

.summary-popup {
  width: min(850px, 100%);
  max-height: 90vh;

  overflow-y: auto;

  background: rgba(22, 22, 30, 0.95);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 20px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  animation: summaryPopup 0.25s ease;
}

@keyframes summaryPopup {
  from {
    opacity: 0;

    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* ======================================================
   Header
====================================================== */

.summary-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 24px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-header h2 {
  margin: 0;

  color: var(--text-primary);

  font-size: 22px;

  font-weight: 700;
}

.summary-header button {
  width: 40px;

  height: 40px;

  border: none;

  border-radius: 10px;

  cursor: pointer;

  font-size: 18px;

  color: var(--text-primary);

  background: #2d2d3f;

  transition: 0.2s;
}

.summary-header button:hover {
  background: #ff5252;
}

/* ======================================================
   Body
====================================================== */

.summary-body {
  padding: 24px;
}

.summary-body h3 {
  margin-top: 25px;

  margin-bottom: 12px;

  color: #60a5fa;

  font-size: 18px;
}

.summary-body p {
  margin: 0;

  color: #d5d7df;

  line-height: 1.8;
}

.summary-body ul {
  margin: 0;

  padding-left: 22px;
}

.summary-body li {
  color: #e4e4e4;

  margin-bottom: 12px;

  line-height: 1.7;
}

/* ======================================================
   Footer
====================================================== */

.summary-footer {
  padding: 20px 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  justify-content: flex-end;
}

.summary-footer button {
  border: none;

  cursor: pointer;

  padding: 12px 22px;

  border-radius: 12px;

  font-size: 15px;

  font-weight: 600;

  color: var(--text-primary);

  background: linear-gradient(135deg, #2563eb, #4f46e5);

  transition: 0.25s;
}

.summary-footer button:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* ======================================================
   Scrollbar
====================================================== */

.summary-popup::-webkit-scrollbar {
  width: 8px;
}

.summary-popup::-webkit-scrollbar-thumb {
  background: #444;

  border-radius: 10px;
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 768px) {
  .summary-popup {
    width: 100%;

    max-height: 95vh;

    border-radius: 18px;
  }

  .summary-header {
    padding: 16px;
  }

  .summary-body {
    padding: 18px;
  }

  .summary-footer {
    padding: 16px;
  }

  .summary-footer button {
    width: 100%;
  }
}
