/* Multi-Engine Malware & URL Scanner CSS (Prefix: memu-) */

.memu-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.memu-header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.75rem 1.5rem;
}

.memu-nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memu-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}

.memu-logo-link:hover {
  color: #7dd3fc;
}

.memu-nav-badge {
  background-color: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.memu-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.memu-breadcrumbs {
  margin-bottom: 1rem;
}

.memu-bc-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.memu-bc-item {
  display: inline;
}

.memu-bc-link {
  color: #0284c7;
  text-decoration: none;
}

.memu-bc-link:hover {
  text-decoration: underline;
}

.memu-bc-separator {
  margin: 0 0.5rem;
  color: #94a3b8;
}

.memu-bc-current {
  color: #334155;
  font-weight: 500;
}

/* Privacy Alert */
.memu-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.memu-notice-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.memu-notice-text {
  font-size: 0.85rem;
  color: #15803d;
  line-height: 1.4;
}

/* Hero */
.memu-hero {
  margin-bottom: 1.5rem;
}

.memu-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.memu-subtitle {
  font-size: 1.05rem;
  color: #475569;
  margin: 0;
  max-width: 800px;
}

/* Presets Bar */
.memu-presets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.memu-preset-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.memu-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.memu-preset-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.memu-preset-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Input Card & Form */
.memu-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.memu-input-card {
  margin-bottom: 1.5rem;
}

.memu-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.memu-tab-group {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.memu-tab-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.memu-tab-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.memu-tab-active {
  color: #0284c7;
  background-color: #e0f2fe;
}

.memu-input-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.memu-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.memu-input-wrap {
  width: 100%;
}

.memu-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #fff;
  font-family: ui-monospace, monospace;
  box-sizing: border-box;
}

.memu-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.memu-input-hint {
  font-size: 0.75rem;
  color: #64748b;
}

/* Dropzone */
.memu-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.memu-dropzone:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
}

.memu-drop-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.memu-drop-text {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #475569;
}

.memu-drop-browse {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
}

.memu-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.memu-file-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.memu-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.memu-btn-primary {
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.memu-btn-primary:hover {
  background-color: #0369a1;
}

.memu-btn-outline {
  background-color: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.memu-btn-outline:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Summary Grid */
.memu-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.memu-summary-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.memu-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.memu-verdict-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 800;
  width: fit-content;
}

.memu-verdict-clean {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.memu-verdict-suspicious {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.memu-verdict-phishing {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.memu-verdict-malicious {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.memu-score-val {
  font-size: 1.35rem;
  font-weight: 800;
}

.memu-text-clean {
  color: #16a34a;
}

.memu-text-warn {
  color: #d97706;
}

.memu-text-danger {
  color: #dc2626;
}

.memu-metric-bold {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.memu-sub-detail {
  font-size: 0.8rem;
  color: #64748b;
}

/* Results Layout */
.memu-results-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 850px) {
  .memu-results-layout {
    grid-template-columns: 1fr;
  }
}

.memu-card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.memu-table-wrap {
  overflow-x: auto;
}

.memu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.memu-table th, .memu-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.memu-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.memu-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.memu-tag-clean {
  background-color: #dcfce7;
  color: #15803d;
}

.memu-tag-suspicious {
  background-color: #fef3c7;
  color: #b45309;
}

.memu-tag-malicious {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Heuristics List */
.memu-heuristics-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.memu-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.memu-check-pass {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}

.memu-check-warn {
  background-color: #fffbeb;
  border-color: #fde68a;
}

.memu-check-fail {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.memu-icon-pass {
  color: #16a34a;
  font-weight: 800;
}

.memu-icon-warn {
  color: #d97706;
  font-weight: 800;
}

.memu-icon-fail {
  color: #dc2626;
  font-weight: 800;
}

.memu-check-content strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

.memu-check-content p {
  margin: 0.15rem 0 0 0;
  font-size: 0.8rem;
  color: #475569;
}

/* Ads */
.memu-ad-wrapper {
  margin: 2rem 0;
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guide Section */
.memu-guide-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.memu-guide-article {
  margin-bottom: 2rem;
}

.memu-guide-article:last-child {
  margin-bottom: 0;
}

.memu-guide-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
}

.memu-guide-article p {
  color: #334155;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.memu-guide-list {
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.memu-faq-list {
  margin: 0;
}

.memu-faq-q {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  font-size: 1rem;
}

.memu-faq-a {
  margin: 0.35rem 0 0.75rem 0;
  color: #475569;
  line-height: 1.5;
}

/* Related Tools */
.memu-related-tools {
  margin-bottom: 2rem;
}

.memu-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.memu-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.memu-related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.memu-related-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.memu-related-title {
  display: block;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.memu-related-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.memu-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.memu-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.memu-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}
