/* =====================================
   TAMILAI DEEP SEARCH V2
===================================== */
.deep-search-popup {
  width: 700px;
  max-width: 95%;
  background: #03152d;
  border: 1px solid #00d9ff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.deep-search-popup h2 {
  text-align: center;
  color: #00d9ff;
  margin: 0;
}
#deepSearchInput {
  width: 100%;
  min-height: 120px;
  background: #0a2348;
  border: 1px solid #00d9ff;
  border-radius: 14px;
  padding: 15px;
  color: var(--text-primary);
  resize: none;
  font-size: 14px;
  line-height: 1.5;
}
.deep-search-actions {
  display: flex;
  gap: 10px;
}
.deep-search-actions button {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
#runDeepSearchBtn {
  background: #00d9ff;
  color: #03152d;
}
#closeDeepSearchBtn {
  background: #1a2d55;
  color: var(--text-primary);
}
.deep-search-results {
  min-height: 260px;
  max-height: 350px;
  overflow-y: auto;
  background: #071f40;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 16px;
  padding: 18px;
  color: var(--text-primary);
  line-height: 1.6;
}
.deep-search-results h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 10px;
}
.deep-search-results h4 {
  color: #57e7ff;
  margin: 15px 0 8px;
}
.deep-search-results ul {
  padding-left: 20px;
}
.deep-search-results li {
  margin-bottom: 6px;
}
.deep-search-results::-webkit-scrollbar {
  width: 8px;
}
.deep-search-results::-webkit-scrollbar-thumb {
  background: #00d9ff;
  border-radius: 20px;
}
.deep-loading {
  text-align: center;
  color: var(--primary);
  padding: 40px;
  font-size: 18px;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
/* =====================================
   MOBILE
===================================== */
@media (max-width: 768px) {
  .deep-search-popup {
    width: 92%;
    max-width: 92%;
    padding: 12px;
    gap: 12px;
  }
  .deep-search-popup h2 {
    font-size: 26px;
  }
  #deepSearchInput {
    min-height: 90px;
    padding: 12px;
    font-size: 13px;
  }
  .deep-search-actions {
    gap: 8px;
  }
  .deep-search-actions button {
    height: 42px;
    font-size: 13px;
  }
  .deep-search-results {
    min-height: 180px;
    max-height: 230px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
  }
  .deep-search-results h3 {
    font-size: 18px;
  }
  .deep-search-results h4 {
    font-size: 15px;
  }
}
/* =====================================
   SMALL MOBILE
===================================== */
@media (max-width: 480px) {
  .deep-search-popup {
    width: 95%;
    padding: 10px;
  }
  #deepSearchInput {
    min-height: 80px;
    font-size: 12px;
  }
  .deep-search-results {
    min-height: 160px;
    max-height: 200px;
    font-size: 12px;
  }
  .deep-search-actions button {
    height: 40px;
    font-size: 12px;
  }
}
/* =====================================
   TAMILAI GLOW EFFECTS
===================================== */
.deep-search-popup {
  box-shadow:
    0 0 15px rgba(0, 217, 255, 0.5),
    0 0 30px rgba(0, 217, 255, 0.3),
    0 0 60px rgba(0, 217, 255, 0.15);
}
.deep-search-popup h2 {
  text-shadow:
    0 0 10px #00d9ff,
    0 0 20px #00d9ff,
    0 0 35px #00d9ff;
}
.deep-search-results {
  box-shadow:
    inset 0 0 15px rgba(0, 217, 255, 0.12),
    0 0 20px rgba(0, 217, 255, 0.15);
  transition: all 0.3s ease;
}
.deep-search-results:hover {
  box-shadow:
    inset 0 0 20px rgba(0, 217, 255, 0.18),
    0 0 30px rgba(0, 217, 255, 0.25);
}
#deepSearchInput {
  transition: all 0.3s ease;
}
#deepSearchInput:focus {
  outline: none;
  box-shadow:
    0 0 15px rgba(0, 217, 255, 0.4),
    0 0 30px rgba(0, 217, 255, 0.2);
  border-color: #00f7ff;
}
#runDeepSearchBtn {
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}
#runDeepSearchBtn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.7),
    0 0 40px rgba(0, 217, 255, 0.4);
}
#closeDeepSearchBtn:hover {
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.25);
}
/* Result Title */
.deep-search-results h3 {
  text-shadow:
    0 0 8px #00d9ff,
    0 0 18px #00d9ff;
}
