/*
Theme Name: AI Security Hunter
Theme URI: https://netslim.nl
Author: AI Security Hunter Team
Author URI: https://netslim.nl
Description: Professioneel AI-gedreven security scanning thema. Scant websites op kwetsbaarheden, genereert leads en verstuurt automatisch gepersonaliseerde mails. Met AI fallback systeem (Kimi → Claude → OpenAI), gratis security scanners, dubbele-mail preventie en volledig aanpasbare bedrijfsinstellingen.
Version: 1.0.0
License: GPL v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisecurityhunter
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== THEME BASE STYLES ===== */
:root {
  --color-primary: #0a0e27;
  --color-secondary: #1a1f4e;
  --color-accent: #00d4aa;
  --color-accent-hover: #00b894;
  --color-danger: #ff4757;
  --color-warning: #ffa502;
  --color-info: #3498db;
  --color-success: #2ed573;
  --color-text: #e0e6ed;
  --color-text-muted: #8892a0;
  --color-bg: #060814;
  --color-card: #0f1325;
  --color-card-border: #1a2040;
  --color-glow: rgba(0, 212, 170, 0.15);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated mesh gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(26, 31, 78, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 14, 39, 0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--color-accent); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-accent-hover); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(6, 8, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-card-border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.site-logo .logo-text span {
  color: var(--color-accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  background: rgba(0, 212, 170, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
  color: var(--color-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(0, 212, 170, 0.1);
  color: var(--color-accent);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-danger), #e84118);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ===== HERO SECTION ===== */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  color: var(--color-accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-accent), #00f5d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 60px auto 0;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===== SCANNER SECTION ===== */
.scanner-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.scanner-box {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.scanner-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.scan-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.scan-input {
  flex: 1;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.scan-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.scan-input::placeholder {
  color: var(--color-text-muted);
}

/* ===== SCAN OPTIONS ===== */
.scan-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.scan-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scan-option:hover {
  border-color: var(--color-accent);
  background: rgba(0, 212, 170, 0.03);
}

.scan-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  margin-top: 2px;
}

.scan-option-label {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.scan-option-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== SCAN RESULTS ===== */
.scan-results {
  margin-top: 40px;
}

.result-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-card-border);
}

.result-domain {
  font-size: 1.3rem;
  font-weight: 700;
}

.result-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.score-safe { background: rgba(46, 213, 115, 0.15); color: var(--color-success); }
.score-warning { background: rgba(255, 165, 2, 0.15); color: var(--color-warning); }
.score-danger { background: rgba(255, 71, 87, 0.15); color: var(--color-danger); }

/* ===== VULNERABILITY LIST ===== */
.vuln-list {
  list-style: none;
}

.vuln-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-warning);
}

.vuln-item.critical { border-left-color: var(--color-danger); }
.vuln-item.warning { border-left-color: var(--color-warning); }
.vuln-item.info { border-left-color: var(--color-info); }
.vuln-item.safe { border-left-color: var(--color-success); }

.vuln-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.vuln-icon.critical { background: rgba(255, 71, 87, 0.15); }
.vuln-icon.warning { background: rgba(255, 165, 2, 0.15); }
.vuln-icon.info { background: rgba(52, 152, 219, 0.15); }
.vuln-icon.safe { background: rgba(46, 213, 115, 0.15); }

.vuln-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.vuln-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== LEADS TABLE ===== */
.leads-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leads-table th {
  background: var(--color-card);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-card-border);
  white-space: nowrap;
}

.leads-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.leads-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.lead-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-new { background: rgba(52, 152, 219, 0.15); color: var(--color-info); }
.status-contacted { background: rgba(255, 165, 2, 0.15); color: var(--color-warning); }
.status-converted { background: rgba(46, 213, 115, 0.15); color: var(--color-success); }
.status-ignored { background: rgba(255, 71, 87, 0.15); color: var(--color-danger); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-card-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-card-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scanning-status {
  text-align: center;
  padding: 40px;
}

.scanning-status p {
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 60px 0;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 170, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== SETTINGS PAGE ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.settings-sidebar {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.settings-nav {
  list-style: none;
}

.settings-nav li {
  margin-bottom: 4px;
}

.settings-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.settings-nav a:hover,
.settings-nav a.active {
  background: rgba(0, 212, 170, 0.1);
  color: var(--color-accent);
}

.settings-panel {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group .description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ===== API STATUS INDICATORS ===== */
.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.api-status.online {
  background: rgba(46, 213, 115, 0.15);
  color: var(--color-success);
}

.api-status.offline {
  background: rgba(255, 71, 87, 0.15);
  color: var(--color-danger);
}

.api-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-card-border);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
}

.site-footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.2);
  color: var(--color-success);
}

.alert-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: var(--color-danger);
}

.alert-warning {
  background: rgba(255, 165, 2, 0.1);
  border: 1px solid rgba(255, 165, 2, 0.2);
  color: var(--color-warning);
}

/* ===== SCAN LOG TERMINAL ===== */
.terminal {
  background: #0a0c1a;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 20px;
}

.terminal-line {
  padding: 2px 0;
  color: var(--color-text-muted);
}

.terminal-line.success { color: var(--color-success); }
.terminal-line.warning { color: var(--color-warning); }
.terminal-line.error { color: var(--color-danger); }
.terminal-line.info { color: var(--color-info); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 300px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .main-nav { display: none; }

  .hero { padding: 120px 0 60px; }

  .scan-input-group { flex-direction: column; }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: static;
  }

  .scanner-box { padding: 24px; }

  .result-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-card-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-text-muted);
}
