/* VS Series Hub Styles */

:root {
  --vs-list-bg: #00112a;
  --vs-control-bg: #0b1d38;
  --vs-control-border: rgba(148, 163, 184, 0.2);
  --vs-row-border: rgba(148, 163, 184, 0.16);
  --vs-row-text: #e2e8f0;
  --vs-row-muted: #94a3b8;
  --vs-row-hover: rgba(56, 189, 248, 0.07);
  --vs-icon-bg: rgba(56, 189, 248, 0.12);
  --vs-icon-text: #7dd3fc;
  --vs-active-bg: #0284c7;
  --vs-active-text: #ffffff;
}

[data-theme="light"] {
  --vs-list-bg: #f4f6f8;
  --vs-control-bg: #ffffff;
  --vs-control-border: #d8e0e8;
  --vs-row-border: #d8e0e8;
  --vs-row-text: #1c2b3c;
  --vs-row-muted: #718195;
  --vs-row-hover: #ffffff;
  --vs-icon-bg: #e0f4fb;
  --vs-icon-text: #2186b2;
  --vs-active-bg: #092444;
  --vs-active-text: #ffffff;
}

.vs-breadcrumb-strip {
  padding-top: 5rem;
  background: var(--surface-body);
}

.vs-breadcrumb-strip > div {
  padding-top: 1rem;
}

.vs-hero {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background: var(--surface-body);
}

@media (min-width: 768px) {
  .vs-hero {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }
}

.vs-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vs-watermark {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50vw;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--border-subtle);
  font-style: italic;
  user-select: none;
}

@media (min-width: 1024px) {
  .vs-watermark {
    font-size: 35rem;
    right: 5%;
  }
}

.vs-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.vs-eyebrow-line {
  width: 4px;
  height: 1rem;
  background: var(--accent-blue);
  border-radius: 2px;
}

.vs-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.vs-subtitle-primary {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 48rem;
}

.vs-subtitle-secondary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 48rem;
}

/* List Section */
.vs-list-section {
  padding: 1.25rem 0 6rem;
  position: relative;
  z-index: 10;
  background: var(--vs-list-bg);
}

/* Controls */
.vs-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .vs-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vs-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  background: var(--vs-control-bg);
  border: 1px solid var(--vs-control-border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vs-filter-btn:hover {
  background: var(--vs-row-hover);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.vs-filter-btn.active {
  background: var(--vs-active-bg);
  border-color: var(--vs-active-bg);
  color: var(--vs-active-text);
}

.vs-filter-btn .count {
  font-weight: 700;
  opacity: 0.6;
}

.vs-filter-btn.active .count {
  opacity: 0.8;
  color: #ffffff;
}

.vs-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .vs-actions {
    flex-direction: row;
    align-items: center;
  }
}

.vs-search, .vs-sort {
  position: relative;
  display: flex;
  align-items: center;
}

.vs-search svg, .vs-sort svg {
  position: absolute;
  left: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  pointer-events: none;
}

.vs-search input {
  background: var(--vs-control-bg);
  border: 1px solid var(--vs-control-border);
  border-radius: 3px;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
@media (min-width: 640px) {
  .vs-search input {
    width: 260px;
  }
}

.vs-search input:focus {
  border-color: #36a5d9;
  box-shadow: 0 0 0 3px rgba(54, 165, 217, 0.14);
}
.vs-search input::placeholder {
  color: var(--text-muted);
}

.vs-sort select {
  appearance: none;
  background: var(--vs-control-bg);
  border: 1px solid var(--vs-control-border);
  border-radius: 3px;
  padding: 0.6rem 2.75rem 0.6rem 2.75rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.vs-sort select:focus {
  border-color: #36a5d9;
  box-shadow: 0 0 0 3px rgba(54, 165, 217, 0.14);
}

.vs-sort::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--vs-row-muted);
  border-bottom: 1.5px solid var(--vs-row-muted);
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

/* Rows */
.vs-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--vs-row-border);
}

.vs-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--vs-row-border);
  text-decoration: none;
  color: var(--vs-row-text);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

@media (min-width: 768px) {
  .vs-row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
  }
}

.vs-row:first-child {
  border-top: 0;
}

.vs-row:hover {
  background: var(--vs-row-hover);
}
@media (min-width: 768px) {
  .vs-row:hover {
    padding-left: 1.5rem;
  }
}

.vs-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vs-icon-bg);
  color: var(--vs-icon-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.vs-row:hover .vs-row-icon {
  background: #42afd9;
  color: #ffffff;
}

.vs-row-content {
  flex: 1;
  min-width: 0;
}

.vs-row-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--vs-row-text);
  margin: 0 0 0.35rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-row-desc {
  font-size: 0.875rem;
  color: var(--vs-row-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-row-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.vs-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-tag-media {
  color: #247999;
  background: #dff4fb;
}

.vs-tag-food {
  color: #247e79;
  background: #ddf4f1;
}

.vs-tag-sport {
  color: #a45a1a;
  background: #fff0df;
}

.vs-tag-finance {
  color: #3451a3;
  background: #e8edff;
}

.vs-tag-leisure {
  color: #417348;
  background: #e6f4e8;
}

.vs-tag-property {
  color: #7d4a24;
  background: #f6e9dd;
}

.vs-tag-retail {
  color: #7b3f75;
  background: #f5e6f3;
}

.vs-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vs-row-muted);
  font-variant-numeric: tabular-nums;
  width: 90px;
  text-align: right;
  display: none;
}
@media (min-width: 768px) {
  .vs-date {
    display: block;
  }
}

.vs-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--vs-icon-text);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.vs-row:hover .vs-arrow {
  color: #1c92c3;
  transform: translateX(4px);
}

.vs-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--vs-row-muted);
  font-size: 1rem;
  background: var(--vs-control-bg);
  border: 1px solid var(--vs-control-border);
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.vs-empty.hidden {
  display: none !important;
}
