/* Conteneur principal */
.swa_breadcrumb_results {
    height: 100%;
    width: 100%;
}


/* Conteneur principal */
.swa-tools-search-container {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

#swa-tools-search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #4477AA;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
    border-radius: 8px;
}

#swa-tools-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Conteneur des résultats */
.swa-autocomplete-results {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carte individuelle */
.swa-tool-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.1s);
    max-width: 300px;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swa-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Logo de l'outil */
.swa-tool-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Informations de l'outil */
.swa-tool-info {
    padding: 0 5px;
}

.swa-tool-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.swa-tool-meta {
    margin: 0 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swa-tool-meta span {
    display: block;
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.swa-tool-description {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Badges pour les types d'API */
.api-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 5px;
}

.api-badge.rest {
    background: #ffebee;
    color: #c62828;
}

.api-badge.soap {
    background: #fff3e0;
    color: #e65100;
}

.api-badge.graphql {
    background: #f3e5f5;
    color: #7b1fa2;
}


.swa-loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa; /* Couleur accent */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.list-tools-card.search .container {
    position: relative;
}

.list-tools-card.search .container .info {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  width: 100%;

}

.list-tools-card.search .container .api {
  position: absolute;
  top: 12px;
  right: 12px;

}
.list-tools-card.search .container .icon {
  position: absolute;
  bottom: 12px;
  right: 12px;

}

.list-tools-card.search .badge.available {
    font-size: 13px ;
}



/* accessible hidden label */
.swa-visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip: rect(1px,1px,1px,1px); white-space:nowrap; }

/* wrapper centrée (optionnel) */
.swa-search-wrapper { width:100%; max-width:720px; margin:18px auto; padding:0 12px; }

/* Input shell : glass + rounded */
.swa-input-shell {
  position: relative;
  display:flex;
  align-items:center;
  background: #EFF4FF;
  border-radius: var(--swa-radius);
  padding:12px 24px;
  box-shadow: 5px 8px 5px -6px rgba(0,0,0,0.34);
  -webkit-box-shadow: 5px 8px 5px -6px rgba(0,0,0,0.34);
  -moz-box-shadow: 5px 8px 5px -6px rgba(0,0,0,0.34);
  transition: box-shadow .25s ease, transform .15s ease;
  backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(16,24,32,0.06);
  border-radius: 8px;
}

/* Input itself */
.swa-input {
  border: none;
  outline: none;
  padding: 14px 14px 14px 14px;
  font-size: 16px;
  flex:1;
  background: transparent;
  color: #0b1320;
}


.swa-input:focus ~ .swa-input-shell::after,
.swa-input-shell:focus-within::after,
.swa-input:focus + .swa-input-shell::after { transform: scaleX(1); }

/* icon button */
.swa-icon-btn {
  background: transparent;
  border: none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin-left:8px;
  border-radius: 50%;
  cursor: default;
  position: relative;
  transition: transform .15s ease, background .15s ease;
  font-size :1.3rem;
}
.swa-icon-btn:active { transform: scale(.98); }

/* search icon */
.swa-icon-search { color: var(--swa-muted); font-size: 1.05rem; transition: opacity .18s ease, transform .18s ease; }

/* spinner svg hidden by default */
.swa-icon-spinner { width:22px; height:22px; display:none; }
.swa-icon-spinner .path { stroke: var(--swa-accent); stroke-linecap:round; stroke-dasharray: 90; stroke-dashoffset: 0; transform-origin: 50% 50%; animation: spin 0.9s linear infinite; }

/* when loading: hide search icon, show spinner */
.swa-input-shell.loading .swa-icon-search { display:none; }
.swa-input-shell.loading .swa-icon-spinner { display:block; }

/* Autocomplete results bubble */
.swa-autocomplete-results {
  margin-top:8px;
  background: var(--swa-bg);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--swa-glow);
  display:none;
  max-height: 420px;
  overflow:auto;
}

/* card item */
.swa-item {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px;
  border-radius:8px;
  transition: background .15s ease, transform .12s ease;
  cursor:pointer;
}
.swa-item + .swa-item { margin-top:6px; }
.swa-item:hover { background: rgba(13,110,253,0.04); transform: translateY(-2px); }

/* logo */
.swa-item .logo {
  width:56px; height:56px; border-radius:10px; overflow:hidden; flex:0 0 56px;
  background: #fff; display:flex; align-items:center; justify-content:center;
}
.swa-item .logo img { width:100%; height:100%; object-fit:cover; }

/* meta */
.swa-item .meta { flex:1; }
.swa-item .meta .title { font-weight:600; margin-bottom:4px; }
.swa-item .meta .sub { font-size:13px; color:var(--swa-muted); }

/* small badges */
.swa-badge {
  display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; margin-left:8px;
  background: rgba(13,110,253,0.08); color: var(--swa-accent);
}

/* keyframes */
@keyframes spin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width:600px){
  .swa-input-shell { padding:6px 10px; }
  .swa-input { font-size:15px; }
  .swa-item .logo { width:46px; height:46px; }
}


/* (le placeholder animé utilise le caractère ' |' soigné ci-dessus) */
/* on laisse ici une légère opacité pour le placeholder pendant l'animation */
.swa-input::placeholder {
  color: #9aa3ad;
  opacity: 1;
  transition: opacity .15s ease;
}

/* Quand on est focus, placeholder plus discret */
.swa-input:focus::placeholder {
  opacity: 0.7;
}



.saas_breadcrumb_area.search-hero {
    min-height: 100vh;
}


.saas_breadcrumb_area.search-hero .container-text {
  font-size: 0.1rem;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 34px;
  right: 50%;
  transform: translateX(50%);
}

.saas_breadcrumb_area.search-hero .container-text p {
  font-size: 0.8rem;
}


.swa-latest-tools {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.swa-tool-item {
    background: #EFF4FF;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    transition: all 0.3s ease;
    width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swa-tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swa-tool-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.swa-tool-title {
    font-size: 14px;
    color: #333;
    display: block;
}

.swa-tool-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
    margin: 0 auto 10px;
}
.swa_last_update_tools {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.swa_last_update_tools h2 {
  font-size: large;
  color: #475569;
}