/* WVAT - Console Command Design System */
/* MODULES.CSS - Page-Specific Modules */

/* ===== RESULTS SECTION ===== */
.results-section {
  display: none;
}

.results-section.active {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 20px;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.critical::before { background: var(--neon-pink); }
.stat-card.high::before { background: var(--neon-yellow); }
.stat-card.medium::before { background: var(--neon-cyan); }
.stat-card.low::before { background: var(--neon-green); }

.stat-label {
  font-family: var(--font-hud);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-hud);
  font-size: 32px;
  font-weight: 600;
}

.stat-card.critical .stat-value { color: var(--neon-pink); }
.stat-card.high .stat-value { color: var(--neon-yellow); }
.stat-card.medium .stat-value { color: var(--neon-cyan); }
.stat-card.low .stat-value { color: var(--neon-green); }

/* ===== VULNERABILITY CARDS ===== */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-title {
  font-family: var(--font-hud);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-bright);
}

.results-count {
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--text-dim);
}

.vuln-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vuln-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vuln-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.vuln-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.vuln-card.critical::before { background: var(--neon-pink); }
.vuln-card.high::before { background: var(--neon-yellow); }
.vuln-card.medium::before { background: var(--neon-cyan); }
.vuln-card.low::before { background: var(--neon-green); }

.vuln-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  padding-bottom: 12px;
}

.vuln-title-group {
  flex: 1;
}

.vuln-severity {
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vuln-severity.critical {
  background: var(--neon-pink);
  color: #fff;
}

.vuln-severity.high {
  background: var(--neon-yellow);
  color: #000;
}

.vuln-severity.medium {
  background: var(--neon-cyan);
  color: #000;
}

.vuln-severity.low {
  background: var(--neon-green);
  color: #000;
}

.vuln-title {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.vuln-id {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--text-dim);
}

.vuln-body {
  padding: 0 20px 20px;
}

.vuln-description {
  font-family: var(--font-hud);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.vuln-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.vuln-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vuln-meta-label {
  font-family: var(--font-hud);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
}

.vuln-meta-value {
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--text-dim);
}

.vuln-path {
  background: var(--bg-void);
  padding: 12px 16px;
  margin: 0 20px 20px;
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--neon-green);
  border-left: 2px solid var(--border-tech);
  word-break: break-all;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  margin-bottom: 32px;
  position: relative;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--neon-green);
  border-style: solid;
}

.hero::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hero::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.hero-title .accent {
  color: var(--neon-green);
}

.hero-subtitle {
  font-family: var(--font-hud);
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FEATURE GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 24px;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neon-cyan);
}

.feature-icon {
  font-family: var(--font-hud);
  font-size: 24px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-hud);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.feature-description {
  font-family: var(--font-hud);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-tech);
  border-radius: 0;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-target {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .btn-execute,
  .btn-primary {
    width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

  .console-input,
  .form-control {
    padding-left: 12px;
  }

  .input-prefix {
    display: none;
  }

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

@media (max-width: 480px) {
  nav {
    padding: 0 16px;
  }

  .container {
    padding: 24px 16px;
  }

  .scan-section,
  .panel-section {
    padding: 20px;
  }

  .hero {
    padding: 40px 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 11px;
  }
}

/* ===== NOTIFICATIONS MODULE ===== */
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 16px 24px;
}

.notification-stats {
  font-family: var(--font-hud);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  color: var(--neon-cyan);
}

.stat-value {
  color: var(--text-bright);
  font-weight: 600;
}

.stat-separator {
  color: var(--border-tech);
  margin: 0 8px;
}

.stat-alert {
  color: var(--neon-pink);
  animation: pulse 2s infinite;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 20px;
  position: relative;
  transition: all 0.2s;
  border-left: 4px solid var(--border-tech);
}

.notification-item:hover {
  transform: translateX(4px);
  background: var(--bg-elevated);
}

.notification-item.notification-unread {
  background: rgba(0, 227, 150, 0.05);
  border-left-color: var(--neon-green);
}

.notification-item.notification-unread::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
}

/* Notification Types Border Colors */
.notification-item.notification-success { border-left-color: var(--neon-green); }
.notification-item.notification-info { border-left-color: var(--neon-cyan); }
.notification-item.notification-warning { border-left-color: var(--neon-yellow); }
.notification-item.notification-error { border-left-color: var(--neon-pink); }

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-type-badge {
  font-family: var(--font-hud);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 6px;
  background: var(--bg-void);
  border: 1px solid var(--border-tech);
  color: var(--text-dim);
}

.notification-time {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--text-dim);
}

.notification-mark-read {
  font-family: var(--font-hud);
  font-size: 10px;
  color: var(--neon-cyan);
  text-decoration: none;
  margin-left: 16px;
  text-transform: uppercase;
  border: 1px solid var(--neon-cyan);
  padding: 2px 8px;
  transition: all 0.2s;
}

.notification-mark-read:hover {
  background: var(--neon-cyan);
  color: #000;
}

.notification-title {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.notification-message {
  font-family: var(--font-hud);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 48px;
}

.empty-icon {
  font-family: var(--font-hud);
  font-size: 48px;
  color: var(--border-tech);
  margin-bottom: 16px;
}

.empty-text {
  font-family: var(--font-hud);
  font-size: 16px;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.empty-subtext {
  color: var(--text-dim);
  font-size: 14px;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== PROFILE MODULE ===== */
.profile-dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

/* HUD corners for profile card */
.profile-card::before,
.profile-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--neon-cyan);
  border-style: solid;
}

.profile-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.profile-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-elevated);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 48px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  position: relative;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px dashed var(--neon-cyan);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

.profile-name {
  font-family: var(--font-hud);
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-role {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 227, 150, 0.1);
  border: 1px solid var(--neon-green);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-details-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-tech);
  padding: 32px;
  position: relative;
}

.profile-group-title {
  font-family: var(--font-hud);
  font-size: 14px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border-tech);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.data-item {
  margin-bottom: 8px;
}

.data-label {
  font-family: var(--font-hud);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-value {
  font-family: var(--font-hud);
  font-size: 14px;
  color: var(--text-bright);
  background: var(--bg-void);
  padding: 12px;
  border-left: 2px solid var(--border-tech);
  transition: all 0.2s;
}

.data-value:hover {
  border-left-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-hud);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 227, 150, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.status-badge.inactive {
  background: rgba(255, 0, 85, 0.1);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

@media (max-width: 900px) {
  .profile-dashboard {
    grid-template-columns: 1fr;
  }
}

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