/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* welcome.css — PerfShop Welcome Page styles */

:root {
  --bg:      #0d0d14;
  --surface: #13131e;
  --surface2:#1c1c2e;
  --border:  #2a2a40;
  --accent:  #667eea;
  --success: #2ed573;
  --warning: #ffa502;
  --purple:  #a855f7;
  --cyan:    #4ecdc4;
  --text:    #e8e8f0;
  --text2:   #7878a0;
  --mono:    'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { font-size: 1.8rem; }

.logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #667eea, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p {
  font-size: .75rem;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 2px;
}

.badge {
  background: rgba(46, 213, 115, .1);
  border: 1px solid rgba(46, 213, 115, .3);
  color: var(--success);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(102, 126, 234, .07) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero-left { flex: 1; text-align: center; }

.hero-left h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}

.hero-left h2 .gradient {
  background: linear-gradient(135deg, #667eea, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p { font-size: .88rem; color: var(--text2); }

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Main / Table ────────────────────────────────────────────── */
main { padding: 20px 40px; }

.section-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text2);
  margin-bottom: 10px;
  margin-top: 24px;
}
.section-title:first-child { margin-top: 0; }

.table-wrap { max-width: 1100px; margin: 0 auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

thead { background: var(--surface2); }

th {
  padding: 10px 16px;
  text-align: left;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  white-space: nowrap;
}

td {
  padding: 11px 16px;
  font-size: .82rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

td:nth-child(1) { width: 120px; white-space: nowrap; }
td:nth-child(2) { width: 190px; white-space: nowrap; }
td:nth-child(3) { width: auto; }
td:nth-child(4) { width: 180px; }

tr:hover td { background: rgba(255, 255, 255, .02); }

.td-name { font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.td-url  { font-family: var(--mono); font-size: .72rem; white-space: nowrap; }
.td-url a { color: var(--accent); text-decoration: none; }
.td-url a:hover { text-decoration: underline; }
.td-desc  { color: var(--text2); font-size: .78rem; line-height: 1.4; }
.td-creds { font-family: var(--mono); font-size: .72rem; line-height: 1.7; }

.cred-line { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.cred {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
}

/* Row colour coding */
.row-obs  td:first-child { border-left: 3px solid var(--cyan); }
.row-qa   td:first-child { border-left: 3px solid var(--purple); }
.row-perf td:first-child { border-left: 3px solid var(--warning); }
.row-app  td:first-child { border-left: 3px solid var(--accent); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text2);
  font-family: var(--mono);
}
footer a { color: var(--accent); text-decoration: none; }