:root {
  --bg: #08080d;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-dim: #8b8b9e;
  --brutal-border: rgba(0, 0, 0, 0.8);
  --primary: #ff2e63; /* Hot Pink */
  --accent: #08d9d6;  /* Cyan */
  --warning: #ffd700; /* Gold */
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Liquid Glass Background */
.liquid-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(80px); }
.blob { position: absolute; border-radius: 50%; animation: float 15s infinite ease-in-out; }
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -10%; left: -10%; opacity: 0.4; }
.blob-2 { width: 500px; height: 500px; background: var(--accent); bottom: -20%; right: -10%; opacity: 0.3; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #8a2be2; top: 40%; left: 50%; opacity: 0.2; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

.mobile-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1rem 6rem 1rem;
  min-height: 100vh;
  position: relative;
}

/* Header & Brutalism */
.header { margin-bottom: 2rem; }
.logo-badge {
  display: inline-block;
  background: var(--text);
  color: #000;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px var(--primary);
}
.header h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.header h1 span {
  color: var(--primary);
  font-style: italic;
}
.sub { color: var(--text-dim); font-size: 1rem; font-weight: 400; }

/* Claymorphism + Glass Search */
.search-wrapper {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(255, 46, 99, 0.2), inset 0 1px 1px rgba(255,255,255,0.2), 0 0 0 4px rgba(255, 46, 99, 0.1);
  transform: translateY(-2px);
}
.search-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.6rem 1rem;
}
.search-wrapper input::placeholder { color: var(--text-dim); }
.search-btn {
  background: var(--text);
  border: 2px solid #000;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 4px 4px 0px #000;
}
.search-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000; }
.search-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #000; }
.search-btn svg { width: 22px; height: 22px; }

/* History Tags */
.history { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.history-tag {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.history-tag:hover { background: var(--text); color: #000; border-color: #000; }
.history-tag .remove { font-size: 1rem; line-height: 1; font-weight: 700; }
.history-tag .remove:hover { color: var(--primary); }

/* Results */
.results { margin-top: 2.5rem; }

.state-box {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass);
  border: 2px dashed var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
}
.state-box.error { border-color: var(--primary); color: var(--primary); }
.state-box svg { width: 40px; height: 40px; margin-bottom: 1rem; }
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Brutalist Summary Stats */
.report-summary {
  background: var(--accent);
  border: 3px solid #000;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 6px 6px 0px #000;
  overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-box {
  padding: 1.2rem 1rem;
  text-align: center;
  border-right: 3px solid #000;
  color: #000;
}
.stat-box:last-child { border-right: none; }
.stat-box.highlighted { background: #000; color: var(--accent); }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; }

/* Claymorphism + Glass Breach Cards */
.breach-card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 24px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.breach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.source-info { display: flex; align-items: center; gap: 0.6rem; }
.source-badge {
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #000;
}
.source-name { font-weight: 600; font-size: 1rem; }
.id-badge { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 0.8rem; }

.card-body { padding: 1.5rem; }

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-row:last-child { border-bottom: none; }
.data-row.full-width { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.data-row .label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; font-weight: 600; }
.data-row .value { font-weight: 500; text-align: right; }
.data-row.full-width .value { text-align: left; }
.data-row .value.mono { font-family: 'JetBrains Mono', monospace; }
.data-row .value.highlight { color: var(--primary); font-weight: 700; }
.data-row .value.dim { color: var(--text-dim); font-size: 0.8rem; }

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.card-footer:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.card-footer svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.card-footer svg.rotated { transform: rotate(180deg); }

/* Floating Glass Dock */
.glass-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 100;
}
.dock-item {
  background: transparent;
  border: none;
  border-radius: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-item.active {
  background: var(--primary);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 46, 99, 0.4);
}
.dock-item svg { width: 24px; height: 24px; }

/* Animations */
.card-list-enter-active { transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card-list-leave-active { transition: all 0.3s ease; }
.card-list-enter-from { opacity: 0; transform: translateY(30px) scale(0.95); }
.card-list-leave-to { opacity: 0; transform: translateX(-30px); }

.bounce-enter-active { transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bounce-leave-active { transition: all 0.3s ease; }
.bounce-enter-from { opacity: 0; transform: scale(0.8); }

.tag-enter-active, .tag-leave-active { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tag-enter-from, .tag-leave-to { opacity: 0; transform: scale(0.5); }

.expand-enter-active, .expand-leave-active { transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; }
.expand-enter-from, .expand-leave-to { opacity: 0; max-height: 0; }
.expand-enter-to, .expand-leave-from { max-height: 500px; }
