/* Small tool logos on browse/search cards */
.tool-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
}

.tool-card-logo-wrap {
    flex-shrink: 0;
    position: relative;
    width: 44px;
    height: 44px;
}

.tool-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    display: block;
}

.tool-card-logo.is-hidden {
    display: none !important;
}

.tool-card-logo--site {
    object-fit: contain;
    padding: 3px;
    background: #fff;
}

.tool-card-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tool-card-logo-fallback.is-hidden {
    display: none !important;
}

.tool-card-logo-fallback.mt4 {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

.tool-card-logo-fallback.mt5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-header .tool-name {
    flex: 1;
    min-width: 0;
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    line-height: 1.25;
    min-height: unset !important;
    justify-content: flex-start !important;
}

.tool-card-header .tool-name a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.tools-grid .tool-card-header,
.search-results-grid .tool-card-header,
.category-tools-grid .tool-card-header {
    margin-bottom: 6px;
}
