/* FreeAiToolsOnline.com premium CSS */
/* Invisible branding FreeAiToolsOnline.com present in comments */
:root{
  --fatools-radius: 16px;
  --fatools-radius-sm: 12px;
  --fatools-radius-pill: 9999px;
  --fatools-shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --fatools-shadow-md: 0 10px 30px rgba(0,0,0,0.10);
  --fatools-shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --fatools-primary: #4e5cf0;
  --fatools-primary-2: #7a4ef0;
  --fatools-border: #e6e8ee;
  --fatools-bg-soft: #f7f8fc;
  --fatools-text: #1b1d24;
  --fatools-muted: #616574;
}

html, body{ height:100%; }
body{ color: var(--fatools-text); background: #ffffff; }

/* Brand */
.fatools-brand{
  font-size: 1.125rem;
  background: linear-gradient(90deg, var(--fatools-primary), var(--fatools-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Search */
/*.fatools-search-input{
  border-radius: var(--fatools-radius-pill);
  padding-right: 120px;
  border: 1px solid var(--fatools-border);
  height: 48px;
}
.fatools-search-btn{
  position: absolute; right: 6px; top: 6px; height: 36px;
  border-radius: var(--fatools-radius-pill);
  padding: 0 16px;
}*/

@keyframes fatoolsPulse { 
  0%{ box-shadow: 0 0 0 0 rgba(78,92,240,0.0); }
  30%{ box-shadow: 0 0 0 5px rgba(78,92,240,0.15); }
  100%{ box-shadow: 0 0 0 0 rgba(78,92,240,0.0); }
}
.fatools-search-idle .fatools-search-input{ animation: fatoolsPulse 380ms ease-out 1; }

/* Chips in category panel */
.fatools-chip{ 
  border-radius: var(--fatools-radius-pill); 
  background: #fff; 
  border: 1px solid var(--fatools-border);
}

/* Card base */
.fatools-card {
  position: relative;
  display: block;
  background: #fff; /* inner background */
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease;
}

/* Add hover scale */
.fatools-card:hover {
  transform: translateY(-5px);
}

/* Gradient border effect */
.fatools-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px; /* border thickness */
  border-radius: inherit;
  background: linear-gradient(135deg,
    #ff0057,
    #ff7b00,
    #f9ff00,
    #00ff85,
    #00c3ff,
    #7a00ff,
    #ff00e0,
    #ff0057
  );
  background-size: 300% 300%;
  animation: gradientBorder 6s ease infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
}

/* Inner content always above */
.fatools-card > * {
  position: relative;
  z-index: 1;
}

/* Animation for flowing border */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fatools-card:focus-visible{
  transform: translateY(-2px);
  box-shadow: var(--fatools-shadow-md);
}
/* Border animation on hover */
.fatools-card::after{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid transparent;
  background: linear-gradient(90deg, var(--fatools-primary), var(--fatools-primary-2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .22s ease;
}
.fatools-card:hover::after, .fatools-card:focus-visible::after{ opacity: 1; }

/* Avatar */
.fatools-avatar{
  width: 56px; height: 56px; border-radius: var(--fatools-radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fatools-bg-soft); font-weight: 700;
}

/* Badge */
.fatools-badge{
  position: absolute; top: 12px; right: 12px;
  padding: 4px 8px; font-size: 12px; border-radius: var(--fatools-radius-pill);
  background: #eef2ff; color: #3945d6;
}

/* Section head */
.fatools-section-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.fatools-section-title{ margin:0; font-size: 1.125rem; font-weight:700; }

/* Pagination */
.fatools-pagination .page-link{ border-radius: 10px; }

/* Tool panel */
.fatools-tool-panel{
  border: 1px solid var(--fatools-border);
  border-radius: var(--fatools-radius);
  background: #fff; box-shadow: var(--fatools-shadow-sm);
  padding: 16px;
}
.fatools-output{
  background: var(--fatools-bg-soft);
  border-radius: var(--fatools-radius);
  padding: 16px;
  min-height: 160px;
  border: 1px solid var(--fatools-border);
}

/* Interaction strip */
.fatools-strip{
  border: 1px solid var(--fatools-border);
  border-radius: var(--fatools-radius);
  background: #fff; padding: 10px 12px;
  display:flex; align-items:center; gap: 12px; flex-wrap: wrap;
}

/* Reviews */
.fatools-review{
  border: 1px solid var(--fatools-border);
  border-radius: var(--fatools-radius);
  padding: 12px; background: #fff;
}

/* Helpers */
.clamp-1{ display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

@media (prefers-reduced-motion: reduce){
  .fatools-card, .fatools-search-input{ transition: none !important; animation: none !important; }
}


/* categories */
/* Card look like your screenshot */
.brand-card {
  border: 1px solid #e6e8eb;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border-radius: 0.5rem;
}
.brand-card:hover {
  transform: translateY(-2px);
  border-color: #dbe1e6;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Top media area: fixed height, center content */
.brand-media {
  height: 200px; /* tweak for your design */
  display: grid;
  place-items: center; /* dead-center */
  padding: 24px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}
.brand-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* keep logo proportions */
  object-position: center;
  display: block;
}

/* Letter avatar when no image */
.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  display: grid;
  place-items: center;
}
.brand-avatar span {
  font-size: 56px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

/* Excerpt: 3-line clamp like screenshot */
.brand-excerpt {
  line-clamp: 3; /* standard */
  overflow: ellipsis; /* standard ellipsis */
  overflow: hidden;

  /* fallback for older WebKit */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ===== Section Titles (Gemini-style gradient headers) ===== */
:root {
  --section-grad: var(--primary-gradient);
  --section-fg: #fff;
  --section-radius: 12px;
  --section-shadow: 0 8px 24px rgba(31, 38, 135, 0.18);
}

.section-title{
  background: var(--section-grad);
  color: var(--section-fg);
  font-weight: 800;
  letter-spacing: .25px;
  line-height: 1.25;
  padding: 12px 18px;
  border-radius: var(--section-radius);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--section-shadow);
  margin: 0 0 .75rem 0;
  /* prevent cramped touches on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Full-width variant (use for long headings) */
.section-title--block{ display:block; }

/* Sizes */
.section-title.xs{ font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
.section-title.sm{ font-size: 1.1rem; }
.section-title.lg{ font-size: clamp(1.35rem, 2.5vw, 1.75rem); padding: 14px 20px; }
.section-title.xl{ font-size: clamp(1.6rem, 3vw, 2rem); padding: 16px 22px; }

/* Optional subtle animated gradient (Gemini-ish) */
/* ===== Section Titles (no adjoining selectors) ===== */
:root{
  --section-grad: var(--primary-gradient);
  --section-fg: #fff;
  --section-radius: 12px;
  --section-shadow: 0 8px 24px rgba(31,38,135,.18);
}

/* base */
.section-title{
  background: var(--section-grad);
  color: var(--section-fg);
  font-weight: 800;
  letter-spacing: .25px;
  line-height: 1.25;
  padding: 12px 18px;
  border-radius: var(--section-radius);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--section-shadow);
  margin: 1rem 0 .75rem 0;
  -webkit-tap-highlight-color: transparent;
}

/* block/full-width */
.section-title-block{ display:block; }

/* sizes */
.section-title-xs{ font-size:.95rem; padding:8px 14px; border-radius:10px; }
.section-title-sm{ font-size:1.1rem; }
.section-title-lg{ font-size:clamp(1.35rem,2.5vw,1.75rem); padding:14px 20px; }
.section-title-xl{ font-size:clamp(1.6rem,3vw,2rem); padding:16px 22px; }

/* animated gradient */
.section-title-animated{ background-size:200% 200%; animation:titleGradient 6s ease infinite; }
@keyframes titleGradient{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* gradient variants */
.section-title-grad-primary   { --section-grad: var(--primary-gradient); }
.section-title-grad-secondary { --section-grad: var(--secondary-gradient); }
.section-title-grad-dark      { --section-grad: var(--dark-gradient); }

/* chip */
.section-chip{
  display:inline-block;
  font-weight:700;
  padding:.25rem .6rem;
  border-radius:999px;
  color:#fff;
  background: var(--section-grad);
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

/* dark mode shadow tweak */
:root[data-theme='dark'] .section-title{ box-shadow:0 14px 36px rgba(0,0,0,.45); }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .section-title-animated{ animation:none; }
}



/* === Global font defaults ============================================= */
:root{
  --fatools-font: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fatools-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Bootstrap 5 global body font override */
  --bs-body-font-family: var(--fatools-font);
}

html { font-size: 15px; } /* comfortable base size */
body{
  font-family: var(--fatools-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--fatools-text);
}

/* Headings & section titles keep your look but inherit the family */
h1, h2, h3, h4, h5, h6,
.section-title{ font-family: var(--fatools-font); }

/* Forms & interactive controls */
.form-control,
.form-select,
textarea,
input,
button{
  font-family: inherit;     /* from body/bs var */
  font-size: 15px;
  line-height: 1.5;
  color: var(--fatools-text);
}

/* Description/content blocks */
.tool-description,
.fatools-output,
.fatools-tool-panel{
  font-family: var(--fatools-font);
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* Code inside rich text stays monospaced */
.tool-description code,
.tool-description pre{
  font-family: var(--fatools-font-mono);
  font-size: 0.95em;
}

/* Pleasant placeholders */
::placeholder{ color:#9499a8; opacity:1; }
::-ms-input-placeholder{ color:#9499a8; }


/* Ad / Banner slots */
.ad-slot-card {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Wrapper so the ad is always centered */
.ad-banner-wrap {
    text-align: center;
}

/* Generic banner image control */
.ad-banner-img {
    max-width: 100%;        /* never overflow horizontally */
    height: auto;           /* keep aspect ratio */
    max-height: 200px;      /* control tall creatives */
    width: auto;
    object-fit: contain;    /* if huge, fit inside the box */
    display: inline-block;
}

/* On very small screens, reduce max-height */
@media (max-width: 576px) {
    .ad-banner-img {
        max-height: 150px;
    }
}


