:root {
  --bg-canvas: #0a0a0c;
  --bg-card: #121216;
  --bg-card-hover: #16161c;
  --bg-surface-box: #18181e;
  --border-color: #22222a;
  --border-card: #2e2e3a;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --jivyom-gold: #E2B05E;

  --gold-glow: rgba(226, 176, 94, 0.12);
  --gold-border: rgba(226, 176, 94, 0.35);
  --accent-blue: #60a5fa;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

.explore-insights-container {
  padding-top: 36px;
  padding-bottom: 80px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
}

.explore-header {
  margin-bottom: 24px;
}

.header-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  color: var(--jivyom-gold);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  background: var(--gold-glow);
}

.explore-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.explore-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
}

/* Top Filter Bar Section */
.top-filter-bar {
  background: #111115;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: center;
}

.filter-controls-grid .search-field {
  grid-column: span 2;
}

.input-with-icon,
.select-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 10px;
  font-size: 16px;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 2;
}

.input-with-icon input,
.select-with-icon select {
  width: 100%;
  height: 36px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  padding: 0 12px 0 34px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.select-with-icon select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E2B05E'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 26px;
}

.input-with-icon input:focus,
.select-with-icon select:focus {
  outline: none;
  border-color: var(--jivyom-gold);
}

.select-with-icon select option {
  background-color: var(--bg-canvas);
  color: var(--text-main);
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.btn-filter-submit {
  flex: 1;
  height: 36px;
  background: var(--jivyom-gold);
  color: var(--bg-canvas);
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.btn-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-filter-reset:hover {
  color: var(--jivyom-gold);
  border-color: var(--jivyom-gold);
}

.results-summary {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Card Stream Grid Layout */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}

.card-media {
  width: 100%;
  height: 165px;
  background: #08080a;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.insight-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #15151a 0%, #0d0d10 100%);
  gap: 8px;
}

.placeholder-icon {
  font-size: 32px;
  color: var(--jivyom-gold);
  opacity: 0.6;
}

.placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-badge-row {
  margin-bottom: 10px;
}

.asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181820;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.asset-badge .asset-icon {
  font-size: 13px;
  color: var(--jivyom-gold);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--jivyom-gold);
}

.card-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.card-domain .domain-icon {
  font-size: 14px;
  color: var(--jivyom-gold);
}

.domain-link {
  color: var(--jivyom-gold);
  text-decoration: none;
}

.domain-link:hover {
  text-decoration: underline;
}

.card-excerpt {
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0d10;
  border: 1px dashed var(--border-card);
  padding: 8px 10px;
  margin-bottom: 16px;
  border-radius: 2px;
}

.card-attachment .attach-icon {
  font-size: 15px;
  color: var(--jivyom-gold);
}

.card-attachment .attach-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-attachment .attach-name:hover {
  color: var(--jivyom-gold);
  text-decoration: underline;
}

.card-attachment .attach-size {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.card-taxonomy-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.taxonomy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.taxonomy-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.chip:hover {
  opacity: 0.8;
}

.chip-gold {
  background: var(--gold-glow);
  border: 1px solid var(--jivyom-gold);
  color: var(--jivyom-gold);
}

.chip-dim {
  background: var(--bg-surface-box);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.hashtag-row {
  gap: 8px;
}

.hashtag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  text-decoration: none;
}

.hashtag:hover {
  text-decoration: underline;
}

.card-footer {
  padding: 12px 20px;
  background: #0e0e11;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.publisher-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.company-logo-wrap {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
}

.company-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface-box);
  color: var(--jivyom-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.company-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-name:hover {
  color: var(--text-main);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--jivyom-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.btn-read-more:hover {
  text-decoration: underline;
}

/* Pagination & Empty States */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination-pages {
  display: flex;
  gap: 6px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #111115;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
}

.pagination-link:hover:not(.disabled):not(.active) {
  border-color: var(--jivyom-gold);
  color: var(--jivyom-gold);
}

.pagination-link.active {
  background: var(--jivyom-gold);
  color: var(--bg-canvas);
  border-color: var(--jivyom-gold);
  font-weight: 700;
}

.pagination-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #111115;
  border: 1px solid var(--border-color);
}

.empty-icon {
  font-size: 36px;
  color: var(--jivyom-gold);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .filter-controls-grid .search-field {
    grid-column: span 1;
  }
}

/* Top Filter Bar Wrapper */
.top-filter-bar {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 24px;
}

/* Precise Single-Row Grid Layout */
.filter-flex-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: center;
}

/* Field Container Styling */
.filter-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #131318;
  border: 1px solid #22222c;
  border-radius: 3px;
  height: 34px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-field:hover {
  border-color: #333342;
  background: #16161d;
}

.filter-field:focus-within {
  border-color: var(--jivyom-gold, #e2b05e);
  background: #16161d;
}

/* Material Field Icons */
.filter-field .field-icon {
  position: absolute;
  left: 9px;
  font-size: 15px;
  color: #71717a;
  pointer-events: none;
  z-index: 2;
}

/* Text Input Specifics */
.filter-field input[type="text"] {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 10px 0 30px;
  color: #f4f4f5;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 400;
  outline: none;
}

.filter-field input[type="text"]::placeholder {
  color: #52525b;
}

/* Select Dropdown Styling */
.filter-field select.filter-select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 22px 0 30px;
  color: #d4d4d8;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.76rem;
  font-weight: 400;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* Custom Gold Chevron */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E2B05E'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
}

.filter-field select.filter-select option {
  background-color: #121216;
  color: #f4f4f5;
  padding: 8px;
}

/* Action Buttons Container */
.filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}

.btn-filter-primary {
  height: 34px;
  padding: 0 16px;
  background: var(--jivyom-gold, #e2b05e);
  color: #0a0a0c;
  border: none;
  border-radius: 3px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-filter-primary:hover {
  opacity: 0.9;
}

.btn-filter-primary:active {
  transform: scale(0.98);
}

.btn-filter-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid #22222c;
  border-radius: 3px;
  color: #71717a;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-filter-ghost .material-symbols-outlined {
  font-size: 16px;
}

.btn-filter-ghost:hover {
  border-color: var(--jivyom-gold, #e2b05e);
  color: var(--jivyom-gold, #e2b05e);
}

/* Responsive Wrap for Tablet/Mobile Viewports */
@media (max-width: 1100px) {
  .filter-flex-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-field.field-search {
    grid-column: span 3;
  }
  .filter-actions {
    grid-column: span 3;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .filter-flex-row {
    grid-template-columns: 1fr;
  }
  .filter-field.field-search,
  .filter-actions {
    grid-column: span 1;
  }
  .btn-filter-primary {
    flex: 1;
  }
}

/* Color Scheme Hint for OS Controls */
html, select {
  color-scheme: dark;
}

/* Webkit Scrollbars (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d11;
  border-left: 1px solid #1a1a22;
}

::-webkit-scrollbar-thumb {
  background: #2a2a36;
  border-radius: 4px;
  border: 2px solid #0d0d11;
}

::-webkit-scrollbar-thumb:hover {
  background: #42403e; /* Gold highlight on hover */
}

/* Firefox Scrollbar Standard */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a2a36 #0d0d11;
}