/* Root variables */
:root {
  --bg: #070b11;
  --bg-elev: #0b111a;
  --card: #0f1722;
  --primary: #90dde7;
  --primary-2: #7bc8d1;
  --text: #e8f3ff;
  --muted: #9db0c9;
  --border: #1a2533;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --green: #16c784;
  --red: #ea3943;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(23,161,255,0.15), transparent),
              radial-gradient(800px 400px at -10% 0%, rgba(14,120,213,0.18), transparent),
              var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 16px 84px; /* bottom space for fixed nav */
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,11,17,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: 800px;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 28px; height: 28px; }
.logo span {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 700;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn:hover { 
  transform: translateY(-1px); 
  border-color: #213044; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.12);
}
.btn-primary { 
  background: rgba(144, 221, 231, 0.8); 
  border: none; 
  color: #0a1a1d; 
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.btn-primary:hover { 
  filter: brightness(1.1); 
  transform: translateY(-1.5px); 
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Search + chips */
.tools { margin: 16px auto 12px; max-width: 800px; padding: 0 16px; }
.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search .icon { width: 18px; height: 18px; margin-right: 8px; opacity: .8; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 2px;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
}
.chip:hover { color: var(--text); border-color: #223348; }
.chip.active { background: rgba(23,161,255,0.12); border-color: rgba(23,161,255,0.6); color: #cfeaff; }

/* Cards grid */
.grid { display: grid; gap: 14px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: #263447; box-shadow: 0 16px 40px rgba(0,0,0,0.35); }

.card-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card-media { 
  order: -1;
  flex: 0 0 50px; 
  width: 50px; 
  height: 50px;
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--border); 
  background: #0a0f16; 
}
.card-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  aspect-ratio: 1/1; 
}

.card-body { 
  flex: 1 1 auto; 
  min-width: 0; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 50px;
  width: 100%;
}
.card-top { 
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between; 
  gap: 10px; 
  position: relative;
  margin-bottom: 8px;
  width: 100%;
}
.card-title { 
  font-size: 15px; 
  font-weight: 700; 
  line-height: 1.25; 
  letter-spacing: 0.2px;
  flex: 1;
  min-width: 0;
  padding-right: 80px;
}
.card-desc { color: var(--muted); margin-top: 6px; line-height: 1.45; }

.actions {
  display: grid;
  grid-template-columns: 48% 48%;
  gap: 4%;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
}
.btn-yes { 
  background: rgba(40, 215, 151, 0.8); 
  color: #0a3d1f; 
  border: none; 
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.btn-no { 
  background: rgba(255, 106, 106, 0.8); 
  color: #2a0709; 
  border: none; 
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.btn-yes:hover, .btn-no:hover { 
  filter: brightness(1.1); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Gauge (semicircle) */
.gauge {
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
  height: 42px;
}
.gauge svg { width: 72px; height: 42px; display: block; }
.gauge .track { stroke: #1d2a3c; stroke-width: 8; fill: none; opacity: .8; }
.gauge .progress { stroke: var(--primary); stroke-width: 8; fill: none; stroke-linecap: round; transition: stroke-dasharray .6s ease; filter: drop-shadow(0 0 8px rgba(144,221,231,.35)); }
.gauge .label {
  position: absolute;
  bottom: 1px; left: 0; right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}
.gauge .chance {
  position: absolute;
  bottom: -14px; left: 0; right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: calc(100% - 20px);
  max-width: 800px;
  background: rgba(10,14,20,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  z-index: 30;
}
.bottom-nav-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.nav-item {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 12px 10px;
  color: var(--muted);
  transition: color .15s ease, background .2s ease;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.nav-item.active { color: #d5ecff; }
.nav-item svg { width: 18px; height: 18px; }

/* Forms */
.form {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.field { display: grid; gap: 6px; }
.label { color: var(--muted); font-size: 13px; }
.input {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--text);
  outline: none;
}
.input:focus { border-color: rgba(23,161,255,0.6); box-shadow: 0 0 0 4px rgba(23,161,255,0.12); }
.form-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.helper { color: var(--muted); font-size: 14px; }

/* Form buttons */
.form .btn {
  min-width: 120px;
}
.form .btn-primary {
  background: rgba(144, 221, 231, 0.8);
  color: #0a1a1d;
  border: none;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.form .btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Content page */
.content-hero { display: grid; gap: 12px; }
.content-hero .media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.details { display: grid; gap: 10px; }
.meta { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 640px) {
  .card-desc { display: none; }
  .actions { margin-top: 8px; }
} 