/*
Theme Name: BizBot
Description: Admin Tools Directory theme for bizbot.com. Child theme of GeneratePress.
Template: generatepress
Version: 1.0.0
Text Domain: bizbot
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bb-accent: #2f5bff;
  --bb-accent-dark: #1e3fc4;
  --bb-accent-soft: #eef1ff;
  --bb-ink: #14172b;
  --bb-muted: #5b6072;
  --bb-bg-soft: #f5f7fb;
  --bb-border: #e4e7f0;
  --bb-radius: 10px;
  --bb-radius-lg: 16px;
  --bb-shadow-sm: 0 1px 2px rgba(20, 23, 43, 0.05);
  --bb-shadow-md: 0 8px 24px rgba(20, 23, 43, 0.08);
  --bb-shadow-lg: 0 16px 40px rgba(20, 23, 43, 0.12);
  --bb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bb-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.bb-logo,
.bb-btn {
  font-family: var(--bb-font);
  letter-spacing: -0.01em;
}

a {
  transition: color 0.15s ease;
}

:focus-visible {
  outline: 2px solid var(--bb-accent);
  outline-offset: 2px;
}

.bb-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.bb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.bb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--bb-ink);
}
.bb-logo img,
.bb-logo-img,
.bb-logo .custom-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--bb-shadow-sm);
}
.bb-logo-text {
  font-weight: 500;
  color: var(--bb-muted);
}
.bb-nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bb-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-nav a {
  color: var(--bb-ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.bb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--bb-accent);
  transition: right 0.15s ease;
}
.bb-nav a:hover {
  color: var(--bb-accent);
}
.bb-nav a:hover::after {
  right: 0;
}
.bb-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bb-nav-toggle-bars,
.bb-nav-toggle-bars::before,
.bb-nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bb-ink);
  position: relative;
  transition: transform 0.15s ease;
}
.bb-nav-toggle-bars::before {
  content: "";
  position: absolute;
  top: -6px;
}
.bb-nav-toggle-bars::after {
  content: "";
  position: absolute;
  top: 6px;
}

@media (max-width: 680px) {
  .bb-nav-toggle {
    display: flex;
  }
  .bb-nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
  }
  .bb-nav-wrap.is-open {
    display: flex;
  }
  .bb-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .bb-header-inner {
    padding: 16px 0;
  }
}

/* Hero */
.bb-hero {
  position: relative;
  background: radial-gradient(60% 100% at 50% 0%, var(--bb-accent-soft) 0%, var(--bb-bg-soft) 55%, #fff 100%);
  padding: 84px 0 56px;
  text-align: center;
  overflow: hidden;
}
.bb-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--bb-ink);
}
.bb-hero p {
  font-size: 1.15rem;
  color: var(--bb-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.bb-btn {
  display: inline-block;
  background: var(--bb-accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 91, 255, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bb-btn:hover {
  background: var(--bb-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 91, 255, 0.32);
}
.bb-btn-outline {
  background: transparent;
  border: 1px solid var(--bb-accent);
  color: var(--bb-accent);
  box-shadow: none;
}
.bb-btn-outline:hover {
  background: var(--bb-accent);
  color: #fff;
}

/* Tool search */
.bb-tool-search {
  margin: 24px 0;
}
.bb-tool-search input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--bb-font);
  box-sizing: border-box;
  background: #fff;
  box-shadow: var(--bb-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bb-tool-search input:focus {
  outline: none;
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 4px var(--bb-accent-soft);
}
.bb-tool-card[hidden] {
  display: none;
}

/* Category filter pills */
.bb-category-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin: 24px 0 32px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.bb-category-filters a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: var(--bb-bg-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--bb-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bb-category-filters a:hover {
  border-color: var(--bb-accent);
  color: var(--bb-accent);
}
.bb-category-filters a.is-active {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: #fff;
}

@media (min-width: 681px) {
  .bb-category-filters {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Tool grid */
.bb-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 48px;
}
.bb-tool-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--bb-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.bb-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bb-shadow-md);
  border-color: var(--bb-accent-soft);
}
.bb-tool-card img.bb-tool-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--bb-bg-soft);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
}
.bb-tool-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.bb-tool-card h3 a {
  color: var(--bb-ink);
  text-decoration: none;
}
.bb-tool-card h3 a:hover {
  color: var(--bb-accent);
}
.bb-tool-card p {
  color: var(--bb-muted);
  font-size: 0.92rem;
  margin: 0;
  flex-grow: 1;
}
.bb-tool-card .bb-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bb-tool-card .bb-category-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bb-accent-soft);
  color: var(--bb-accent-dark);
  padding: 3px 9px;
  border-radius: 999px;
}
.bb-tool-card .bb-btn-outline {
  text-align: center;
}

/* Sections */
.bb-section {
  padding: 56px 0;
}
.bb-section h1 {
  font-weight: 800;
}
.bb-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.bb-section-lead {
  color: var(--bb-muted);
  max-width: 720px;
}
.bb-section--soft {
  background: var(--bb-bg-soft);
}

/* Team */
.bb-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.bb-team-card {
  text-align: center;
}
.bb-team-card h3 {
  margin-bottom: 2px;
}
.bb-team-card .bb-role {
  color: var(--bb-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Forms */
.bb-form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.bb-form input,
.bb-form textarea,
.bb-form select {
  padding: 10px 14px;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Blog */
.bb-post-meta {
  color: var(--bb-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.bb-related-posts {
  border-top: 1px solid var(--bb-border);
  margin-top: 48px;
  padding-top: 32px;
}
.bb-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.bb-post-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--bb-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bb-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bb-shadow-md);
}
.bb-post-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.bb-post-card .bb-post-card-body {
  padding: 14px 16px;
}

/* Pricing table (guest post pricing) */
.bb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.bb-pricing-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 24px;
  text-align: center;
}
.bb-pricing-card .bb-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bb-accent);
  margin: 8px 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Footer */
.bb-footer {
  background: var(--bb-ink);
  color: #cfd2e2;
  padding: 48px 0 24px;
}
.bb-footer a {
  color: #cfd2e2;
}
.bb-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.bb-footer-tagline {
  color: #8b8fa8;
  font-size: 0.85rem;
  margin-top: 24px;
}

/* Two-column layout (used by Submit Your Tool page: form + info card) */
.bb-two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin: 40px 0;
  align-items: start;
}
@media (max-width: 680px) {
  .bb-two-col {
    grid-template-columns: 1fr;
  }
}
.bb-form-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 28px;
  background: #fff;
  box-shadow: var(--bb-shadow-sm);
}
.bb-info-card {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-lg);
  padding: 28px;
  background: var(--bb-bg-soft);
}
.bb-info-card h3 {
  margin-top: 0;
}
.bb-info-card h3 + p {
  margin-top: 4px;
  color: var(--bb-muted);
}
