/* ══ HOME PAGE — Specific styles ══ */

body {
  background: var(--grey-50);
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-height: 100vh;
}

/* ══ HERO ══ */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--accent);
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--grey-700);
  margin-top: 16px;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-badges .ti {
  font-size: 16px;
}

.hero-badges img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* ══ SEARCH — Google pill ══ */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin-bottom: 12px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.search-pill {
  position: relative;
  width: 360px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--grey-200);
  box-shadow: none;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  align-items: center;
}

.search-pill:hover,
.search-pill:focus-within {
  box-shadow: var(--shadow-1);
  border-color: transparent;
}

.search-icon {
  padding: 0 4px 0 16px;
  color: var(--grey-500);
  display: flex;
  flex-shrink: 0;
  pointer-events: none;
}

.search-input {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--grey-900);
  outline: none;
}

.search-input::placeholder {
  color: var(--grey-500);
}

.search-clear {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
  flex-shrink: 0;
}

.search-clear.visible {
  display: flex;
}

.search-clear:hover {
  background: var(--grey-100);
}

/* ══ FILTER TABS ══ */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--grey-200);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.filter-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-500);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
}

.filter-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background 0.15s;
}

.filter-tab:hover {
  color: var(--grey-900);
}

.filter-tab.active {
  font-weight: 600;
}

.filter-tab[data-cat="all"].active {
  color: var(--grey-900);
}
.filter-tab[data-cat="all"].active::after {
  background: var(--grey-900);
}
.filter-tab[data-cat="exclusive"].active {
  color: #ea4335;
}
.filter-tab[data-cat="exclusive"].active::after {
  background: #ea4335;
}
.filter-tab[data-cat="organize"].active {
  color: #1a73e8;
}
.filter-tab[data-cat="organize"].active::after {
  background: #1a73e8;
}
.filter-tab[data-cat="edit"].active {
  color: #e37400;
}
.filter-tab[data-cat="edit"].active::after {
  background: #e37400;
}
.filter-tab[data-cat="security"].active {
  color: #34a853;
}
.filter-tab[data-cat="security"].active::after {
  background: #34a853;
}

.filter-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--grey-200);
  font-size: 10px;
  font-weight: 600;
  color: var(--grey-700);
  margin-left: 6px;
  transition: all 0.15s;
}

.filter-tab[data-cat="all"].active .tab-count {
  background: var(--grey-300);
  color: var(--grey-900);
}
.filter-tab[data-cat="exclusive"].active .tab-count {
  background: #fce8e6;
  color: #ea4335;
}
.filter-tab[data-cat="organize"].active .tab-count {
  background: #e8f0fe;
  color: #1a73e8;
}
.filter-tab[data-cat="edit"].active .tab-count {
  background: #fef3e0;
  color: #e37400;
}
.filter-tab[data-cat="security"].active .tab-count {
  background: #e6f4ea;
  color: #34a853;
}

/* ══ TOOLS ROW — grid flanked by arrows ══ */
.tools-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

/* ══ PAGINATION ARROWS ══ */
.page-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
  transition: all 0.15s;
  flex-shrink: 0;
}

.page-arrow:hover:not(:disabled) {
  border-color: var(--grey-500);
  background: var(--grey-100);
}

.page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-arrow.invisible {
  visibility: hidden;
}

/* ══ PAGINATION DOTS ══ */
.page-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.page-dots.hidden {
  display: none;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-300);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.page-dot:hover:not(.active) {
  background: var(--grey-500);
}

/* ══ NO RESULTS ══ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--grey-500);
  font-size: 14px;
}

.no-results.hidden {
  display: none;
}

/* ══ TOOLS GRID ══ */
.tools-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 230px));
  gap: 12px;
  justify-content: center;
  min-height: 296px;
  align-content: start;
}

.tool-card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(234, 67, 53, 0.12);
  transform: translateY(-2px);
}

.tool-card.hidden {
  display: none;
}

.tool-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-icon .ti {
  font-size: 32px;
}

.icon-red {
  color: var(--accent);
}
.icon-blue {
  color: #1a73e8;
}
.icon-green {
  color: var(--green);
}
.icon-yellow {
  color: #e37400;
}

.icon-purple {
  color: #8e24aa;
}

.tool-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-900);
}

.tool-card-desc {
  font-size: 12px;
  color: var(--grey-500);
  line-height: 1.4;
}

/* ══ EXCLUSIVE BADGE ══ */
.exclusive-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
}

.exclusive-badge .ti {
  font-size: 18px;
  color: var(--accent);
}

/* ══ BETA BADGE ══ */
/* Beta badge — amber warning style */
.beta-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #f9a825;
  background: #fffde7;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ══ FOOTER ══ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--grey-200);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--grey-500);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  color: var(--grey-700);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    min-height: 440px;
  }
  .filter-tab {
    padding: 10px 12px;
    font-size: 12px;
  }
  .page-arrow {
    width: 28px;
    height: 28px;
  }
  .search-pill {
    width: 100%;
  }
}
