@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #0e1116;
  --bg-2: #1a1f29;
  --card: #151a22;
  --accent: #ff8a5b;
  --accent-2: #32d0a1;
  --text: #f7f4ef;
  --muted: #a7b0bd;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(8, 10, 18, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(255, 138, 91, 0.2), transparent 60%),
    radial-gradient(800px 600px at 90% -20%, rgba(50, 208, 161, 0.18), transparent 70%),
    linear-gradient(180deg, #0b0d12 0%, #0f141c 100%);
  color: var(--text);
  min-height: 100vh;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.hero {
  text-align: left;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 12px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 54px);
  margin: 0 0 12px;
  line-height: 1.05;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.ad-banner {
  background: linear-gradient(120deg, rgba(255, 138, 91, 0.18), rgba(50, 208, 161, 0.12));
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 16px 0 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(8, 10, 18, 0.35);
}

.ad-banner p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffe4d7;
}

.ad-banner.alt {
  background: linear-gradient(120deg, rgba(50, 208, 161, 0.2), rgba(255, 138, 91, 0.1));
  border-style: solid;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

select {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select:focus {
  border-color: rgba(255, 138, 91, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.2);
}

.cta {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  background: linear-gradient(135deg, #ffb37b, #ff8a5b, #ff6c4a);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(255, 138, 91, 0.35);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 138, 91, 0.4);
}

.result {
  margin-top: 28px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

h2, h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
}

.badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(50, 208, 161, 0.4);
  color: var(--accent-2);
  background: rgba(50, 208, 161, 0.1);
}

.result-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(50, 208, 161, 0.1), rgba(255, 138, 91, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 140px;
  align-items: center;
  animation: popIn 0.4s ease;
}

.result-card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-card h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.meta a {
  color: var(--accent);
  text-decoration: none;
}

.grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.card {
  background: rgba(15, 18, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 91, 0.4);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 8px;
}

.card-body h4 {
  margin: 0;
  font-size: 18px;
}

.card-body a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.card-body a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.csv-panel {
  background: linear-gradient(135deg, rgba(255, 138, 91, 0.12), rgba(50, 208, 161, 0.1));
}

.csv-preview {
  margin-top: 16px;
  background: rgba(8, 10, 16, 0.7);
  border-radius: 16px;
  padding: 16px;
  color: #d7dee8;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes popIn {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .result-card {
    grid-template-columns: 1fr;
  }

  .result-card img {
    width: 100%;
    height: 180px;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}
