/* /static/css/research-hub.css — Research Hub landing page */

/* Hide workbench content-section (glass-panel borders) on any research-hub route */
body.rh-active #content-section { display: none !important; }

.research-hub-landing {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 60px 16px 32px;
}

.cs-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 480px;
  width: 100%;
}

.cs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--theme-card-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-accent, #00D3BD);
  box-shadow: 0 4px 20px rgba(0, 211, 189, 0.12);
}

.cs-card:active {
  transform: scale(0.97);
}

.cs-card-icon {
  font-size: 40px;
  color: var(--theme-accent, #00D3BD);
  line-height: 1;
}

.cs-card-label {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-text-primary, #E6EDF3);
  text-align: center;
}

.cs-card-desc {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--theme-text-secondary, #8B949E);
  text-align: center;
  line-height: 1.35;
}

/* Three-card grid (NBA: 3 square cards in a row) */
.cs-cards--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
}

/* Four-card grid (NBA: 4 cards in a row) */
.cs-cards--four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
}

/* Five-card grid (NBA: 5 cards in a row) */
.cs-cards--five {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1060px;
}

/* Six-card grid (NBA: 3 per row, 2 rows) */
.cs-cards--six {
  grid-template-columns: repeat(3, 1fr);
  max-width: 660px;
}

/* Light theme */
[data-theme="light"] .cs-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cs-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile */
@media (max-width: 1000px) {
  .research-hub-landing {
    padding: 24px 16px;
    min-height: 100vh;
  }

  .cs-cards {
    max-width: 100%;
    gap: 16px;
  }

  .cs-cards--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-cards--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-cards--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-cards--six {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-card {
    padding: 20px 12px;
  }

  .cs-card-icon {
    font-size: 48px;
  }

  .cs-card-label {
    font-size: 32px;
  }

  .cs-card-desc {
    font-size: 26px;
  }
}
