/* ===== LISTINGS INDEX PAGE ===== */
.listings-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.listings-header {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.6);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Ambient top glow on listings header */
.listings-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -60px;
  width: 500px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.listings-header-inner {
  padding: 56px 48px 40px;
  max-width: 900px;
}

.header-cta { margin-top: 28px; }

.listings-body {
  display: flex;
  flex: 1;
  gap: 0;
}

/* ===== SIDEBAR ===== */
.listings-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--surface);
}

.filter-section { display: flex; flex-direction: column; gap: 28px; }

.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-item {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.category-item:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.category-item.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: var(--cyan-glow);
  font-weight: 500;
}

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

.search-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.06);
}

.btn-search {
  background: var(--cyan);
  color: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}

.btn-search:hover { opacity: 0.9; }

.btn-clear {
  font-size: 13px;
  color: var(--fg-subtle);
  text-decoration: none;
  text-align: center;
  display: block;
  transition: color 0.15s;
}

.btn-clear:hover { color: var(--fg-muted); }

/* ===== MAIN GRID ===== */
.listings-main {
  flex: 1;
  padding: 36px 48px;
  min-width: 0;
}

.listings-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== LISTING CARD ===== */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.listing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(0,212,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.listing-card:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 4px 32px rgba(0,212,255,0.08);
  transform: translateY(-2px);
}

.listing-card:hover::after { opacity: 1; }

/* Featured card — violet glow */
.listing-card-featured {
  border-color: rgba(167, 139, 250, 0.3);
}

.listing-card-featured:hover {
  border-color: var(--violet-glow);
  box-shadow: 0 4px 32px rgba(167,139,250,0.12);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: var(--violet-dim);
  border: 1px solid var(--violet-glow);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}

.featured-badge::before {
  content: '★';
  font-size: 9px;
}

.listing-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  opacity: 0.8;
}

.listing-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.15;
}

.listing-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.4;
}

.listing-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* .listing-tech is the wrapper in the card template; .tech-tags also used standalone */
.listing-tech,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--r-sm);
}

/* Revenue bar mini-indicator */
.listing-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 60px;
  flex-shrink: 0;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
}

.listing-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-cta {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--font-body);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 40px;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}

.empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
}

.empty-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

/* ===== SUBMIT / NEW LISTING FORM ===== */
.submit-page {
  padding: 80px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.submit-container {
  max-width: 640px;
  width: 100%;
}

.submit-header { margin-bottom: 40px; }

.submit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}

/* ===== DETAIL PAGE ===== */
.detail-page {
  padding: 0 48px 80px;
  min-height: 100vh;
}

.detail-container { max-width: 960px; }

.detail-back { padding: 24px 0 0; }

.back-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  transition: color 0.15s;
}

.back-link:hover { color: var(--cyan); }

.detail-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.detail-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.detail-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.05;
}

.detail-tagline {
  font-size: 18px;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.5;
}

.detail-meta { display: flex; gap: 20px; }

.detail-link {
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.detail-link:hover { opacity: 0.75; }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0;
}

.detail-section { margin-bottom: 36px; }

.detail-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.detail-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  font-weight: 300;
  white-space: pre-wrap;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

.detail-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}

.detail-metric {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(0,212,255,0.25);
}

.detail-cta-card {
  background: var(--surface-2);
  border: 1px solid var(--cyan-glow);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: 0 0 32px rgba(0,212,255,0.10), inset 0 1px 0 rgba(0,212,255,0.12);
  position: relative;
  overflow: hidden;
}

.detail-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet-light));
}

.detail-cta-text {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== INQUIRY PAGE ===== */
.inquiry-page {
  padding: 80px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inquiry-container {
  max-width: 640px;
  width: 100%;
}

.inquiry-back { margin-bottom: 40px; }
.inquiry-header { margin-bottom: 40px; }

.inquiry-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}

/* ===== SUCCESS / ERROR ===== */
.success-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  min-height: 100vh;
}

.success-container {
  text-align: center;
  max-width: 480px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--cyan);
  margin: 0 auto 28px;
  box-shadow: 0 0 28px rgba(0,212,255,0.15);
}

.success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 12px;
}

.success-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.success-note {
  font-size: 13px;
  color: var(--fg-subtle);
  margin-top: 12px;
}

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  min-height: 100vh;
}

.error-container { text-align: center; max-width: 480px; }

.error-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ff6b6b;
  margin: 0 auto 28px;
}

.error-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 12px;
}

.error-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.error-actions { display: flex; justify-content: center; gap: 16px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .listings-header-inner { padding: 40px 24px 32px; }
  .listings-sidebar { display: none; }
  .listings-main { padding: 24px; }
  .listings-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-page { padding: 0 24px 60px; }
  .submit-page, .inquiry-page { padding: 40px 24px; }
  .submit-form, .inquiry-form { padding: 24px; }
  .page-headline { font-size: 28px; }
  .detail-name { font-size: 32px; }
  .form-actions { flex-wrap: wrap; }
  .success-page { padding: 56px 24px; }
}
