/* -----------------------------------------------------
   AITOOLBOX — Premium Modern Styling (Upgraded)
   Matches Screenshot #1 Style
------------------------------------------------------*/

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6b8cff;
  --accent2: #8f7bff;

  --shadow-soft: 0 10px 35px rgba(0,0,0,0.06);
  --shadow-strong: 0 20px 45px rgba(0,0,0,0.10);

  --pill-free: #10b981;
  --pill-freemium: #6366f1;
  --pill-paid: #ef4444;
  --pill-mypick: #ffd43b;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px; /* Slightly wider padding */
}

.page {
  padding-bottom: 60px;
}

/* -----------------------------------------------------
   HEADER
------------------------------------------------------*/

.site-header {
  background: transparent;
  padding: 25px 0 5px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-count {
  border: 1px solid #e1e4ee;
  padding: 8px 12px;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-weight: 700;
}

.submit-btn {
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
}

/* -----------------------------------------------------
   HERO
------------------------------------------------------*/

.hero {
  padding: 65px 0 40px;
  text-align: center;
}

.hero-title {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

/* -----------------------------------------------------
   SEARCH PANEL
------------------------------------------------------*/

.search-panel {
  margin-top: 20px;
}

.search-row {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

#searchInput {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid #e3e6ef;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e3e6ef;
  font-size: 14px;
}

/* -----------------------------------------------------
   CATEGORY CHIPS
------------------------------------------------------*/

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  padding-bottom: 10px;
}

.cat {
  padding: 10px 24px;
  background: white;
  border: 1px solid #eaecf2;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
  color: #334155;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.cat:hover {
  background: #eef2ff;
}

.cat.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* -----------------------------------------------------
   RESULTS HEADER & GRID
------------------------------------------------------*/

.results-header {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-controls {
  display: flex;
  gap: 8px;
}

.view-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e4e7f0;
  cursor: pointer;
  background: white;
}

.view-btn.active {
  background: var(--accent);
  color: white;
}

/* PREMIUM GRID LIKE FIRST IMAGE */
.grid {
  margin-top: 30px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: 10px 5px;
}

/* -----------------------------------------------------
   TOOL CARD (Upgraded to Screenshot #1 Style)
------------------------------------------------------*/

.tool-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border: 1px solid #eff1f6;
  transition: 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

/* IMAGE + TEXT */
.card-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.card-head img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: #f4f6fb;
}

.title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

/* BOTTOM BAR */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

/* BADGES */
.pill {
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.12);
}

.Free { background: var(--pill-free); }
.Freemium { background: var(--pill-freemium); }
.Paid { background: var(--pill-paid); }
.mypick { background: var(--pill-mypick); color: black; }

/* VISIT BUTTON */
.visit {
  background: #515fe0;
  color: white;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0px 4px 14px rgba(81, 95, 224, 0.35);
  transition: 0.25s ease;
}

.visit:hover {
  background: #3d4cca;
}

/* FAVORITE BUTTON */
.fav-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* -----------------------------------------------------
   PAGINATION
------------------------------------------------------*/

/* ---- NEW MODERN PAGINATION ---- */

/* ---- FIXED MODERN PAGINATION (Horizontal only) ---- */

.pagination {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.page-numbers {
  display: flex;          /* <-- makes numbers stay in one line */
  flex-direction: row;    /* <-- force horizontal row */
  gap: 6px;
}

.page-btn,
.page-number {
  display: flex;            /* <-- ensures they do not go vertical */
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d0d4e4;
  background: white;
  cursor: pointer;
  white-space: nowrap;     /* <-- prevents text wrapping vertically */
  transition: 0.2s;
}

.page-number.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.page-ellipsis {
  padding: 8px 10px;
  color: #94a3b8;
  font-weight: bold;
}



/* -----------------------------------------------------
   FOOTER
------------------------------------------------------*/

.site-footer {
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
}

/* -----------------------------------------------------
   RESPONSIVE
------------------------------------------------------*/

@media (max-width: 700px) {
  .hero-title {
    font-size: 34px;
  }

  .search-row {
    flex-direction: column;
  }

  .filters {
    width: 100%;
    justify-content: space-between;
  }
}
/* -------------------------- */
/*   MINIMAL CLEAN FOOTER     */
/* -------------------------- */

.site-footer {
  margin-top: 60px;
  background: #ffffff;
  padding: 25px 0;
  border-top: 1px solid #e3e6ef;
}

.footer-simple {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-simple a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-simple a:hover {
  text-decoration: underline;
}


/* Auto-update year */

}
.results-info {
    display: none;
}

.results-info {
  display: none !important;
}


