/* ===============================================
   SMARTHUB PAGE SPECIFIC STYLES
   =============================================== */

/* 1. VS Code Blue Theme Override */
:root {
  --primary: #007ACC;
  --primary-700: #005A9E;
  --ring: rgba(0, 122, 204, .35);
  --shadow: 0 15px 40px rgba(0, 80, 133, .14);
}

html[data-theme="dark"] {
  --ring: rgba(0, 122, 204, .25);
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

/* 2. Search Bar Styling */
.smarthub-search {
  margin-bottom: 40px;
  position: relative;
}

.smarthub-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.1);
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

html[data-theme="dark"] .smarthub-search input {
  border-color: rgba(255,255,255,0.15);
}

.smarthub-search .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 24px;
  height: 24px;
}

#searchNotFound {
  text-align: center;
  padding: 2rem;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius);
  margin-top: 2rem;
  display: none; /* Hidden by default */
}

html[data-theme="dark"] #searchNotFound {
  background: rgba(255,255,255,0.04);
}


/* 3. Hub Categories and Grid Styling */
.hub-category {
  margin-top: 2.5rem;
}

.hub-category h2 {
  font-family: "Playfair Display", serif;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

html[data-theme="dark"] .hub-category h2 {
  border-bottom-color: rgba(255,255,255,0.1);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .hub-card {
  border-color: rgba(255,255,255,0.12);
}

.hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.hub-card .icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hub-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.badge-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}