:root {
  --color-primary: #36e27b;
  --color-primary-hover: #2bc968;
  --bg-light: #f6f8f7;
  --bg-dark: #112117;
  --surface-dark: #1b3224;
  --border-dark: #254632;
  --text-muted: #95c6a9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-family: "Spline Sans", "Noto Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-light);
  color: #0f172a;
  font-family: "Spline Sans", "Noto Sans", system-ui, -apple-system, sans-serif;
}

body.dark {
  background: var(--bg-dark);
  color: #e5e7eb;
}

main {
  padding: 24px;
}

a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary { background: var(--color-primary); color: #0a140e; box-shadow: 0 8px 24px rgba(54, 226, 123, 0.3); }
.btn.secondary { background: #254632; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid rgba(149, 198, 169, 0.35); color: #95c6a9; }
.btn:hover { transform: translateY(-1px); }

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
}

body.dark .card {
  background: rgba(27, 50, 36, 0.6);
  border: 1px solid rgba(54, 226, 123, 0.1);
  box-shadow: var(--shadow-strong);
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.dark .input,
body.dark textarea,
body.dark select {
  background: #112117;
  border: 1px solid #254632;
  color: #e5e7eb;
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(54, 226, 123, 0.25);
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

body.dark .label { color: #95c6a9; }

.header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 24px;
  backdrop-filter: blur(10px);
  background: rgba(17, 33, 23, 0.92);
  border-bottom: 1px solid rgba(37, 70, 50, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-shell .nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #95c6a9;
  font-weight: 600;
}

.header-shell .nav-links a.active,
.header-shell .nav-links a:hover {
  color: #fff;
  background: rgba(37, 70, 50, 0.8);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(54, 226, 123, 0.18);
  color: var(--color-primary);
  border: 1px solid rgba(54, 226, 123, 0.3);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(149, 198, 169, 0.16);
  color: #0f172a;
}

body.dark .tag-pill { color: #e5e7eb; background: rgba(37, 70, 50, 0.8); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

body.dark .asset-card {
  background: rgba(24, 44, 32, 0.9);
  border: 1px solid rgba(37, 70, 50, 0.6);
  box-shadow: var(--shadow-strong);
}

.asset-card:hover { transform: translateY(-2px); border-color: rgba(54, 226, 123, 0.4); }

.asset-card img { width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 4/3; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
}

body.dark .search-bar {
  background: rgba(24, 44, 32, 0.9);
  border: 1px solid rgba(37, 70, 50, 0.7);
}

.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  color: inherit;
  font-size: 14px;
}

.search-bar input:focus { outline: none; }

.dropzone {
  border: 2px dashed rgba(37, 70, 50, 0.5);
  border-radius: var(--radius-xl);
  min-height: 320px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(54, 226, 123, 0.04);
  transition: border 0.2s ease, background 0.2s ease;
}

body.dark .dropzone {
  background: rgba(17, 33, 23, 0.8);
  border-color: rgba(54, 226, 123, 0.4);
}

.dropzone:hover { border-color: var(--color-primary); background: rgba(54, 226, 123, 0.08); }

.url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(17, 33, 23, 0.8);
  border: 1px solid rgba(37, 70, 50, 0.8);
  color: #e5e7eb;
}

.url-row .url-text { font-family: "Spline Sans", "Noto Sans", monospace; font-size: 12px; color: var(--text-muted); }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

body.dark .section-title { color: #e5e7eb; }

.footer-note { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 8px; }
body.dark .footer-note { color: #95c6a9; }
