/* vuln-lab.html styles — vuln.virtualserv.uk */

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

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 15px;
}

a { color: #1a56db; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

/* ── Header ── */
header {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-back {
  font-size: 0.82rem;
  color: #888;
  font-weight: 300;
}

.header-back a { color: #1a56db; }

header p {
  font-size: 0.88rem;
  color: #555;
  font-weight: 300;
}

/* ── Sections ── */
.section { margin-bottom: 40px; }

.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Disclaimers ── */
.disclaimer {
  background: #fffbf0;
  border: 1px solid #e8d88a;
  border-left: 3px solid #c8a200;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #5a4a00;
  margin-bottom: 10px;
}

.disclaimer-emphasis {
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  border-left: 3px solid #c0152a;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #7a1c1c;
  margin-bottom: 28px;
}

/* ── App list ── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.link-row:hover { background: #f4f4f4; text-decoration: none; }

.link-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }

.link-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: #1a1a1a;
  min-width: 160px;
  flex-shrink: 0;
}

.link-desc { font-size: 0.88rem; color: #666; font-weight: 300; flex: 1; }

.link-tag {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

.link-tag.offline { color: #c0152a; }

/* ── Lab controls ── */
.lab-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.running  { background: #16a34a; }
.status-dot.stopped  { background: #dc2626; }
.status-dot.loading  { background: #f59e0b; animation: pulse 1s infinite; }

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

.btn-lab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-start {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.btn-start:hover { background: #dcfce7; border-color: #4ade80; }

.btn-stop {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn-stop:hover  { background: #fee2e2; border-color: #f87171; }

.btn-lab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Notes list ── */
.notes-list {
  padding-left: 18px;
  color: #444;
  font-size: 0.9rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Author card ── */
.author-card {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.author-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-card p {
  font-size: 0.88rem;
  color: #555;
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 560px;
}

.author-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.author-details h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 8px;
}

.author-details ul {
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: #444;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}

.author-footer a {
  display: inline-block;
  padding: 7px 16px;
  background: #1a1a1a;
  color: white;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.author-footer a:hover { background: #333; text-decoration: none; }

/* ── Footer ── */
footer {
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.82rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .author-details { grid-template-columns: 1fr; }
  .link-row { flex-wrap: wrap; }
  .link-tag { margin-left: 38px; }
  .lab-controls { margin-left: 38px; }
}
