/* ============================================
   Tool-Deck Hub — Layout & Styles
   ============================================ */

.hub-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* --- Header --- */
.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.hub-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.hub-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* --- Category Sections --- */
.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* --- Tool Cards Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
}

.tool-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px var(--color-shadow);
  transform: translateY(-2px);
  color: var(--color-text);
}

.tool-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 156, 213, 0.1);
  border-radius: 10px;
  color: var(--color-primary);
}

.tool-card-icon svg {
  width: 22px;
  height: 22px;
}

.tool-card-info {
  flex: 1;
  min-width: 0;
}

.tool-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tool-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Empty Category --- */
.category-empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-style: italic;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hub-container {
    padding: 20px 16px 40px;
  }

  .hub-title {
    font-size: 24px;
  }

  .hub-logo {
    height: 32px;
  }

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