/* ===========================================================
   Browser Fingerprint Analyzer — Styles
   Theme: Dark mode · Premium · Glassmorphism
   =========================================================== */

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

:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --accent: #00CEC9;
  --bg: #0B0E11;
  --bg-card: rgba(20, 24, 32, 0.7);
  --bg-hover: rgba(108, 92, 231, 0.08);
  --border: rgba(108, 92, 231, 0.15);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text: #E8E6F0;
  --text-muted: #8B8A9E;
  --text-dim: #5A5872;
  --success: #00B894;
  --danger: #FF6B6B;
  --warning: #FDCB6E;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 220ms ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }

.app-container { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }

/* ── Header ─────────────────────────────────────────────── */
.app-header { margin-bottom: 32px; }
.logo-group { display: flex; align-items: center; gap: 14px; }
.app-header h1 {
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ── Score Section ──────────────────────────────────────── */
.score-section { margin-bottom: 28px; }
.score-card {
  display: flex; align-items: center; gap: 24px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(12px);
}
.score-ring { position: relative; flex-shrink: 0; }
.score-value {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 1.6rem; font-weight: 800; color: var(--text);
}
.score-info h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.score-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ── Cards Grid ─────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.fp-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 18px; backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.fp-card:hover { border-color: rgba(108,92,231,0.25); transform: translateY(-2px); }

@keyframes fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.fp-card:nth-child(1){animation-delay:0.05s} .fp-card:nth-child(2){animation-delay:0.1s}
.fp-card:nth-child(3){animation-delay:0.15s} .fp-card:nth-child(4){animation-delay:0.2s}
.fp-card:nth-child(5){animation-delay:0.25s} .fp-card:nth-child(6){animation-delay:0.3s}

.fp-card-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.fp-icon { font-size: 1.2rem; }
.fp-card-header h3 { font-size: 0.9rem; font-weight: 600; flex: 1; }
.fp-status {
  font-size: 0.7rem; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: rgba(108,92,231,0.15); color: var(--primary-light);
}
.fp-status.unique { background: rgba(255,107,107,0.15); color: var(--danger); }
.fp-status.common { background: rgba(0,184,148,0.15); color: var(--success); }

.fp-card-body { font-size: 0.82rem; }
.fp-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.fp-details dt { color: var(--text-muted); font-weight: 500; }
.fp-details dd { color: var(--text); word-break: break-all; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.76rem; }
.fp-stat { color: var(--text-muted); margin-bottom: 8px; }
.fp-stat strong { color: var(--accent); font-weight: 700; }

canvas { border-radius: var(--radius-sm); margin-bottom: 10px; display: block; max-width: 100%; }

.fonts-list {
  display: flex; flex-wrap: wrap; gap: 4px; max-height: 80px; overflow-y: auto;
}
.font-tag, .plugin-tag {
  font-size: 0.68rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(108,92,231,0.1); color: var(--primary-light);
  border: 1px solid rgba(108,92,231,0.15);
}

/* ── Recommendations ────────────────────────────────────── */
.recommendations {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 20px; backdrop-filter: blur(12px);
}
.recommendations h2 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.recs-list { display: flex; flex-direction: column; gap: 8px; }
.rec-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2); font-size: 0.82rem;
}
.rec-icon { font-size: 1rem; flex-shrink: 0; }
.rec-text { color: var(--text-muted); }
.rec-text strong { color: var(--text); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(108,92,231,0.2); border-radius: 3px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .app-container { padding: 16px 12px 40px; }
  .score-card { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .app-header h1 { font-size: 1.2rem; }
}
